• 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

Issue : [javac] java.lang.OutOfMemoryError: Java heap space

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am facing this issue when I try to compile a package (which have more java files)

[javac] java.lang.OutOfMemoryError: Java heap space

I have tried various options like
1) set ANT_OPTS=-Xms512m -Xmx512m in the build environment.

2) set fork attribute = TRUE in the build.xml

Nothing is working for me. I have searched through some forums and got above resolutions. Even I increased ANT_OPTS values up to -Xms1024m -Xmx512m. Still I didn't get resolved this issue.

I am using ANT1.6.1 and JDK150.

If any one give suggestion on this, that would help me a lot.

Thanks in advance,
Pandithurai.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In the 1G one you have -Xms and -Mmx reversed; mx is the max.

Try increasing the PermGen space? How many classes are there?! It might be helpful to include the entire stack trace/build output to help pinpoint what's going wrong, and during what--I mean, I'm compiling a half-million line project without having to increase the memory settings, so something's probably configured wrong.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic