- This topic has 1 reply, 2 voices, and was last updated 19 years ago by Riyad Kalla.
-
AuthorPosts
-
JonathanOddyMemberWhy do I keep getting OutOfMemoryExceptions being thrown when MyEclipse has been running for a short period of time (say 1 – 2 hours)? I’ve got min and max memory set at 256M, and running the garbage collector (regularly) reports that I’ve only been using 60-08M of space?
Typically I’ve got may be 6 – 8 classes/JSPs/XML files open within the Java perspective, and a small collection (3 use case diagrams) open within the UML perspective, and periodically a single database connection (SQLServer) in the database perspective.
This seems to be more prevelent since downloading 4.0.3.
The last bit of my .log file is as follows:
!ENTRY com.genuitec.eclipse.wdt.jsp.debug 1 1 2005-11-16 17:13:06.750 !MESSAGE 16-Nov-2005 17:13:06 com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler ? SEVERE: Javac exception Error running javac.exe compiler at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:473) at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:47) at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757) at com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler.?(Unknown Source) at com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler.compile(Unknown Source) at com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler.compile(Unknown Source) at com.genuitec.eclipse.wdt.jsp.jasper.driver.MyEclipseJspC.?(Unknown Source) at com.genuitec.eclipse.wdt.jsp.jasper.driver.MyEclipseJspC.parse(Unknown Source) at com.genuitec.eclipse.wdt.jsp.validation.JSPValidator.validate(Unknown Source) at com.genuitec.eclipse.wdt.jsp.validation.ValidateAction$1.run(Unknown Source) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1719) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1739) at com.genuitec.eclipse.wdt.jsp.validation.ValidateAction.validate(Unknown Source) at com.genuitec.eclipse.wdt.jsp.validation.ValidateAction.run(Unknown Source) at com.genuitec.eclipse.wdt.jsp.validation.Validator.validate(Unknown Source) at com.genuitec.eclipse.wdt.jsp.validation.Validator.validateIfNeeded(Unknown Source) at com.genuitec.eclipse.wdt.jsp.validation.Validator.validate(Unknown Source) at com.ibm.etools.validation.ValidatorLauncher.start(ValidatorLauncher.java:58) at com.ibm.etools.validate.ValidationOperation.launchValidator(ValidationOperation.java:1275) at com.ibm.etools.validate.ValidationOperation.internalValidate(ValidationOperation.java:1099) at com.ibm.etools.validate.ValidationOperation.validate(ValidationOperation.java:1014) at com.ibm.etools.validate.ValidationOperation.run(ValidationOperation.java:731) at com.ibm.etools.validate.ValidationBuilder.build(ValidationBuilder.java:155) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:593) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044) at org.eclipse.core.runtime.Platform.run(Platform.java:783) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:168) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202) at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:231) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044) at org.eclipse.core.runtime.Platform.run(Platform.java:783) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:234) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:253) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:282) at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:139) at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:200) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76) Caused by: java.io.IOException: CreateProcess: javac.exe -classpath <SNIP> !ENTRY System Bundle 0 0 2005-11-16 17:14:50.875 !MESSAGE FrameworkEvent.ERROR !STACK 0 java.lang.OutOfMemoryError: PermGen space
Riyad KallaMember1) You need to have your JDK’s /bin dir in your System path to avoid those javac exceptions and also be able to validate your JSP files.
2) The OutOfMemoryError is in reference to your permSpace, not heapSpace, try using these startup command line args:
-vmargs -Xms128M -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128M -
AuthorPosts