java - How to allocate different heap sizes to different eclipse instances? -


in eclipse can have multiple eclipse instances, each pointing different workspace.

want 1 eclipse instance have lesser heap size other, because number of projects handles less , stuff run in requires less memory (this can reason).

can set heap size in eclipse.ini using

-xms40m -xmx512m 

options.

but, changes heap size every eclipse instance start. don't want this.
i want different heap sizes different eclipse instances. how achieve this? (i reckon in .metadata folder in workspace).

you can specify ini file use --launcher.ini command line option when launching eclipse:

--launcher.ini <location> (executable)

the location of product .ini file use. if not specified executable file beside launcher same name , extension .ini. (ie eclipse.exe looks eclipse.ini, product.exe looks product.ini)

you can either create different shortcuts or different .exe files, e.g. windows use path/to/eclipse.exe --launcher.ini eclipse-min.ini (or copy default eclipse.exe eclipse-min.exe) use file called eclipse-min.ini eclipse installation directory (which can contain configuration smaller heap size).


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -