Helios update on Mac OSX - OutOfMemoryError: PermGen space [message #656592] |
Sun, 27 February 2011 08:14 |
Scott Danzig Messages: 5 Registered: February 2011 |
Junior Member |
|
|
I was going to file a bug, but I have a few issues here so I'm hoping you can help me get a handle on it first. I have Helios with Mac OSX 10.6.6 ..Subversive, Spring Tool Suite, and some other extensions. I updated just recently.. there were updates for Eclipse IDE for J2EE along with updates for Subversive. I update them all and restart. While Subversive is trying to load up the connector discovery tool, and the IDE is also trying to load RSS feeds and other stuff, an OutOfMemoryError gets thrown to the console, which I've copied below. After a google or two, I figured I'd try increasing the XXMaxPermSize in the eclipse.ini .. but I didn't see any eclipse.ini for my OSX installation of eclipse..I see it supposed to be in the Contents folder, so I put one there, maing max perm size = 512m .. still no dice. Any suggestions? Thanks:
Exception in thread "Thread-6" java.lang.OutOfMemoryError: PermGen space
at java.lang.String.intern(Native Method)
at org.eclipse.equinox.internal.p2.persistence.XMLParser$TextHandler.processCharacters(XMLParser.java:461)
at org.eclipse.equinox.internal.p2.persistence.XMLParser$AbstractHandler.finishCharacters(XMLParser.java:224)
at org.eclipse.equinox.internal.p2.persistence.XMLParser$AbstractHandler.endElement(XMLParser.java:176)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2938)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry$Parser.parse(SimpleProfileRegistry.java:623)
at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry$Parser.parse(SimpleProfileRegistry.java:612)
at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry.restore(SimpleProfileRegistry.java:433)
at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry.getProfileMap(SimpleProfileRegistry.java:274)
at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry.internalGetProfile(SimpleProfileRegistry.java:235)
at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry.getProfile(SimpleProfileRegistry.java:165)
at org.eclipse.equinox.internal.p2.updatechecker.UpdateChecker.checkForUpdates(UpdateChecker.java:123)
at org.eclipse.equinox.internal.p2.updatechecker.UpdateChecker$UpdateCheckThread.run(UpdateChecker.java:72)
java.lang.OutOfMemoryError: PermGen space
Exception in thread "[Timer] - Main Queue Handler" java.lang.OutOfMemoryError: PermGen space
|
|
|
Re: Helios update on Mac OSX - OutOfMemoryError: PermGen space [message #656617 is a reply to message #656592] |
Sun, 27 February 2011 15:27 |
Scott Danzig Messages: 5 Registered: February 2011 |
Junior Member |
|
|
Solved the problem after a good night's sleep and learned a few things.. I used this eclipse.ini:
-startup
../../../plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20 101122_1400.jar
launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x 86_64_1.1.2.R36x_v20101019_1345
-vm
/usr/bin/java
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
-vmargs
-Xms80m
-Xmx768m
-Dosgi.requiredJavaVersion=1.6
I realized it goes under Contents/MacOS .. was just putting it under Contents. And by default, apparently it's not there. I needed the XXMaxPermSize setting to solve the OutOfMemory issue. Then another problem came up, where I was getting "Error while loading manipulator" when I believe with the updates, the old SVN connectors I had were being uninstalled. That's when I figured I had to see what I had under plugins/*launcher" and add the latest .jar for -startup and directory for --launcher.library .. it also took me a bit to figure out OSX requires a ../../../ in front of "plugins".. ugh.
I know OSX users are such a minority, so I guess I should get used to this. :'(
[Updated on: Sun, 27 February 2011 15:28] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02909 seconds