You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rahul Tandon <ra...@flextrade.com> on 2007/03/15 15:25:22 UTC

tomcat 5.5

Hi,

I had posted this yesterday and got some feedback from chuck, but still
there is no concrete resolution to the problem, if somebody knows anything
about this kind of issue, please help me.

 

 

I am using following configuration:

 

Red Hat Enterprise Linux AS release 3 (Taroon Update 4)

 

4GB RAM

 

Tomcat version 5.5

 

Java version "1.5.0_06"

 

Tomcat connectors setting: maxThreads="150" minSpareThreads="25"
maxSpareThreads="75"

ulimit -a also seems ok:

 

core file size        (blocks, -c) unlimited

data seg size         (kbytes, -d) unlimited

file size             (blocks, -f) unlimited

max locked memory     (kbytes, -l) 4

max memory size       (kbytes, -m) unlimited

open files                    (-n) 1024

pipe size          (512 bytes, -p) 8

stack size            (kbytes, -s) 10240

cpu time             (seconds, -t) unlimited

max user processes            (-u) 7168

virtual memory        (kbytes, -v) unlimited

 

 

 

. I am using CATALINA_OPTS "-Xms512m -Xmx512m -Djava.awt.headless=true" and

tomcat comes up fine and my http requests are processed normal.

 

            If I change memory setting to 1024m (-Xmx1024m -Xms512m) then I

am getting this error:

 

 

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

 

And tomcat hangs and does not respond to http requests.

 

 

I am checking vmstat at this time and see 3GB free memory.

 

I would appreciate any help.

 

Thanks,

Rahul Tandon