Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Can we limit number of CPUs seen by a JVM/Java programs?

jimklimovOct 2 2008 — edited Oct 2 2008
We have a Java application which is licensed in several tiers for a number of CPUs (i.e. 1 for trial, 4 and unlimited CPUs for supported version of different cost).

If the application is not provided with a supported license and is executed on multiprocessor hardware, it complains and aborts.

When we tried this application on a Solaris server, we made a zone with a single CPU thread as a dedicated processor, and the application worked.

Now we are trying to set up a trial version on a developer's Windows CoreDuo notebook, and since there are two cores the trial version barks and aborts.

Can we use some JVM feature to force it into seeing and using only a certain number of CPUs, smaller than the number of available hardware CPUs (or at least reporting that number to the java apps)?

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 30 2008
Added on Oct 2 2008
4 comments
2,384 views