title: Java availableProcessors() in a Solaris Container
body: <p>I'm using a Solaris Container with 2 cores (the physical machine has 32 with 8 threads, each one) to run a jvm (BEA Jrockit). </p>
  
  <p>The surprise is: <code>Runtime.getRuntime().availableProcessors()</code> returns 256 rather than 2 or, say 16. That is, the application (a sealed product) believe in 256 cores available, what may cause performance issues.</p>
  
  <p>Are the any way to limit the number of cores a Solaris Container can see, or pass to JRockit (or even Sun Hotspot)?</p>