java.lang.OutOfMemoryError: unable to create new native thread

There is not enough space to create a new thread. Threads(stacks).
if -Xmx solves your problem, then set it and be happy :)

another tip is to decrease the value of your thread stack size using the -Xss 
parameter, for example
-Xss32k is one value

How many threads are you creating?

Filip



Rahul Tandon wrote:
Hi All,

If I don't give -Xmx option in CATALINA_OPTS, then it hangs and Catalina.out
has following error message:

java.lang.reflect.InvocationTargetException

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)

        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

        at java.lang.reflect.Method.invoke(Method.java:585)

        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)

        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Caused by: java.lang.OutOfMemoryError: unable to create new native thread

        at java.lang.Thread.start0(Native Method)

        at java.lang.Thread.start(Thread.java:574)

        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.<init>(ThreadPool.
java:643)

        at
org.apache.tomcat.util.threads.ThreadPool.openThreads(ThreadPool.java:515)

        at
org.apache.tomcat.util.threads.ThreadPool.start(ThreadPool.java:148)

        at
org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.jav
a:315)

        at
org.apache.coyote.http11.Http11BaseProtocol.start(Http11BaseProtocol.java:15
0)

        at
org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:75)

        at
org.apache.catalina.connector.Connector.start(Connector.java:1089)

        at
org.apache.catalina.core.StandardService.start(StandardService.java:459)

        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)

        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)

        ... 6 more

Any clue?

Thanks,

Rahul Tandon

516-627-8993 Xtn 208

[EMAIL PROTECTED] <blocked::mailto:[EMAIL PROTECTED]>
FleXTrade Systems Inc.

111 Great Neck Rd.,Suite #314

Great Neck, NY 11021

This communication is for informational purposes only. The contents of this
transmission are confidential and are intended solely for the use of the
individual or entity to whom they are addressed.If you have received this
email in error please notify the sender by return email and delete this
message from your system. Flextrade Systems Inc., its subsidiaries and
affiliates do not guarantee the completeness and accuracy of this
transmission's contents. Moreover, Flextrade Systems Inc., its subsidiaries
and affiliates do not guarantee this communication to be free of viruses and
accept no liability for any damage caused thereof.


------------------------------------------------------------------------

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.14/727 - Release Date: 3/19/2007 
11:49 AM


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to