Search code examples
eclipseheap-memorysnapcraft

Change heap size for Eclipse installed as a snap package


I'm running Kubuntu 18.04.1 and have Eclipse installed as a snap package. I want to change the values of Xms and Xmx, but I can't edit /snap/eclipse/29/eclipse.ini because it is read-only. Is there a workaround?


Solution

  • You can add the arguments if you run eclipse via the command-line:

    snap run eclipse -vmargs -Xmx15g