Subscribe to Netbeans Java Help        RSS Feed

Netbeans Java Help has no entries yet


Page 1 of 1

March 2021

S M T W T F S
 123456
78910111213
14151617181920
21222324252627
28293031   

Tags

    Recent Entries

    Recent Comments

    Search My Blog

    0 user(s) viewing

    0 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.