[KLUG Members] Load distribution on SMP system

Adam Tauno Williams adam at morrison-ind.com
Wed Oct 19 13:35:51 EDT 2005


> 04:37:09  up 196 days, 9:03,  3 users,  load average: 1.02, 1.03,
> 1.00
> 167 processes: 165 sleeping, 2 running, 0 zombie, 0 stopped
> CPU states:  cpu    user    nice  system    irq  softirq  iowait
> idle
>            total   25.3%    0.0%    0.2%   0.0%     0.0%    0.0%
> 74.3%
>            cpu00    0.9%    0.0%    0.0%   0.0%     0.0%    0.0%
> 99.0%
>            cpu01    0.9%    0.0%    0.9%   0.0%     0.0%    0.0%
> 98.0%
>            cpu02    0.0%    0.0%    0.0%   0.0%     0.0%    0.0%
> 100.0%
>            cpu03  100.0%    0.0%    0.0%   0.0%     0.0%    0.0%
> 0.0%
> As you can see, the java process is taking up 100% of one of the
> available CPUs, while leaving the other three almost completely idle.
> Why?

But your load average is only 1;  it looks to me, that while you may
have multiple Java threads, they have nothing to do and are not dinging
the schedular.  Either the work just isn't there to be done or there is
some type of configuration problem in the *application*.  If multiple
threads were held in a pending state then load average would climb above
1.x

> I can see 58 Java threads running (ps xam | grep [j]ava | wc -l).
> Yes, the JVM is running in server mode - /usr/local/java/bin/java
> -server <other stuff>
> RHEL3 U4, Sun JVM 1.4.2_05. The server is an HP DL360 G4 with dual
> Xeon 3.2GHz CPUs.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.kalamazoolinux.org/pipermail/members/attachments/20051019/b1f3cbea/attachment.bin


More information about the Members mailing list