[opencms-dev] Java heap space problem

Svjatoslav Agejenko n0 at hot.ee
Wed Jan 24 10:46:55 CET 2007


Try increasing the heap with JVM option:

-XX:MaxPermSize=512m

This solved similar error messages from some java applications for me.

Best regards,
  Svjatoslav



David Sánchez Hernández wrote:
> Hi,
>
> I have a problem with the upload function in opencms 6.2.3. When I try
> to upload an image which has 3 megas or more, i get an exception in
> opencms.log:
>
> 23 Jan 2007 14:01:45,439 ERROR [rg.opencms.workplace.CmsDialog :1179]
> java.lang.OutOfMemoryError: Java heap space
>
> I have tried to fix it using commons-io-1.2.jar, and using
> commons-fileupload-1.1.1 instead of commons-fileupload-1.0.jar, and I
> get the same error. I'm going to debug it and to study the
> CmsNewResourceUpload class. If anybody could help me I'd be so gratefull.
>
> I give you some interesting information:
>
> OpenCms: 6.2.3
> Tomcat: jakarta-tomcat-5.0.28
> Memory configuration is: CATALINA_OPTS="-Dfile.encoding=UTF-8 -Xms256M
> -Xmx768M"
> Operative System: SunOS neptuno 5.9 Generic_118558-30 sun4us sparc
> FJSV,GPUZC-M
> Data Base system: Oracle 10g
>
>
> Thanks in advance,
> David.
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list