Bug 139429 - OutOfMemoryError: PermGen space in 3.2RC2
Summary: OutOfMemoryError: PermGen space in 3.2RC2
Status: CLOSED DUPLICATE of bug 129490
Alias: None
Product: WTP Webservices
Classification: WebTools
Component: wst.wsdl (show other bugs)
Version: 0.7   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Jeffrey Liu CLA
QA Contact:
URL:
Whiteboard: reviewed_1.5
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-30 04:02 EDT by Nils Hammar CLA
Modified: 2006-11-28 15:49 EST (History)
6 users (show)

See Also:


Attachments
Log with stack dumps (51.01 KB, text/plain)
2006-04-30 04:03 EDT, Nils Hammar CLA
no flags Details
Configuration details for current setup (154.61 KB, text/plain)
2006-04-30 04:25 EDT, Nils Hammar CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nils Hammar CLA 2006-04-30 04:02:42 EDT
This error may be a WST or a GEF error, so I may have assigned it wrong:
OutOfMemoryError: PermGen space occurs frequently when working with XML files (WSDL). The error may actually not occur when working with an XML file, but can actually occur when doing another task, which means that it isn't that easy to make a precise report about this problem.
Comment 1 Nils Hammar CLA 2006-04-30 04:03:45 EDT
Created attachment 39901 [details]
Log with stack dumps
Comment 2 Nils Hammar CLA 2006-04-30 04:25:16 EDT
Created attachment 39902 [details]
Configuration details for current setup
Comment 3 Dani Megert CLA 2006-04-30 10:34:35 EDT
Which editor do you use? Does the OOME happen with a speciif workflow in WSDL?

Note: The NPE in AbstractTextEditor.updateCaret(...) is a followup of the errors in the model (SAXParseException).
Comment 4 Nils Hammar CLA 2006-05-02 02:09:15 EDT
I'm using the WSDL editor, and it doesn't seem to really depend on the WSDL source, which I generated from Axis Java2WSDL and then edited to tweak it.

I have also been getting this error without any stack dump after this report was filed.

The only thing I actually can tell is that it seems to be related to editing WSDL or possibly also XSD files. This error didn't occur when I was editing XSD files in M6, but since then the graphical representation has changed and that may be related. Earlier I didn't edit WSDL, so I can't really tell if M6 was better there.

I usually work by switching between editing the XML code and the graphical representation. Sometimes it's easier to do pure XML editing and sometimes not.
Comment 5 Nils Hammar CLA 2006-05-06 09:11:30 EDT
Now it seems like the editor isn't the culprit after all, but something else. This isnce I got the error during a session where I didn't edit the WSDL. (but there are WSDL files in the workspace) so the error can actually be caused by another item like WSDL validation or something completely different. (hard to tell when the message in the log just states that it's out of PermGen Space and nothing more).
Comment 6 Nils Hammar CLA 2006-05-18 01:55:13 EDT
This error still occurs in 3.2RC4 with updated EMF and GEF.
Comment 7 Nils Hammar CLA 2006-05-18 01:59:51 EDT
One idea is that this bug may be related to Bug 140879, which I filed as a different bug due to the fact that the symptoms are different.
Comment 8 Craig Salter CLA 2006-06-10 01:29:33 EDT
I have no idea how an out of memory error occurs here but I think more info is required before we can solve this.  I think you should also break this bug into separate bugs addressing each of the stack traces. 

The 'SAXParseException' stack traces illustrates a problem between an Axis creation wizard which modifies web.xml which then tries to load an XML Schema and bombs out. It looks like it's somehow trying to retrieve an HTML file instead of an XML Schema.  Please open a separate bug for that against the wst.xml component and we can track it further.

Let use this bug to track the mysterious out of memory problem you're hitting.  Can you provide more specific steps that lead you from Axis Java2WSDL to running out of memory?  Is this consistently reproduceable?
Comment 9 Nils Hammar CLA 2006-06-12 02:22:31 EDT
I haven't been working with the WSDL for a while, but I will come back with the status on the latest version soon.

From my point of view - it's the OutOfMemory error that's the problem, the other errors has to wait.
Comment 10 Hendrik Ebel CLA 2006-07-03 05:33:08 EDT
This error still occurs in Eclipse 3.2 and WTP 1.5 (callisto update). This bug allowed no productive work with Wclipse and WTP. In my option the severity is critical.

Log:

!ENTRY org.eclipse.osgi 2 1 2006-07-03 11:08:13.732
!MESSAGE NLS unused message: LABEL_BUTTON_STOP_WSDL_VALIDATION in: org.eclipse.jst.ws.internal.consumption.ui.ConsumptionUI

!ENTRY org.eclipse.osgi 2 1 2006-07-03 11:08:13.732
!MESSAGE NLS unused message: TOOLTIP_STOP_VALIDATION_BUTTON in: org.eclipse.jst.ws.internal.consumption.ui.ConsumptionUI

!ENTRY org.eclipse.ui 4 4 2006-07-03 11:14:36.187
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2006-07-03 11:14:36.187
!MESSAGE PermGen space
!STACK 0
java.lang.OutOfMemoryError: PermGen space

!ENTRY system.bundle 4 0 2006-07-03 11:15:00.362
!MESSAGE FrameworkEvent.ERROR
!STACK 0
java.lang.OutOfMemoryError: PermGen space
Comment 11 Gunnar Wagenknecht CLA 2006-07-03 08:02:59 EDT
(In reply to comment #10)
> This error still occurs in Eclipse 3.2 and WTP 1.5 (callisto update). This bug
> allowed no productive work with Wclipse and WTP. In my option the severity is
> critical.

Hendrik, which VM are you using? Did you try starting with a greater perm size?  

...eclipse.exe ... -vmargs -XX:MaxPermSize=256m
Comment 12 Hendrik Ebel CLA 2006-07-03 09:21:47 EDT
(In reply to comment #11)

> Hendrik, which VM are you using? Did you try starting with a greater perm size? 
> ...eclipse.exe ... -vmargs -XX:MaxPermSize=256m

Thanks for your tip, I use jre1.5.0_04.

Comment 13 Brandon Dooley CLA 2006-07-26 12:39:45 EDT
I am experiencing the similar problems. When editing an Xdoclet EJB (not just xml files, .java files as well) I get sporadic crashes, I may hit enter for a new line, crash. I might hit tab, crash. All crashes produce:

java.lang.OutOfMemoryError: PermGen space
Dialog open exception:
java.lang.OutOfMemoryError: PermGen space
Fatal error happened during workbench emergency close.
java.lang.OutOfMemoryError: PermGen space

I am running Eclipse-3.2 (Callisto) with sun-jdk-1.5.0.7 and all up-to-date patches via update manager.

I currently have been running eclipse like so:
eclipse -vm /opt/sun-jdk-1.5.0.07/bin/java -XX:MaxPermSize=256m

due to the memory leak, with no success.

I get this on amd64 and x86, with sun-jdk-1.5 and sun-jdk-1.4 respectively.

This is a critical bug, as it crashes every few minutes of use. I will help in any way I can.
Comment 14 Brandon Dooley CLA 2006-07-26 12:43:39 EDT
ug, I didnt realize this was on the windows platform, my problems are on linux. Should I submit a different bug? Thanks.
Comment 15 Craig Salter CLA 2006-07-26 12:51:02 EDT
cc'ing Jeffrey in hopes that he's herding the various PermGen related bugs.
Comment 16 Jeffrey Liu CLA 2006-07-26 15:10:19 EDT
Brandon, I could not reproduce the problem. Using -XX:MaxPermSize=256m, I have never run into a OOME. My system is RHEL 3, x86, Sun JRE 1.4.2_07. I tried editing a bunch of .xml and .java and WTP is still running fine. Anything special about your .xml and .java files? Would it be possible to post some of them?
Comment 17 Brandon Dooley CLA 2006-07-27 14:40:19 EDT
Jeffrey,

So I added "-vmargs" to my execute line for eclipse, giving: eclipse -vm /opt/sun-jdk-1.5.0.07/bin/java -vmargs -XX:MaxPermSize=256m

and I have not had any PermGen errors. It would appear that the maxpermsize wasn't being registered.

Everything is running good atm, I will let you know if anything changes. Thanks for the help.

Brandon

Comment 18 Craig Salter CLA 2006-07-28 12:17:07 EDT
Jeff, I'm going to assign these memory related bugs over to you.
Comment 19 Jeffrey Liu CLA 2006-08-08 14:02:07 EDT

*** This bug has been marked as a duplicate of 129490 ***
Comment 20 John Lanuti CLA 2006-11-28 15:49:26 EST
This is part of a mass update to close out all stale WTP bugs which are in the resolved state without an appropriate targeted version.  If you feel this bug was closed inappropriately, please reopen.