Can we limit number of CPUs seen by a JVM/Java programs?
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)?