Thursday, 25 February 2016

How to run garbage collection in Weblogic

You can manually request that the JVM perform garbage collection. Make sure that full garbage collection is necessary before selecting it on a server instance. When you perform garbage collection, the JVM often examines every living object in the heap.

To request garbage collection:

1. If you have not already done so, in the Change Center of the Administration Console, click Lock & Edit (see Use the Change Center).

2.In the left pane of the Console, expand Environment > Servers.

3.On the Summary of Servers page, select the server instance for which you will request garbage collection.

4. Select Monitoring > Performance.

5.Click Garbage Collect.

6.Garbage Collect calls the JVM’s System.gc() method to perform garbage collection. The JVM implementation then decides whether or not the request actually triggers garbage collection.

7.To activate these changes, in the Change Center of the Administration Console, click Activate Changes. (Not all changes take effect immediately—some require a restart).

No comments:

Post a Comment