Multi thread on multi cpu on SunOS 5.8
Hi,
I've got a program running 5 differents threads.
On my local machine, each thread is running in the same time that the others.
On AIX, I can see that all CPUs run the diffferents threads.
But on Solaris 5.8, it seems that the java process used only one CPU
My server :
Solaris SunOS 5.8
16 CPU double-core
My java :
1.4.2
export LD_LIBRARY_PATH=/usr/lib/lwp:$LD_LIBRARY_PATH
echo $LD_LIBRARY_PATH
/soft/ora920/jre/1.4.2/bin/java -XX:+OverrideDefaultLibthread -classpath $myClasspath
PID USERNAME SIZERSS STATE PRI NICETIME CPU PROCESS/LWPID
9510 infoqua60M29M cpu10120:04.57 3.1% java/1
9510 infoqua60M29M sleep0120:00.01 0.1% java/62
9510 infoqua60M29M sleep23120:00.04 0.1% java/2
9510 infoqua60M29M sleep0120:00.00 0.1% java/76
9510 infoqua60M29M sleep0120:00.00 0.0% java/7
9510 infoqua60M29M sleep0120:00.00 0.0% java/85
9510 infoqua60M29M sleep0120:00.00 0.0% java/50
9510 infoqua60M29M sleep0120:00.00 0.0% java/19
9510 infoqua60M29M sleep0120:00.00 0.0% java/13
9510 infoqua60M29M sleep0120:00.00 0.0% java/12
9510 infoqua60M29M sleep0120:00.00 0.0% java/10
9510 infoqua60M29M sleep0120:00.00 0.0% java/9
9510 infoqua60M29M sleep4740:00.00 0.0% java/8
9510 infoqua60M29M sleep040:00.00 0.0% java/6
9510 infoqua60M29M sleep040:00.00 0.0% java/5
9510 infoqua60M29M sleep060:00.00 0.0% java/4
9510 infoqua60M29M sleep740:00.00 0.0% java/3
Do I run the java process as i have to ? Is there another way to launch it ?
I read these pages to know how mutithreading have to be launch on Solaris :
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4386948
http://java.sun.com/docs/hotspot/threads/threads.html
Thanks for your help.
PS : unless the multi cpu, the program runs very well.
Message was edited by:
_ric_
Message was edited by:
_ric_

