cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephan Kassanke" <kassanke.n...@gmx.de>
Subject Re: Out of memory with JDK
Date Sun, 02 Sep 2001 14:25:14 GMT
Chris,

that was what I was looking for. thanks!

Stephan

----- Original Message -----
From: "Chris Newland" <chris.newland@emorphia.com>
To: "Cocoon-Users" <cocoon-users@xml.apache.org>
Sent: Tuesday, August 28, 2001 10:38 AM
Subject: RE: Out of memory with JDK


> Hi Stephan,
>
> I'm using Tomcat 4.0-b6 as my servlet container so I set the CATALINA_OPTS
> variable in the <tomcat>/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 <some-cocoon-initialization-classes>
> >
> >
> > best regards,
> > Stephan
> > ----- Original Message -----
> > From: "Chris Newland" <chris.newland@emorphia.com>
> > To: <cocoon-users@xml.apache.org>
> > Sent: Friday, August 24, 2001 5:41 PM
> > Subject: RE: Out of memory with JDK
> >
> >
> > > Hi Stephan,
> > >
> > > java -Xms128m -Xmx128m <classname>
> > >
> > > 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. <http://xml.apache.org/cocoon/faqs.html>
> > > >
> > > > To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> > > > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > Please check that your question has not already been answered in the
> > > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> > >
> > > To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> > > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> > >
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message