Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools incubator » Exception in thread "main" java.lang.OutOfMemoryError: Java heap space(XSLT transform failing)
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space [message #641968] Mon, 29 November 2010 12:23 Go to next message
mikael petterson is currently offline mikael pettersonFriend
Messages: 73
Registered: July 2009
Member
Hi,

I am using Eclipse helios ( win32) SR1 and tried to do a transformation. I Changes the eclipse.ini to contain:

-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R 36x_v20100810
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms256m
-Xmx512m

But I still get the following during transformation:

13:09:44,750 INFO [main] Main - java.endorsed.dirs=C:\Program Files\Java\jre1.5.0_16\lib\endorsed
13:09:44,755 INFO [main] Main - launchFile: C:\Users\eraonel\workspace\.metadata\.plugins\org.eclipse.ws t.xsl.jaxp.launching\launch\launch.xml
13:09:45,071 INFO [main] JAXPSAXProcessorInvoker - Transforming...
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Vector.ensureCapacityHelper(Unknown Source)
at java.util.Vector.addElement(Unknown Source)
at com.sun.org.apache.xml.internal.dtm.ref.sax2dtm.SAX2DTM2.sta rtElement(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.dom.SAXImpl.startEle ment(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHand lerImpl.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner Impl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(Unknown Source)
at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProce ssorInvoker.transform(JAXPSAXProcessorInvoker.java:220)
at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProce ssorInvoker.transform(JAXPSAXProcessorInvoker.java:186)
at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.Main.main(Ma in.java:73)


Any ideas?

br,

//mike
Re: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space [message #642631 is a reply to message #641968] Thu, 02 December 2010 04:53 Go to previous message
David Williams is currently offline David WilliamsFriend
Messages: 176
Registered: July 2009
Senior Member
>
>...
> -vmargs
> -Dosgi.requiredJavaVersion=1.5
> -Xms256m
> -Xmx512m
>
> But I still get the following during transformation:
> > ...
> 13:09:45,071 INFO [main] JAXPSAXProcessorInvoker - Transforming...
> Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
> ...
>
> Any ideas?
>

well, XSL Transforms are notorious memory hogs ... and 512m isn't that
much ... I'd simply try 1G or more and see if that's enough.
Previous Topic:Zipped P2 repository for JPA Editor
Next Topic:Successful Release Review - JPA Diagram Editor 0.5.0
Goto Forum:
  


Current Time: Fri Apr 19 22:25:39 GMT 2024

Powered by FUDForum. Page generated in 0.03137 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top