java heap space error in eclipse
Solution 1
Task Manager > Processes > and End the task 'java.exe'
Restart 'java.exe' from your jre/bin
Restart eclipse
This worked for me.
You can also try modifying Xms and Xmx in eclipse.ini (in the eclipse installtion folder) to: -Xms768m -Xmx768m
Solution 2
If you want to increase there are a few tips here Increasing eclipse memory
But I think that what you will need to do is increase the amount of memory available to your application when it is running, to set up your run configuration you can have a look here
Then you can pass your vm arguments eg -Xms200m -Xmx500m in the arguments tab (I think, one of the tabs anyway).
I would suggest that you have a look at VisualVM, its a java tool for monitoring and analysing your application.
Shantanu
S/W developer at CMC LTD having about 2 1/2 years of experience
Updated on March 11, 2020Comments
-
Shantanu about 4 years
I am getting 16912 records by calling a webservice.When I am trying to write these records in an xml file I am getting
[WARN] Unhandled Exception thrown: class org.apache.axis2.AxisFault Jul 27, 2013 12:46:45 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet [action] in context with path [/WebserviceApplication] threw exception org.apache.axis2.AxisFault: Java heap space
Any solution?
-
Shantanu almost 11 yearsI am running my application from eclipse.Will the above solutions work in eclipse
-
swapy almost 11 yearsFor eclipse u need to add options in eclipse.ini file present in ECLIPSE_HOME. these are Steps to set values for JVM. you need to try this. this should work.