tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Kilbride" <j...@kilbride.com>
Subject Re: Tomcat 3.2.3 Memory Exception running on HP-UX 11
Date Thu, 29 Nov 2001 22:12:54 GMT
For Tomcat 3.2.x, the environment variable is TOMCAT_OPTS.

Thanks,
--jeff

----- Original Message -----
From: "Chris Newland" <chris.newland@emorphia.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Thursday, November 29, 2001 8:40 AM
Subject: RE: Tomcat 3.2.3 Memory Exception running on HP-UX 11


> Hi Mike,
>
> If you are not explicitly setting the JVM initial heap size and maximum
heap
> size then they will take the default values which are quite small (64MByte
> max I think?).
>
> If you want the JVM to use more of the system's memory then start it up
> using the switches:
>
> -Xms <initial heap size> -Xmx <maximum heap size>
> (This is for the Sun 1.3 JVM, but I expect the HP JVM has an equivalent)
>
> so for 100MB initial heap, 150MB maximum heap you would change your
startup
> script to override the defaults:
>
> java -Xms100M -Xmx150M <classname>
>
> In catalina.sh (Tomcat 4) there is an environment variable CATALINA_OPTS
> that will add extra parameters to the java command so I just set
> CATALINA_OPTS=" -Xms500M -Xmx1000M". There may be a similar option in
Tomcat
> 3.2.3.
>
> Hope this helps,
>
> Chris
>
> -----Original Message-----
> From: Michael S. Ricker [mailto:michael_s_ricker@yahoo.com]
> Sent: 29 November 2001 16:01
> To: tomcat-user@jakarta.apache.org
> Subject: Tomcat 3.2.3 Memory Exception running on HP-UX 11
>
>
> Hello,
>
> Attempted to make 5 simultaneous connections to Tomcat 3.2.3 on HP-UX 11
> and received the following exception. Tomcat is being run with HP Java
> 1.3 without any specific command line parameters. The HP server had
> 200mb real/300mb virtual memory free when monitoring with the top command.
>
> Any suggestions to prevent this exception?
>
> 2001-11-29 16:39:54 - ThreadPool: Caught exception executing
> org.apache.tomcat.service.TcpWorkerThread@dc81fb1e, terminating thread -
> java.lang.OutOfMemoryError: can't create another thread
>     at java.lang.Thread.start(Native Method)
>     at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.<init>(ThreadPool.java,
> Compiled Code)at
> org.apache.tomcat.util.ThreadPool.openThreads(ThreadPool.java, Compiled
> Code)
>     at org.apache.tomcat.util.ThreadPool.runIt(ThreadPool.java, Compiled
> Code)
>     at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
> Compiled Code)
>     at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
> Compiled Code)
>     at java.lang.Thread.run(Unknown Source)
>
> Mike
>
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>
>
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message