0

I´m creating a plugin here and to execute it correctly, we need to set the original parameter -Xmx512m to -Xmx1536m (1,5GB).

Is there any way of doing this programmatically, when I´m installing the plugin? Or any other way?

Thanks a lot

Rafael Barioni
  • 183
  • 1
  • 1
  • 12
  • [This blog](http://pweclipse.blogspot.co.uk/2012/02/p2-can-update-your-eclipseini.html) talks about using the p2 installer for this – greg-449 Feb 27 '15 at 17:47
  • Thanks a lot for the link. But do you have anything about how to add p2 to my plugin development? – Rafael Barioni Feb 27 '15 at 17:50

1 Answers1

0

You can use a p2 touchpoint to add/modify JVM arguments to the host Eclipse installation. It's not terribly difficult but neither is it trivial. Start with this documentation (too detailed to summarize here). This other SO question and answer also has an example, but with less explanation.

Basically, you'll need to include an appropriately configured p2.inf file in your installable feature.

Community
  • 1
  • 1
E-Riz
  • 31,431
  • 9
  • 97
  • 134