> From: tom...@habmalnefrage.de [mailto:tom...@habmalnefrage.de]
> Subject: Tomcat 6.0.20 "unable to create new native thread"
> Configuration-Details:
> - Tomcat 1 (with the problem)
>    - MaxPermSize=256m
>    - JvmMs 128
>    - JvmMx 768
>    - maxThreads for HTTP: 450
>    - maxThreads for jk: 3000

You'll never be able to get that many threads going on a 32-bit Windows system. 
 You need to scale it down to something reasonable (like the other config).

 
> Shouldn't  windows start to swap if the ram is full?

You're not out of RAM, you're out of virtual space for the process.

> In which memory-area does windows handle the memory which is used for
> the threads? Is it shown in the taskmanager?

No; I'm not aware of it being shown anywhere.

> Can the OS take the mem which is still unused by the JVM (memMax-
> memTotal) for handling threads or is it reserved for the JVM after
> starting tomcat?

It's reserved for the Java heap.

> Due to problems with one of our webapps which sometimes does not close
> the threads completely (they stuck in close_wait-state) we increased
> the max threads of windows:

So fix your webapp.

> Does anyone have an idea to get rid of the exception?

See above.

 - 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.

Reply via email to