Google Answers Logo
View Question
 
Q: Forcing a JVM to run on a single CPU in Solaris 5.8 ( No Answer,   1 Comment )
Question  
Subject: Forcing a JVM to run on a single CPU in Solaris 5.8
Category: Computers > Software
Asked by: push-ga
List Price: $10.00
Posted: 14 Mar 2006 09:09 PST
Expires: 13 Apr 2006 10:09 PDT
Question ID: 707183
A particular OEMed component in my Java application is licensed for a
single CPU. It runs in its own JVM (as a standalone program  - not in
a app server or servlet runner etc). Java 1.4.X. Solaris 5.8

I need the flags to pass to the JVM or other techniques to set the
affinity of this JVM to a single CPU - before the JVM is launched. (
i.e techniques that detect the PID of the already launched JVM and
then set CPU affinity wont work for us but perhaps a small wrapper
java program that makes a system call and then launches this component
etc)
Looking for some pointers where people have done this reliably.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Forcing a JVM to run on a single CPU in Solaris 5.8
From: frankcorrao-ga on 15 Mar 2006 08:01 PST
 
Just affine the shell you launch it from by doing psrset -b $$. 
affinity is inherited.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy