Shapira, thanks a lot. I resolved the problem with the coyote connector and
tomcat 4.0.4 . I still don't know what was happening, but I got a good
performace now, and just a few java threads on my ps command result. I read
the paper you send and used your class, nice paper by the way.
Again, thanks for your attention, and anything you need that I can help,
I'll be around.

Ronaldo Florence
[EMAIL PROTECTED]

-----Mensagem original-----
De: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Enviada em: terca-feira, 20 de agosto de 2002 10:14
Para: Tomcat Users List
Assunto: RE: Too many threads


Hi,
There are many threads in your system in addition to tomcat's http
processing threads.  You can search the list archives, a few months ago
I posted a simple "list all threads in the system" class that you can
use to see exactly what's going on.

Please be careful to distinguish between threads in the JVM and OS-level
threads.  The mapping is not always one to one.  A good document can be
found here explaining the different JVM threading models:

http://java.sun.com/docs/hotspot/threads/threads.html

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Ronaldo [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, August 20, 2002 8:31 AM
>To: Tomcat Users List
>Subject: RES: Too many threads
>
>Thanks for your atention Shapira, but I did search a lot in google for
this
>topics, but nobody seemed to have this kind of problem. I did read all
>tomcat config docs, but the container seems to ignore my maxProcessors
>parameter and starts lots of threads. I realy don't know what else to
do.
>I'm trying diferent connector at this time. I was using ajp 1.2,
migrated
>to
>1.3, and nothing, so I went to coyote and another deception, it stills
>starts more threads than the parameter I set, it also happens to
tomcats
>examples, so the problem is not with my application otherwise it would
not
>happen to tomcats examples, I supose.
> Then again, thanks for your atention, hope you, or anobody else, can
help
>me with this, I'm running out of time,
>
> Ronaldo Florence
>
>-----Mensagem original-----
>De: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
>Enviada em: segunda-feira, 19 de agosto de 2002 09:58
>Para: Tomcat Users List
>Assunto: RE: Too many threads
>
>
>Hi,
>The threading implementation of the JVM depends on the OS to some
>extent.  Linux uses native threads as opposed to green or p threads, so
>you see more processes at the OS-level.  You can google search for any
>of the above terms and you'll find a ton of references.
>
>For the tomcat configuration reference regarding acceptCount,
>minProcessors, and maxProcessors, all of which affect the number of
>threads used by tomcat, see:
>http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/http11.html
>
>Yoav Shapira
>Millennium ChemInformatics
>
>
>>-----Original Message-----
>>From: Ronaldo [mailto:[EMAIL PROTECTED]]
>>Sent: Saturday, August 17, 2002 10:17 AM
>>To: Tomcat Users List
>>Subject: Too many threads
>>
>>Hi,
>>  I'm developing a web aplication with jsp and servlets, and I'm
beging
>to
>>use tomcat.
>>  The only problem I'm having is, when I make a stress test on my
>tomcat
>>(4.0.4 on RH Linux) the server create as many threads as the number of
>>requests. Is this normal? shuldn't be some kind of inteligent thread
>pool?
>>Because, I get over 800 threads and my test machine isn't that much so
>it
>>crashs all the time, because tomcat is eating more than 200 M of
>memory.
>>Can anyone help me on this?
>>
>>Even not, thanks a lot,
>>
>>Ronaldo Florence
>>
>>
>>--
>>To unsubscribe, e-mail:   <mailto:tomcat-user-
>>[EMAIL PROTECTED]>
>>For additional commands, e-mail: <mailto:tomcat-user-
>>[EMAIL PROTECTED]>
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:tomcat-user-
>[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:tomcat-user-
>[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to