Mladen Adamovic wrote:
Max number of Java thread, IMHO.
Java thread is not the same as operating system thread.
In fact, JVM used to be single threaded on Linux and Windows and I'm not
quite sure has it changed recently.
So, you might have 800 Java threads but it is still one thread on
operating system.
I'm sure green threads which is a M:N threads policy have been gone a
long while. Its not even included as a fallback threading model with
current JVMs from SUN. Maybe you are not working from a modern Linux or
Windows distribution or modern JVM ?
When you run "ps aux | grep java" you always see one operating system
thread IMHO.
ps -La ??
Try "ps uaxm | less" each of the "-" lines under the process is a thread
relating to that process.
Check out the "m,M,-T,-L" options and the man page, or just "ps -?"
Pick the leader and take a look in /proc/<PID>/task/ for the threads
under that process.
It means you don't exploit 4 processors if you have 4.
To exploit 4 processors you have to setup 4 JVM (4 tomcat instances) to
do round robin.
As long as you have 1 JVM active you don't exploit thread level
parallelism in operating system.
Certainly j2sdk1.4.2_12 and jdk1.5.0_07 from SUN both use NTPL on Linux
which is 1:1. I would think WIN32 already has good threading support.
The current threading implementation in the last couple of years on
Linux is NPTL. Google is your friend.
Darryl
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]