Weblogic Server Heap Space Utilization



 Weblogic Server Heap Space Utilization

Description:

Heap Space Utilization too high (>=95% say)

Solution/Workaround:

  • Log on to WebLogic Admin Console
    • Go to the server instance for which the heap space utilization increased beyond limit.
    • Then go to Tab “Monitoring” > “Performance”

If WebLogic version is 8.1

  • You will find graph showing Heap Space utilization
  • monitor for sometime if automatic garbage collection runs
  • If not, then click on the “Force Garbage Collection” Button
  • Heap space utilization will reduce sharply.
  • Monitor for sometime.

If WebLogic 9.x/10

  • HeapFreePercent parameter will show the current percent of heap space free.
  • If it too low (<10 for="" quite="" sometime="" span="">
  • Click on the button “Garbage Collect Forcefully”
  • If WebLogic Admin Console is not available (“You are not authorized to View this page” error you are getting when trying to open admin console in internet explorer):
    This means, the license of BEA WebLogic installed is “Development License” and the user limit exceeds. (FYI: WebLogic Development license only support requests from specified different IPs at a time, so if that value exceeds, the above error will occur)
    • Login to the UNIX Box
    • Use weblogic.Admin command line utility to monitor and reduce HeapSpace utilization
    • Use: java weblogic.Admin –url t3://: -username -password GET –pretty –type JVMRuntime
      You can see detailed HeapSpace utilization from this output.
    • If you need a garbage collection, use the following command:
      java weblogic.Admin –url t3://: -username password INVOKE –pretty –type JVMRuntime –method runGC
    • Again check garbage collection using the first command to see the current garbage collection