[opencms-dev] java.lang.OutOfMemoryError

Thomas März thomasmaerz at gmx.de
Mon Jun 16 19:37:01 CEST 2003


ambiesense at gmx.de writes:
> I get an java.lang.OutOfMemoryError (displayed in Tomcat console) after
> trying to publish a 5 MB file. OpenCMS hangs after that and I have to close the
> browser window. When I restart everything and try to delete the file I get the
> same error. Something is terrible wrong here! 

See http://java.sun.com/j2se/1.4.1/docs/tooldocs/windows/java.html and
your catalina.bat resp. the catalina.sh.

|rem   JAVA_OPTS       (Optional) Java runtime options used when the "start",
|rem                   "stop", or "run" command is executed.

> I have heard from a earlier questions that this might be a Java problem
> which can be solved by increasing the heap with the command parameter -Xmx256MB.
> The question is:
>
> Is this the same problem ?

I think so; I had this issue once, too, when importing a file, but Tomcat
didn't crash. If this doesn't help, try to delete the file with the
OpenCms-Shell. 

Best Regards,
Thomas März




More information about the opencms-dev mailing list