wow, your webapp must be pretty heavy and have lots of jar and/or classes. The behavior that I saw was that 16 of the webapps would load with the default JVM heap settings. When I went to Tomcat's manager page, and click "start", I got a similar OOME and the webapp would not start. At that point, there was nothing I could do to get it to start.
once I shut down tomcat, change the heap and restart, tomcat was able to load all the webapps. Here's a trick that might help. Start tomcat, but with only 10 copies of your webapp. look at the total memory used and substract 64meg. Divide that number by 10 and see what the memory requirements are for each webapp. (Total mem - 64mb ) / number of webapps = mem per webapp. once you have that, you can figure what you really need. if the total for 18 webapps is less than 512Mb, it means something else is happening, which means you can rule out Tomcat as the cause. Since all tomcat does is start the webapp and call the servletContextListeners, it really isn't doing much. hope that helps peter On 4/21/05, LeeAnn Pultz <[EMAIL PROTECTED]> wrote: > Ok, this time I used -Xms512m -Xmx512m with the same results - > > Successfully created a SesameConfig object from FILE: > /usr/local/extraview/stage2/jakarta-tomcat-5.0.28/webapps/site19/WEB-INF/configuration/Configuration.properties > SesameProjectDir: > /usr/local/extraview/stage2/jakarta-tomcat-5.0.28/webapps/site19/WEB-INF > [Full GC [Tenured: 45429K->48110K(466048K), 0.6853640 secs] > 80819K->48110K(518464K), 0.6854250 secs] > [Full GC [Tenured: 48110K->47709K(466048K), 0.7746580 secs] > 48119K->47709K(518464K), 0.7747100 secs] > > Right on the 18th site spin-up - I'm not getting OutOfMemory errors in the > catalina.out trace, but the servlet didn't load and gave me an error in the > browser: > > pe Exception report > > message > > description The server encountered an internal error () that prevented it > from fulfilling this request. > > exception > > javax.servlet.ServletException: Servlet.init() for servlet ExtraView threw > exception > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) > > org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) > org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) > org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) > org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) > > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) > org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) > java.lang.Thread.run(Thread.java:536) > > root cause > > java.lang.OutOfMemoryError > > note The full stack trace of the root cause is available in the Apache > Tomcat/5.0.28 logs. > > > At 08:25 AM 4/21/2005, you wrote: > >I, for one, am awaiting LeeAnn's response with abated breath. =) > > > >-ryan > > > >-----Original Message----- > >From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] > >Sent: Thursday, April 21, 2005 9:53 AM > >To: Tomcat Users List > >Subject: RE: OutOfMemoryError - 100 thread limit? > > > > > > > From: Peter Lin [mailto:[EMAIL PROTECTED] > > > Subject: Re: OutOfMemoryError - 100 thread limit? > > > > > > if it doesn't work, then back to square one :) > > > >It would be even better to get some real data with the > >-XX:+PrintGCDetails, so we can stop speculating... > > > > - 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. > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > LeeAnn Pultz > ExtraView Corporation > [EMAIL PROTECTED] > 831-461-7100 x115 > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]