Thursday, May 17, 2012

Java Heap Monitor in JDeveloper

Tested with JDeveloper Version,

Short post, but hopefully a useful productivity tip. Recently I thought if there isn't such a feature as I was used from some other IDEs

Monitoring of the java heap size + the ability to force garbage collection.

Finally I found it as you can see from the screen shot above which shows my right bottom of JDeveloper Statusbar.

So how to activate this one? Well it is quite easy. Locate $MW_HOME/jdeveloper/jdev/bin/jdev.conf and add the following line at the bottom

AddVMOption -DMainWindow.MemoryMonitorOn=true

Restart JDeveloper and you should be able to see the java heap size monitor. Clicking on the recycle bin will force garbage collection.

After garbage collection (in my just started jdeveloper) the used memory dropped from 200M to 105M

That might save you from restarting Jdeveloper to often a day;)

Further Reading


  1. That monitor is not available in 7, 8, and 12c.

  2. Thanks Andreas, confirmed to work in 12.1.3