I have a Jboss application server installed through source and running multiple instances(say 3) of JBoss as a same user in a single machine on different ports. Using cgroups, I'm trying to do distinct resource allocation for each instance that i start. I know cgclassify can attach a process to a cgroup but i dont want this. Ideally I need a way to start the instance/process itself with a corresponding cggroup.
Try cgexec: