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:[EMAIL PROTECTED]]
> Sent: 24 August 2001 16:33
> To: [EMAIL PROTECTED]
> 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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
>
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>