public interface VMControl
Modifier and Type | Method and Description |
---|---|
void |
collectClassHistogramData()
Triggers the collection of the class histogram data.
|
boolean |
isClassesDataCollectionEnabled()
Returns whether classes data collection is enabled.
|
boolean |
isGCDataCollectionEnabled()
Returns whether GC data collection is enabled.
|
boolean |
isIODataCollectionEnabled()
Returns whether IO data collection is enabled.
|
boolean |
isLockingDataCollectionEnabled()
Returns whether locking data collection is enabled.
|
boolean |
isNativeMemoryDataCollectionEnabled()
Returns whether native memory data collection is enabled.
|
boolean |
isProfilingDataCollectionEnabled()
Returns whether profiling data collection is enabled.
|
boolean |
isThreadsDataCollectionEnabled()
Returns whether threads data collection is enabled.
|
void |
setCallStackCollectionEnabled(boolean value)
Enables the collection of call stacks for sampled object allocation
events.
|
void |
setClassesDataCollectionEnabled(boolean value)
Turns classes data collection on or off.
|
void |
setGCDataCollectionEnabled(boolean value)
Turns GC data collection on or off.
|
void |
setIODataCollectionEnabled(boolean value)
Turns IO data collection on or off.
|
void |
setLockingDataCollectionEnabled(boolean value)
Turns locking data collection on or off.
|
void |
setMaxStackDepth(int depth)
Sets the maximum number of stack entries to collect for each event.
|
void |
setNativeMemoryDataCollectionEnabled(boolean value)
Turns native memory data collection on or off.
|
void |
setObjectAllocationsEnabled(long lowValue)
Enables the collection of object allocation data for objects above a specified size.
|
void |
setObjectAllocationsEnabled(long lowThreshold,
long highThreshold)
Enables the collection of object allocation data for objects within a specified size range.
|
void |
setProfilingDataCollectionEnabled(boolean value)
Turns profiling data collection on or off.
|
void |
setThreadDataCollectionEnabled(boolean value)
Turns thread data collection on or off.
|
void |
setThreadStackDepth(int depth)
Sets the maximum number of stack entries to collect for each thread.
|
void |
setTracePointEnabled(java.lang.String tracePointID,
boolean value)
Turns individual trace points on or off.
|
void |
setVerboseGCCollectionEnabled(boolean value)
Turns the writing of verbose garbage collection data to a file on or off.
|
boolean |
triggerHeapDump()
Triggers a heap dump in the running virtual machine.
|
boolean |
triggerJavaDump()
Triggers a Java dump in the running virtual machine.
|
boolean |
triggerSystemDump()
Triggers a system dump in the running virtual machine.
|
void setObjectAllocationsEnabled(long lowThreshold, long highThreshold)
lowThreshold
- the minimum size (in bytes) of the objects to collect data on.highThreshold
- the maximum size (in bytes) of the objects to collect data on.void setObjectAllocationsEnabled(long lowValue)
lowValue
- the minimum size (in bytes) of the objects to collect data on.void setVerboseGCCollectionEnabled(boolean value)
com.ibm.java.diagnostics.healthcenter.output.folder
property. If this
property is not set, the file is saved in the directory that is specified
by the user.dir
system property.value
- whether collection is on or off. *boolean triggerHeapDump()
true
if the trigger command was successfully sent to the virtual machine, false
if the command
failed.boolean triggerSystemDump()
true
if the trigger command was successfully sent to the virtual machine, false
if the command
failed.boolean triggerJavaDump()
true
if the trigger command was successfully sent to the virtual machine, false
if the command
failed.void setCallStackCollectionEnabled(boolean value)
value
- whether the collection is on or off.void setMaxStackDepth(int depth)
depth
- the maximum number of stack entries.void setGCDataCollectionEnabled(boolean value)
value
- whether the collection is on or off.void setIODataCollectionEnabled(boolean value)
value
- whether the collection is on or off.void setClassesDataCollectionEnabled(boolean value)
value
- whether the collection is on or off.void setLockingDataCollectionEnabled(boolean value)
value
- whether the collection is on or off.void setNativeMemoryDataCollectionEnabled(boolean value)
value
- whether the collection is on or off.void setProfilingDataCollectionEnabled(boolean value)
value
- whether the collection is on or off.void setThreadDataCollectionEnabled(boolean value)
value
- whether the collection is on or off.void setThreadStackDepth(int depth)
depth
- the maximum number of stack entries required.void setTracePointEnabled(java.lang.String tracePointID, boolean value) throws HealthCenterException
tracePointID
- the ID of the trace point to enable or disable.value
- whether the trace point is on or off.HealthCenterException
- if the call is unsuccessful.boolean isGCDataCollectionEnabled()
boolean isIODataCollectionEnabled()
boolean isProfilingDataCollectionEnabled()
boolean isClassesDataCollectionEnabled()
boolean isThreadsDataCollectionEnabled()
boolean isNativeMemoryDataCollectionEnabled()
boolean isLockingDataCollectionEnabled()
void collectClassHistogramData() throws HealthCenterNotSupportedException
HealthCenterNotSupportedException.
HealthCenterNotSupportedException