Thursday, May 17, 2012

Java Heap Monitor in JDeveloper

Tested with JDeveloper Version 11.1.1.5, 11.1.2.1

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
0000@2933_2933-41266b5f570d462a

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.
0001@2933_2933-41266b5f592f684c

After garbage collection (in my just started jdeveloper) the used memory dropped from 200M to 105M
0002@2933_2933-41266b5f59d7cc6c

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

Further Reading
http://docs.oracle.com/cd/E25178_01/fusionapps.1111/e15524/gs_install_e.htm#CDEFEDGC

2 comments:

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

    ReplyDelete
  2. Thanks Andreas, confirmed to work in 12.1.3

    ReplyDelete