Operating System - HP-UX
1825954 Members
2516 Online
109690 Solutions
New Discussion

Re: How to bind processor to one JVM

 
SOLVED
Go to solution
IT_2007
Honored Contributor

How to bind processor to one JVM

Server Config: HP-UX 11i, 6CPUs and 12GB memory. Need to run 16 JVM's and want to bind 4 JVMs to each processor. Is it possible? Don't know how to bind JVM to each CPU?

Thanks,
Srini
4 REPLIES 4
RAC_1
Honored Contributor
Solution

Re: How to bind processor to one JVM

You can use mpsched command. mpsched for details. You can also divide resources to different user groups with products like WLM (work load manager) and PRM (process resource manager). Both the products are lecensed products.
There is no substitute to HARDWORK
IT_2007
Honored Contributor

Re: How to bind processor to one JVM

Would you please give me example how do I assign 1st and 2nd JVM to 3rd CPU?

Thanks,
Srini
IT_2007
Honored Contributor

Re: How to bind processor to one JVM

got it .. thanks.

Execute the a.out file on processor 2:

mpsched -c 2 a.out

Set the process launch policy for the existing process with pid 24217 to round robin:

mpsched -P RR -p 24217

Bind the processes with pids 1247 and 1842 to processor 4:

mpsched -c 4 -p 1247 -p 1842

IT_2007
Honored Contributor

Re: How to bind processor to one JVM

got the solution.