• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Netbeans Heap Space error

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I get an

------------------------------------------------------------------------
[ERROR]FATAL ERROR
------------------------------------------------------------------------
Java heap space
------------------------------------------------------------------------
Trace
java.lang.OutOfMemoryError: Java heap space
at proguard.classfile.io.ProgramClassReader.createConstant(ProgramClassReader.java:740)
at proguard.classfile.io.ProgramClassReader.visitProgramClass(ProgramClassReader.java:95)
at org.apache.maven.plugins.proguard.ProguardMojo.obfuscate(ProguardMojo.java:207)
at org.apache.maven.plugins.proguard.ProguardMojo.execute(ProguardMojo.java:105)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)

I don't know why I get this error. These are my Netbeans options:

__________________________________________________________

netbeans_default_options="-J-Xmx512m -J-client -J-Xss2m -J-Xms512m -J-XX:PermSize=64m -J-XX:MaxPermSize=900m -J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true"

____________________________________________________________________

I really need to set -Xmx to 1024m, and -Xms - 512m (or rather, I was suggested to), but here's the funny part, when I actually do that and save the Netbeans.conf file and restart Netbeans, I get this error;

"JVM Creation failed"

I am at my wit's end. I am using AWT and was told to use Netbeans rather than Eclipse. I am running version Netbeans 6.7.1, and have also been using IntelliJ IDEA 8.1.4, which also does not work.




 
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
It would have helped a lot more if you would have posted the netbeans_default_options setting that contained your attempt to set -Xms to 1024m. Hopefully it looked like this:

netbeans_default_options="-J-Xmx1024m ...

Also, what OS are you running?
 
harish kshatrea
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Peter,

I've added the default options setting that I used below:

netbeans_default_options="-J-Xmx1024m -J-client -J-Xss2m -J-Xms512m -J-XX:PermSize=400m -J-XX:MaxPermSize=900m -J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true"

It didn't work, as I said, it gave me a "JVM Creation failed" error.
My code runs fine now; I am running it in IntelliJ IDEA 8.1 where I increased the dynamic heap as well. But the Netbeans errors concern me as I will have to use it sooner rather than later, and most of my code consists of large sections which might place demands on the memory.

Thanks for replying.

Cheers,
Harry.
 
reply
    Bookmark Topic Watch Topic
  • New Topic