Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to increase application heap size in Eclipse?

There are many ways to increase the application Heap size in Eclipse.
a.   Launching Eclipse by passing the heap size
b.   Configuring heap size in eclipse.ini file
c.   Updating vm arguments of installed jre

Launching Eclipse by passing the heap size
eclipse [normal arguments] -vmargs -Xmx512M [more VM args]

Above command launch the eclipse with heap size of 512MB.

Configuring heap size in eclipse.ini file
You can configure the heap size in ‘eclipse.ini’ file.

Here is an example.

-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms256m
-Xmx1024m

Updating vm arguments of installed jre

Open Eclipse. Window -> Preferences
Select the installed jre and click on Edit button


Add the vm arguments and click on the button Finish.

You may like
Miscellaneous
Interview Questions
Programming Questions
Add JavaEE perspective to eclipse
Create dynamic web project in eclipse
Configure tomcat server in eclipse
Eclipse Memory Analyzer Tool (MAT)
Install maven plugin in eclipse
Eclipse Short cuts
Add new maven archetype in eclipse
How to Change Eclipse Default Web Browser
Change context root of a dynamic web project in Eclipse
Increase tomcat server time out in Eclipse





This post first appeared on Java Tutorial : Blog To Learn Java Programming, please read the originial post: here

Share the post

How to increase application heap size in Eclipse?

×

Subscribe to Java Tutorial : Blog To Learn Java Programming

Get updates delivered right to your inbox!

Thank you for your subscription

×