Alex Turner wrote:
Please also note that having a max threads of 750 is pretty much
gaurtenteed
to cause your system to grind to a halt under high load. (Most linux
systems I've seen buckle somewhere around a load average of 75 or so,
which
means 75 threads waiting for CPU time).
You mean 75 Java threads waiting for CPU time, because you can have 75
sleepy and not much CPU consuming processes.
Example from my home computer :
[EMAIL PROTECTED] ~]$ ps -ely | nl | tail -n 1
105 S 500 4586 4508 0 76 0 540 1008 pipe_w pts/2
00:00:00 tail
[EMAIL PROTECTED] ~]$
It means 105 processes in memory and I think is not unusual at all.
but doing much more than 3 or 4 times the number of
CPUs you have is only going to cause your system to spend more time in
context switches, not in actual work time.
I spoke recently with guy from Microsoft (project manager from server
division).
He said that heavily loaded web server don't lose much time to switch
processes but when you are out of free memory and server start to swap,
performances degrade dramatically.
I though that guy definitely knew what he was thought about.
Lets see what operating system has to do when switch threads.
Just to move all registers to/from memory? Anything else?
A number less than 32 is probably more than your system will ever be
able to
cope with if you are actualy doing any processing during the course of a
request and not just serving static content.
I believe that is true. Probably you got that number experimental.
It's usefull to do 30 seconds of googling to find Suns actual statement
prior to posting and demostrating that 'AFAIK' is pretty lame, because
you
didn't bother to take the time to actualy find out.
Actually, I tried to find those information once and searched something
like:
"java windows multi thread" and I cannot see it clearly in first entries.
Probably I was supposed to refine my search...
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]