Link to home
Start Free TrialLog in
Avatar of lina06
lina06

asked on

Set Processor Affinity for the Java process

Question-to-Expert.pdf
I have 8 CPU computer running Windows2008.  For testing purpose, I need to run my java process using different number of CPUs.  Using the Process Explorer tool, I set the affinity for my java process to run on CPU=0 and Core=0.  When I examine the “System Information-CPU” window, I can see that my process still running on 1,...,7 CPUs (on 1st and 2nd cores).  

I cannot understand why my java process is still running on these CPUs.  Is it possible to set processor affinity for my process, to guarantee that my process will be running only of predefined number of processors?   Is it possible set this parameter as a JVM parameter or as an Environmental variable from the command line.  Please review the attached file for more detail description.
ASKER CERTIFIED SOLUTION
Avatar of for_yan
for_yan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial