JVM fails to use more than one CPU/core on RH Linux?
  Home FAQ Contact Sign in
comp.lang.java.machine only
 
Advanced search
POPULAR GROUPS

more...

comp.lang.java.machine Profile…
 Up
JVM fails to use more than one CPU/core on RH Linux?         


Author: Spuuf Cool
Date: Jul 24, 2006 12:44

We're using the Sun 1.5.0_06 JVM on RedHat (AS). The box has 4 CPUs,
they're all available and get some load (i. e. OS recognized them and
they work). But al our JVM max out by just "digesting" a single CPU, i.
e. any JVM maxes out at 25%% of the system load.

Using a simple CPU-eater program that runs multiple thread I was able
to:
- "digest" 2 cores on Win XP
- "digest" 2 cores on Max OS X (Intel)
- still only 1 (!) CU on the Linux server

Where's the problem? Anyone else having the same issue? There is just
one particularity to the Lunix installation, the Xeon CPUs are 64bit
but we're using the 32bit version of the OS (and JV; and all other
stuff).

Anyone seein the same problem.

For testing purposes this is the code I used (will digest up to 3 CPU
cores for max 30 secs.):

package test;

public class CpuBound {
Show full article (1.61Kb)
1 Comment
Re: JVM fails to use more than one CPU/core on RH Linux?         


Author: Chris Uppal
Date: Jul 25, 2006 01:26

Spuuf Cool wrote:
> We're using the Sun 1.5.0_06 JVM on RedHat (AS). The box has 4 CPUs,
> they're all available and get some load (i. e. OS recognized them and
> they work). But al our JVM max out by just "digesting" a single CPU, i.
> e. any JVM maxes out at 25%% of the system load.

Presumably the JVM hasn't "realised" that it's running on a multi-CPU system.
What does

Runtime.getRuntime().availableProcessors()

return ?

-- chris
no comments