• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

While testing with maven "java heap space" error

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
While executing a single test everything is OK. But when I execute multiple tests in Netbeans using Alt=F6 I get java heap space error. I tried to increase heaps space by using -Xmx512m but when I look the heaps space with Java VisualVM the heap space still stays on 64mb. I'm trying to increase the heap space of org.apache.maven.surefire.SurefireBooter but until now without success.
I also put <forkMode>pertest</forkMode> <argLine>-Xms512m -Xmx512m</argLine> </configuration> in the maven POM but still without luck.
Know someone a trick to increase the heap space of maven module org.apache.maven.surefire.SurefireBooter?
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try setting the MAVEN_OPTS env var to the JVM options you want. Example (for Linux):

export MAVEN_OPTS='-Xms512m -Xmx512m'

(Look at the script that starts Maven, it uses this env var to pass JVM options to java)
 
Yakup Klein
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think this is an Maven Netbeans issue. All the changes in the mvn.bat file of maven does not effect and my test with alt+F6 still giving java heap space error. I'm working on an XP machine. Does notbeans not have IDE options to let start maven with more heap space. I know I have to use -Xmx 512m -Xms512m but why is netbeans not using it and where do I have to put this options?
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That makes this a NetBeans question, moving...
 
Would you like to try a free sample? Today we are featuring tiny ads:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic