Subscribe to Netbeans Java Help        RSS Feed

Netbeans Java Help has no entries yet


Page 1 of 1

January 2021

S M T W T F S
     12
3456789
10111213141516
17181920212223
24252627282930
31      

Tags

    Recent Entries

    Recent Comments

    Search My Blog

    1 user(s) viewing

    1 Guests
    0 member(s)
    0 anonymous member(s)

    Categories

    Increasing Java Heap Space in Netbeans IDE Project

    A lot of you might know that changing the etc/netbeans.conf file, one can increase the java heap space. But if you would want to do it right from Netbeans itself here is a way to do it.

    If you get java.lang.OutOfMemoryError: Java heap space while running your project. This is one of the fix.


    This tutorial is for Netbeans IDE 6.9

    • - Right Click on the project's properties.
    • - Click on Run tab.
    • - At the bottom of Run Tab you would see, JVM Argument: Enter -J-Xmx{Your heap space size}m , example -J-Xmx512m or -J-Xmx800m or -J-Xmx120m
    • - Click on OK
    • - You are done


    The Picture description of this is attached here.