(iSeries)
Activate the heap monitor
This task describes the steps used to activate the heap monitor. Heap monitor is used with WebSphere Application Server profiles to monitor heap size of a profile in comparison to pool size.
For existing WAS profiles, there is a script available to add the feature. See the heapMonitor script information.
Use the heap monitor feature to monitor the JVM heap size of a WAS profile in comparison to pool size. The feature is available for new WAS profiles or profiles created.
To check if a WAS profile has the heap monitor enabled and to activate it if necessary, perform the following steps.
Tasks
- Start the server for the WAS profile.
- Run the heapMonitor script with the -status flag. For example, for a WAS v8.5 profile named default, enter in the Qshell environment:
/QIBM/ProdData/WebSphere/AppServer/V85/ND/bin/heapMonitor -profileName default -statusThe output should look similar to the following:WASX7209I: Connected to process "server1" on node MYSERVER using SOAP connector; The type of process is: UnManagedProcess WASX7303I: The following options are passed to the scripting environment and are available as argument stored in the argv variable: "[status, server1]" HEAP0002I: The heap monitor is disabled. $- To enable the heap monitor for this example, enter in the Qshell environment:
/QIBM/ProdData/WebSphere/AppServer/V85/ND/bin/heapMonitor -profileName default -enableThe output should look similar to the following:WASX7209I: Connected to process "server1" on node MYSERVER using SOAP connector; The type of process is: UnManagedProcess WASX7303I: The following options are passed to the scripting environment and are available as argument stored in the argv variable: "[enable, server1]" HEAP0005I: Enabling the heap monitor... HEAP0003I: The heap monitor has been enabled. $- Stop and start the server.
The following message typically appears in the Display Message command (DSPMSG QSYSOPR):
HEAP MONITOR STARTED FOR 012500/QEJBSVR/SERVER1 IN SUBSYSTEM qwas85 IN POOL *BASE POOL ID=2 POOLSIZE(B)=1687994368 RESERVED(B)=778240 HEAP TOTAL(B)=202276864 FREE(B)=67037600 USEDHEAP=135239264 OS400.GC.HEAP.SIZE.MAX(KB) =240000000The heap monitor is activated.
Subtopics
- (iSeries) Heap monitor default operation
The heap monitor follows default operation behavior as described in this file.
heapMonitor command