-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rahman,

On 7/13/2009 9:13 AM, Rahman Akhlaqur wrote:
> Hi
> 
> I am having an issue with Tomcat starting too many selector threads.
> I have got some stack trace info about these threads as below:
> 
> SelectorThread 
> sun.nio.ch.PollArrayWrapper.poll0 ( native code ) 
> sun.nio.ch.PollArrayWrapper.poll ( PollArrayWrapper.java:74 ) 
> sun.nio.ch.WindowsSelectorImpl.doSelect ( WindowsSelectorImpl.java:61 ) 
> sun.nio.ch.SelectorImpl.lockAndDoSelect ( SelectorImpl.java:69 ) 
> sun.nio.ch.SelectorImpl.select ( SelectorImpl.java:80 ) 
> com.sun.corba.se.impl.transport.SelectorImpl.run ( SelectorImpl.java:249 ) 

CORBA, eh? Are you starting an RMI server per request?

> When Tomcat starts approx 1800-1900 hundred of these selector 
> threads, Windows runs out of memory and we have to restart tomcat to
> restore the website.

1900 hundred? That's a whole lotta threads. I'm surprised you're not
hitting a thread maximum in the OS and halting the JVM.

> I think these are started by our webapp, but not sure how to trace 
> this back to the bit of code that is doing this. Any suggestions
> would be appreciated.

Showing more of the stack trace will certainly help reveal the problem.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkpb4jkACgkQ9CaO5/Lv0PD8+wCdEyIQGJ6y4QR0QAuUFgrIsk5w
rvcAoIrxIdO4yg0nP9Oo/7IX+HFQlNV7
=ALeE
-----END PGP SIGNATURE-----

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

Reply via email to