public class JavaVmRuntimeChanger extends Object implements com.sun.management.HotSpotDiagnosticMXBean, Serializable
| Modifier and Type | Field and Description |
|---|---|
List<String> |
appliedSetting |
| Constructor and Description |
|---|
JavaVmRuntimeChanger(TestCase testCase) |
| Modifier and Type | Method and Description |
|---|---|
void |
dumpHeap(String outputFile,
boolean live) |
List<com.sun.management.VMOption> |
getDiagnosticOptions() |
ObjectName |
getObjectName() |
com.sun.management.VMOption |
getVMOption(String name) |
void |
setVMOption(String name,
String value)
A few of the JVM settings that are settable from the command line
(usually with -X option) can be manipulated or added programatically.
|
public JavaVmRuntimeChanger(TestCase testCase)
public void dumpHeap(String outputFile, boolean live) throws IOException
dumpHeap in interface com.sun.management.HotSpotDiagnosticMXBeanIOExceptionpublic List<com.sun.management.VMOption> getDiagnosticOptions()
getDiagnosticOptions in interface com.sun.management.HotSpotDiagnosticMXBeanpublic com.sun.management.VMOption getVMOption(String name)
getVMOption in interface com.sun.management.HotSpotDiagnosticMXBeanpublic void setVMOption(String name, String value)
setVMOption in interface com.sun.management.HotSpotDiagnosticMXBeanname - The name of the parameter to attempt to set.value - The settings value to try to apply.public ObjectName getObjectName()
getObjectName in interface PlatformManagedObjectCopyright © 2019. All rights reserved.