Getting the new size correct is probably the single biggest thing that can be done to prevent poor garbage collection performance.
This recipe assumes that you are starting WebLogic using the
scripts. If you are using the node manager or some other mechanism, simply apply the startup parameter to the relevant place. You will need the file system permissions to edit the WebLogic start scripts for this recipe.
This recipe assumes that you are using the HotSpot JVM, and if you are using JRockit, see the There's more… section of this recipe, for the parameter you need.
To set the HotSpot heap memory's new size, perform the following steps: