- This topic has 5 replies, 3 voices, and was last updated 14 years, 7 months ago by support-joy.
-
AuthorPosts
-
chitra_cancerMemberHi Support Team,
Could you please tell me what i need to do to fix this error?. I’m not sure if i increase VM (ie java_opts / catalina_opts) arguments would fix the problem. First i would like to know what is the reason for this error?. Not becos of enough memory for eclipse / sandbox tomcat server / system physical memory. Which file exactly i need to increase eg myeclipse.ini or catalina.bat?.
or
Is this due to J2EE Application using spring & hibernate?. It’s happening in the last couple days when i select certain modules in my web based application. Sometimes i shut down the server, sometimes my eclipse says stack trace error and quit the MYeclipse.
Following is my Installation Summary:
*** Date:
Thursday, March 25, 2010 12:48:15 PM CDT** System properties:
OS=WindowsXP
OS version=5.1.0
Java version=1.6.0_13*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 8.0
Build id: 8.0-20091120*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 8.0
Build id: 8.0-20091120Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\Program Files\Genuitec\MyEclipse 8.x Latest\myeclipse.exe
-name
Myeclipse
–launcher.library
C:\Program Files\Genuitec\MyEclipse 8.x Latest\../Common/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519\eclipse_1206.dll
-startup
C:\Program Files\Genuitec\MyEclipse 8.x Latest\../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-install
C:/Program Files/Genuitec/MyEclipse 8.x Latest
-configuration
configuration
-vm
C:/Program Files/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client/jvm.dll*****************************************************************************************************
myeclipse.ini : File details-startup
../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
–launcher.library
../Common/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-install
C:/Program Files/Genuitec/MyEclipse 8.x Latest
-vm
C:/Program Files/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client/jvm.dll
-configuration
configuration
-vmargs
-Xmx512m
-XX:MaxPermSize=256m
-XX:ReservedCodeCacheSize=64m**********************************************************************************************************
My Error:Exception in thread “http-8080-Acceptor-0” java.lang.OutOfMemoryError: Java heap space
Mar 25, 2010 11:14:45 AM org.apache.coyote.http11.Http11Processor process
SEVERE: Error processing request
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
Mar 25, 2010 11:14:47 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet spring threw exception
java.lang.OutOfMemoryError: Java heap space
Mar 25, 2010 11:14:53 AM org.apache.coyote.http11.Http11Processor process
SEVERE: Error finishing response
java.lang.OutOfMemoryError: Java heap space
Mar 25, 2010 11:14:57 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet spring threw exception
java.lang.OutOfMemoryError: Java heap space
Exception in thread “Store ca.mb.cancercare.ccsa.hibernate.Letter.postalStages Spool Thread” java.lang.OutOfMemoryError: Java heap space
Exception in thread “Store ca.mb.cancercare.ccsa.hibernate.TimeOut Spool Thread” java.lang.OutOfMemoryError: Java heap spaceMar 25, 2010 11:15:27 AM org.apache.catalina.core.StandardHostValve custom
SEVERE: Exception Processing ErrorPage[exceptionType=java.lang.Throwable, location=/error500.jsp]
java.lang.OutOfMemoryError: Java heap space
Mar 25, 2010 11:15:28 AM org.apache.catalina.connector.CoyoteAdapter service
SEVERE: An exception or error occurred in the container during the request processing
java.lang.OutOfMemoryError: Java heap space
Mar 25, 2010 11:15:35 AM org.apache.catalina.connector.CoyoteAdapter service
SEVERE: An exception or error occurred in the container during the request processing
java.lang.OutOfMemoryError: Java heap spaceException in thread “http-8080-2” java.lang.OutOfMemoryError: Java heap space
Mar 25, 2010 11:15:43 AM org.apache.coyote.http11.Http11Processor process
SEVERE: Error finishing response
java.lang.OutOfMemoryError: Java heap spaceEagerly looking for a permanent solution to this problem. Thanks in Advance. Please mail me if you need any further details.
Chitra.
support-joyMemberChitra,
The issue is often not the heap itself but the Perm space for classes. Please try these startup arguments:
myeclipse.exe -vmargs -Duser.language=en -Xms128M -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128M
Or you can modify MyEclipse.ini file and update the above vmargs values.
chitra_cancerMemberHi Joy,
Sorry for delay in reply.
I tried the parameters you mentioned still i get the same outofMemeory: java heap space error in my sandbox tomcat server. Also pls explain me what is the difference between Integrated Sandbox tomcat server and Tomcat Server (TC5.X,TC6.x). Do you think my application is big for Sandbox TC server to handle? That is the reason for Error?. Can you pls suggest whether can i deploy the application on to TC6.x (the one in external). My application is using (J2EE Technologies)spring-hibernate-sybase DB.
Waiting for your reply.
Thanks,
Chitra.
Brian FernandesModeratorChitra,
I assume you see that stack trace in the console when you try to start Tomcat? In this case you may need to add more memory to your Tomcat process, not MyEclipse. You can do this by going to Window > Preferences > MyEclipse > Servers > Integrated Sandbox > MyEclipse Tomcat > JDK. In the Optional VM Arguments section you can try adding
-Xmx512M
Sandbox Tomcat is a customized and integrated version of Tomcat 6, you could just as easily have used an external Tomcat 6 instance too – you would need to add the same customization as described above to it too.
Hope this helps.
chitra_cancerMemberHi Brian,
I made changes to Tomcat VM arguments as you mentioned , so far i don’t have any problem, hopefully i don’t want it happen anymore.
Thanks Brian.
Chitra.
support-joyMemberChitra,
Good to hear you are all set.
Best.
-
AuthorPosts