1000 threads come up by themselves. I have configured Tomcat to spawn only 70
threads.
Also, I'll look for synchronization issues in the code.
:)

Caldarale, Charles R wrote:
> 
>> From: connossieur [mailto:anand.b...@aricent.com]
>> Subject: Re: Problem with maximum threads
>> 
>> Should the code I write be thread safe?
> 
> Usually.  If it's within a servlet, then it *must* be thread safe, since a
> servlet instance may handle multiple requests simultaneously.  But don't
> just blindly throw synchronizes clauses in everywhere; you only need to
> protect concurrent access to shared instances.
> 
>> RUNNABLE
>> "http-80-37" daemon prio=6 tid=0x0b094400 nid=0x540 runnable
>> [0x0c5be000..0x0c5bfb94]
> 
> Do you really have 1,000 threads in a runnable or waiting state, all with
> the names http-80-xx?  For that matter, what makes you think you really
> have 1,000 threads active?
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-maximum-threads-tp23154175p23156682.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to