Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Does your MWE2 workflow consume a lot of memory?(Tuning hint to reduce the amount of memory consumed by the generator)
Does your MWE2 workflow consume a lot of memory? [message #1404721] Tue, 05 August 2014 09:36 Go to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
I was faced with the problem of running our Geppetto MWE2 workflow for the pp parser on a machine with just 2Gb of memory. Just executing the workflow without tuning consumes about 3Gb. I tried various options and finally found one combination that actually reduced the memory requirement with about 50%.

I thought that the time I spent on this might be useful to others so if you have similar problems, try adding these options as vm arguments in the launcher:

-XX:-UseTLAB -XX:-DisableExplicitGC -XX:+UseG1GC


You might also want to specify the max for perm and heap space.

-XX:MaxPermSize=128m -Xmx1536m

Re: Does your MWE2 workflow consume a lot of memory? [message #1404779 is a reply to message #1404721] Tue, 05 August 2014 17:07 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1754
Registered: July 2009
Location: Firenze, Italy
Senior Member
On 05/08/2014 11:36, Thomas Hallgren wrote:
> I was faced with the problem of running our Geppetto MWE2 workflow for
> the pp parser on a machine with just 2Gb of memory. Just executing the
> workflow without tuning consumes about 3Gb. I tried various options and
> finally found one combination that actually reduced the memory
> requirement with about 50%.
>
> I thought that the time I spent on this might be useful to others so if
> you have similar problems, try adding these options as vm arguments in
> the launcher:
>
> -XX:-UseTLAB -XX:-DisableExplicitGC -XX:+UseG1GC
>
> You might also want to specify the max for perm and heap space.
>
> -XX:MaxPermSize=128m -Xmx1536m
>

Also in my projects I always have to specify the MaxPermSize and the Xmx

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book
Previous Topic:Xtend installation without Xtext
Next Topic:UI required when launching mwe2 headlessly?
Goto Forum:
  


Current Time: Tue Dec 10 07:32:32 GMT 2019

Powered by FUDForum. Page generated in 0.02499 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top