Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 83412 invoked by uid 500); 28 Aug 2001 08:40:20 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 83398 invoked from network); 28 Aug 2001 08:40:19 -0000 From: "Chris Newland" To: "Cocoon-Users" Subject: RE: Out of memory with JDK Date: Tue, 28 Aug 2001 09:38:18 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: <001b01c12edc$2bed4f60$f281ea83@kass> X-Return-Path: chris.newland@emorphia.com X-MDaemon-Deliver-To: cocoon-users@xml.apache.org X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Stephan, I'm using Tomcat 4.0-b6 as my servlet container so I set the CATALINA_OPTS variable in the /bin/startup.sh script: CATALINA_OPTS=" -Xms128m -Xmx128m " as this environment variable is used to set the VM parameters when tomcat starts: java $CATALINA_OPTS ... If you are using a different servlet container you'll need to make sure that the VM that contains the Cocoon servlet has these parameters set when it starts. Hope this helps, Chris > -----Original Message----- > From: Stephan Kassanke [mailto:kassanke.news@gmx.de] > Sent: 27 August 2001 10:39 > To: cocoon-users@xml.apache.org > Cc: chris.newland@emorphia.com > Subject: Re: Out of memory with JDK > > > Hi chris, > > thanks for your quick answer. Currently we are using JVM 1.1.8 > under Linux. > The switches are the same you mentioned below. Is this set when I > start the > cocoon servlet? > > eg. java -Xms128m -Xmx128m > > > best regards, > Stephan > ----- Original Message ----- > From: "Chris Newland" > To: > Sent: Friday, August 24, 2001 5:41 PM > Subject: RE: Out of memory with JDK > > > > Hi Stephan, > > > > java -Xms128m -Xmx128m > > > > Would set the starting and maximum heap to 128MB. Just change the values > to > > suit your machine. > > > > Which JVM version are you using? Some of the earlier VMs used a > different > > switch. > > > > Best Regards, > > > > Chris > > > > > -----Original Message----- > > > From: Stephan Kassanke [mailto:kassanke.news@gmx.de] > > > Sent: 24 August 2001 16:33 > > > To: cocoon-users@xml.apache.org > > > Subject: Out of memory with JDK > > > > > > > > > Hi, > > > > > > we have a problem with the JVM which has obviously not enough > > > memory to do a > > > trasnformation to HTML or PDF. > > > > > > I keep getting the error > > > Cocoon 1.8.2 > > > > > > > > > > > > > > > Error found handling the request. > > > java.lang.Exception: FATAL ERROR: the JVM ran out of memory when > > > processing the request. The maximum amount of memory used by your VM > > > can be changed at the command line (consult your JDK documentation) > > > and may not be at all related to the amount of physical memory > > > in your machine! > > > at org.apache.cocoon.Engine.handle(Engine.java:435) > > > at org.apache.cocoon.Cocoon.service(Cocoon.java:183) > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) > > > at > > > > org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) > > > at org.apache.tomcat.core.Handler.service(Handler.java:286) > > > at > > > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) > > > at > > > org.apache.tomcat.core.ContextManager.internalService(ContextManag > > > er.java:79 > > > 7) > > > at > > > org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) > > > at > > > org.apache.tomcat.service.connector.Ajp12ConnectionHandler.process > > > Connection > > > (Ajp12ConnectionHandler.java:166) > > > at > > > > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) > > > at > > > > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) > > > at java.lang.Thread.run(Thread.java) > > > > > > > > > Warning: this page has been dynamically generated. > > > > > > > > > The problem i have is most probably trivial for most of you. How > > > do I change > > > the amount of memory available for the JVM. I searched the > newsgroup and > > > archives with no success yet. can somebody point me to the right > resource. > > > > > > Thanks, > > > Stephan > > > > > > PS.: Isn't this a candidate for the FAQ? > > > > > > > > > --------------------------------------------------------------------- > > > Please check that your question has not already been answered in the > > > FAQ before posting. > > > > > > To unsubscribe, e-mail: > > > For additional commands, e-mail: > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > Please check that your question has not already been answered in the > > FAQ before posting. > > > > To unsubscribe, e-mail: > > For additional commands, e-mail: > > > > > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: