the memory options most likely.
but I build most of trunk yesterday just with: -Xmx512m
/max
On Apr 27, 2012, at 16:46 , Victor Rubezhny wrote:
Hi, Nick!
I've finally built the tests component.
What I did to build:
- I've downloaded the latest maven 3.0.4 (instead of 3.0.3 that was installed
previously)
- I did follow your suggestion to use memory options for Maven but I increased the values
to be -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m. Also I've put these
options into /etc/environment file instead of
/usr/local/apache-maven/apache-maven-3.0.4/bin/mvn)
- Released some space on the disk (but it had about 6GB free before)
- once again updated the sources from trunk (but it was up-to-date when the build was
failed last time)
So, I'm not sure on what exactly was the salvation, but now it works for me. And
I'm not sure what exactly I can put into
https://community.jboss.org/wiki/HowtoBuildJBossToolswithMaven3 as a solution.
Thanks again.
Victor
On 04/27/2012 08:34 AM, Nick Boldt wrote:
> Try building w/o running the tests:
>
> `mvn install -Dmaven.test.skip`
>
> Or, allocate more memory to maven processes by adding something like this to your
/opt/apache-maven-3.0.4/bin/mvn (or wherever you have mvn installed) script:
>
> set MAVEN_OPTS=-Xms512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m
>
> then run as above.
>
> If that helps, consider adding a section on memory/performance tuning this to the
wiki:
>
>
https://community.jboss.org/wiki/HowtoBuildJBossToolswithMaven3
>
> Thanks!
>
> On 04/26/2012 08:33 PM, Victor Rubezhny wrote:
>> Hi, ALL!
>>
>> Probably this question is actually for Nick or Denis but...
>>
>> Trying to build tests component by tycho build but constantly getting
>> the following error as result (See the output below).
>>
>> The question is: do I need to buy a newer PC (or at least install more
>> memory)? :o)
>>
>> Any hints appreciated.
>> Best Regards,
>> Victor
>>
>> === Cut ===
>> [ERROR] GC overhead limit exceeded -> [Help 1]
>> java.lang.OutOfMemoryError: GC overhead limit exceeded
>> at java.util.Arrays.copyOfRange(Arrays.java:3209)
>> at java.lang.String.<init>(String.java:215)
>> at
>> com.sun.org.apache.xerces.internal.xni.XMLString.toString(XMLString.java:185)
>> at
>>
com.sun.org.apache.xerces.internal.util.XMLAttributesImpl.getValue(XMLAttributesImpl.java:537)
>> at
>>
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser$AttributesProxy.getValue(AbstractSAXParser.java:2319)
>> at
>>
org.eclipse.equinox.internal.p2.persistence.XMLParser$AbstractHandler.parseAttributes(XMLParser.java:314)
>> at
>>
org.eclipse.equinox.internal.p2.persistence.XMLParser$AbstractHandler.parseRequiredAttributes(XMLParser.java:295)
>> at
>>
org.eclipse.equinox.internal.p2.persistence.XMLParser$PropertyHandler.parseProperty(XMLParser.java:422)
>> at
>>
org.eclipse.equinox.internal.p2.persistence.XMLParser$PropertyHandler.<init>(XMLParser.java:411)
>> at
>>
org.eclipse.equinox.internal.p2.persistence.XMLParser$PropertiesHandler.startElement(XMLParser.java:396)
>> at
>>
org.eclipse.equinox.internal.p2.persistence.XMLParser$AbstractHandler.startElement(XMLParser.java:165)
>> at
>>
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
>> at
>>
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)
>> at
>>
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:377)
>> at
>>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
>> 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.metadata.repository.MetadataRepositoryIO$Parser.parse(MetadataRepositoryIO.java:209)
>> at
>>
org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryIO.read(MetadataRepositoryIO.java:63)
>> at
>>
org.eclipse.equinox.internal.p2.metadata.repository.SimpleMetadataRepositoryFactory.load(SimpleMetadataRepositoryFactory.java:107)
>> at
>>
org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.factoryLoad(MetadataRepositoryManager.java:57)
>> at
>>
org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:749)
>> at
>>
org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:651)
>> at
>>
org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96)
>> at
>>
org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:92)
>> at
>>
org.eclipse.tycho.p2.target.TargetPlatformBuilderImpl.addP2Repository(TargetPlatformBuilderImpl.java:259)
>> [ERROR]
>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>> [ERROR]
>> [ERROR] For more information about the errors and possible solutions,
>> please read the following articles:
>> [ERROR] [Help 1]
>>
http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError
>> j
>> _______________________________________________
>> jbosstools-dev mailing list
>> jbosstools-dev(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/jbosstools-dev
>