• 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

OutOfMemoryError: Java heap space

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everybody,

I'm writing a code generator as an Eclipse plugin using the framework Xtext for developing my DSL. My test project consist of 15000 source files. After doing some optimization specific to Xtext, I keep running into java.lang.OutOfMemoryError: Java heap space when I iterate over the objects representing my source files.

I'm learnig about GC and its related JVM parameters. Im trying this run configuration:



At first, It seems to go very well with an acceptable speed, but after awhile I get:



After it, the application gets really slow, and eventually I get:



I know "promotion failed" has to do with the generations of living objects, but I have experimented with different parameters for the Run Congifuration with no success.

I would really appreciate your help!

Thank you very much.

 
Ranch Hand
Posts: 56
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rafael,

which JVM and which OS do you use?

Ramon
 
30 seconds to difuse a loaf of bread ... here, use this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic