What are the advantages/disadvantages of using cgroups?

Solution 1:

The biggest advantage is to impose limits on different workloads so they get their required performance and/or don't impact other workloads running on the same server.

You can limit how much CPU/memory JBoss is going to use or build more complex balancing policies.

When you are consolidating many workloads in a single server, it's extremely important guarantee how much resources they are using. Something that is inherently done when you have many physical servers because each box is a resource limit on itself.