- This topic has 6 replies, 2 voices, and was last updated 19 years, 4 months ago by Scott Anderson.
-
AuthorPosts
-
erouseParticipant– System Setup ——————————-
Operating System and version: Win 2000/sp4
Eclipse version: 3.1
Eclipse build id: ?
Fresh Eclipse install (y/n): Y
If not, was it upgraded to its current version using the update manager?
Other installed external plugins:
Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 4
MyEclipse version: 3.9.310
Eclipse JDK version: 1.5
Application Server JDK version: 1.5
Are there any exceptions in the Eclipse log file?This is the last entry from the log file:
!ENTRY org.eclipse.ui 4 0 2005-09-09 15:41:27.183
!MESSAGE Warning: Detected recursive attempt by part com.genuitec.eclipse.struts.editor.multipage.StrutsConfigEditor to create itself (this is probably, but not necessarily, a bug)
!STACK 1
org.eclipse.ui.PartInitException: Warning: Detected recursive attempt by part com.genuitec.eclipse.struts.editor.multipage.StrutsConfigEditor to create itself (this is probably, but not necessarily, a bug)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:543)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:214)
at org.eclipse.ui.internal.EditorManager.findEditor(EditorManager.java:477)
at org.eclipse.ui.internal.EditorManager.findEditor(EditorManager.java:402)
at org.eclipse.ui.internal.EditorManager.findEditor(EditorManager.java:372)
at org.eclipse.ui.internal.WorkbenchPage.findEditor(WorkbenchPage.java:1772)
at com.genuitec.eclipse.core.util.EditorUtil.getEditorForInput(Unknown Source)
at com.genuitec.eclipse.core.util.EditorUtil.checkConflictingEditor(Unknown Source)
at com.genuitec.eclipse.struts.editor.multipage.StrutsConfigEditor.init(StrutsConfigEditor.java:445)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:773)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:572)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:365)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:283)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:126)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:391)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1102)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1051)
at org.eclipse.ui.internal.PartStack.presentationSelectionChanged(PartStack.java:785)
at org.eclipse.ui.internal.PartStack.access$0(PartStack.java:771)
at org.eclipse.ui.internal.PartStack$1.selectPart(PartStack.java:119)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:126)
at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:267)
at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:276)
at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.access$1(DefaultTabFolder.java:1)
at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder$2.handleEvent(DefaultTabFolder.java:84)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:852)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:660)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3138)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1922)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:288)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
!SUBENTRY 1 org.eclipse.ui 4 0 2005-09-09 15:41:27.183
!MESSAGE Warning: Detected recursive attempt by part com.genuitec.eclipse.struts.editor.multipage.StrutsConfigEditor to create itself (this is probably, but not necessarily, a bug)!ENTRY org.eclipse.ui 4 4 2005-09-09 15:41:37.371
!MESSAGE Unhandled event loop exception!ENTRY org.eclipse.ui 4 0 2005-09-09 15:41:37.371
!MESSAGE PermGen space
!STACK 0
java.lang.OutOfMemoryError: PermGen space!ENTRY org.eclipse.core.runtime 4 2 2005-09-09 15:41:37.371
!MESSAGE An internal error occurred during: “loading c:/s1s/MyEclipse4.0/eclipse/plugins/com.ibm.webtooling.system.dtds_13.9.310/dtds/struts-config_1_1.dtd”.
!STACK 0
java.lang.OutOfMemoryError: PermGen space!ENTRY org.eclipse.ui 4 4 2005-09-09 15:41:48.418
!MESSAGE Unhandled event loop exception!ENTRY org.eclipse.ui 4 0 2005-09-09 15:41:48.418
!MESSAGE PermGen space
!STACK 0
java.lang.OutOfMemoryError: PermGen space!ENTRY org.eclipse.ui 4 4 2005-09-09 15:42:39.434
!MESSAGE Unhandled event loop exception!ENTRY org.eclipse.ui 4 0 2005-09-09 15:42:39.434
!MESSAGE PermGen space
!STACK 0
java.lang.OutOfMemoryError: PermGen space!ENTRY org.eclipse.ui 4 4 2005-09-09 15:43:31.825
!MESSAGE Unhandled event loop exception!ENTRY org.eclipse.ui 4 0 2005-09-09 15:43:31.825
!MESSAGE PermGen space
!STACK 0
java.lang.OutOfMemoryError: PermGen space
– Message Body ——————————-After I replaced eclipse 3.0/myEclipse 3.8.1 with E3.1/ME4.0 I have begun experiencing repeated out of mamory errors. I run Win 2000/sp4, have 1 Gb of ram. I originally had -vmargs -Xmx768M in my shortcut, but upped it to 1024 as per the dialog box suggestion when the error occured.
All I am doing is web app development using struts. Nothing fancy.
I am using the same project files I used with 3.0/3.8. It works for a while and then dumps.
Note, I did not upgrade, I made a fresh install and just set the project directory to use the old one.
I am going to erase the .log file and keep an eye on it. This last error is different from the ones I was getting before and that might be because I just installed another plugin, struts-layout. I am going to remove this plugin, but you should know that I had this problem before I installed it.
Edit Almost forgot, whenever this happens, I lose all of my workbench settings and it goes back to the default settings. Since I make many changes to the default, it takes an additional 10 minuites to return the settings before I can start working again.
erouseParticipantMore info:
eclipse.buildId=I20050627-1435
java.version=1.5.0_02
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86PermGen space error
java.lang.OutOfMemoryError: PermGen space
Scott AndersonParticipantI’d try two things. First, based on the version (3.9.310), you’re using 4.0M3, not the final 4.0GA build. I’d recommend installing a fresh Eclipse instance and 4.0GA since some final memory tuning took place in that build that will likely correct this issue. Please note that there isn’t an upgrade path from M3 for the reasons mentioned here (http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-8782.html) and detailed here (http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-8781.html).
erouseParticipantWell, I just found out that I can’t post the log file here because it contains ‘code’ and that is now forbidden. That should make problem solving interesting. Anyway, here is what I was trying to post minus the forbidden stuff. I’m sorry if it’s not complete.
You said 2 things, what’s the other? after the upgrade to 4.0GA, this is what I get:
!ENTRY com.genuitec.eclipse.wdt.jsp.debug 1 1 2005-09-12 14:39:57.838
!MESSAGE
Sep 12, 2005 2:39:57 PM com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler ?
SEVERE: Javac exception
Error running javac.exe compilerSep 12, 2005 2:39:57 PM com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler ?
SEVERE: Env: Compile:!ENTRY com.genuitec.eclipse.wdt.jsp.debug 1 1 2005-09-12 14:53:45.635
!MESSAGE
Sep 12, 2005 2:53:45 PM com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler ?
SEVERE: Javac exception
Error running javac.exe compilerSep 12, 2005 2:53:45 PM com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler ?
SEVERE: Env: Compile:!ENTRY com.ibm.etools.validation 4 0 2005-09-12 15:22:49.385
!MESSAGE
*** ERROR ***: Mon Sep 12 15:22:49 EDT 2005 java.lang.OutOfMemoryError: PermGen space!ENTRY com.ibm.etools.validation 4 0 2005-09-12 15:39:12.213
!MESSAGE
*** ERROR ***: Mon Sep 12 15:39:12 EDT 2005 java.lang.OutOfMemoryError: PermGen space!ENTRY com.ibm.etools.validation 4 0 2005-09-12 15:39:40.213
!MESSAGE
*** ERROR ***: Mon Sep 12 15:39:40 EDT 2005 java.lang.OutOfMemoryError: PermGen space
!SESSION Mon Sep 12 15:40:06 EDT 2005 ——————————————
!ENTRY org.eclipse.core.launcher 4 0 2005-09-12 15:40:06.463
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.OutOfMemoryError: PermGen space
Scott AndersonParticipantYou didn’t say what commandline arguments you’re using to start Eclipse, but the following should resolve the problem:
eclipse.exe -vm <path-to-jdk1.5>\bin\javaw.exe -vmargs -Xms128M -Xmx256M -XX:MaxPermSize=128MAlso, please be sure that you have your JDK is included on your environment path so that <jdk>\bin and <jdk>\jre\bin are both on the path.
erouseParticipantActually, I did say at the end of the first post, though I can see how you might miss it. I am familiar with the first 2 arguments and have tried several variations, but the last one is new to me. Can you tell me what it’s for?
I have taken your suggested settings, even though they are smaller than what I have been using. I suspect that the last setting is the one causing me problems, which is why I am interested in knowing what it controls. It might be several days before I know whether this fixes it or not, but if I get no further shutdowns by Friday, I will consider it fixed. Thanks.
Oh, and the jdk bin paths are both set up in the environment.
Scott AndersonParticipantthe last one is new to me. Can you tell me what it’s for?
Yes, it’s for increasing the size of the PermGen space used by the JVM from the default of 64M to 128M to address the specific problem you’re reporting.
java.lang.OutOfMemoryError: PermGen space
For more posts / discussion on the flag, here’s a nice Google query that runs it down: http://www.google.com/search?hl=en&lr=&q=java+MaxPermSize+site%3Ajava.sun.com&btnG=Search
-
AuthorPosts