Class ServiceabilityAgentSupport
java.lang.Object
org.openjdk.jol.vm.sa.ServiceabilityAgentSupport
Hotspot Serviceability Agent support.
IMPORTANT NOTE:
On some UNIX based operating systems and MacOSX operation system, Hotspot Serviceability Agent (SA) process
attach may fail due to insufficient privilege. So, on these operating systems, user (runs the application)
must be super user and must be already authenticated for example with "sudo"
command (also with password) to "/etc/sudoers" file.
For more information about "sudo", please have a look:
http://en.wikipedia.org/wiki/Sudo
http://linux.about.com/od/commands/l/blcmdl8_sudo.htm
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ServiceabilityAgentSupport.AgentStyleprivate static ServiceabilityAgentSupportprivate final longprivate final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Resultprivate ResultcallAgent(Task processor, boolean sudoRequired, ServiceabilityAgentSupport.AgentStyle style) getArguments(boolean sudoRequired, ServiceabilityAgentSupport.AgentStyle style) private static longstatic ServiceabilityAgentSupportinstance()private static booleanprivate booleanprivate static StringnormalizePath(String path) private void
-
Field Details
-
INSTANCE
-
processId
private final long processId -
sudoRequired
private final boolean sudoRequired -
agentStyle
-
-
Constructor Details
-
ServiceabilityAgentSupport
private ServiceabilityAgentSupport()
-
-
Method Details
-
instance
-
senseAgentStyle
-
needSudo
-
normalizePath
-
isSudoValidOS
private static boolean isSudoValidOS() -
getCurrentProcId
private static long getCurrentProcId() -
callAgent
-
callAgent
private Result callAgent(Task processor, boolean sudoRequired, ServiceabilityAgentSupport.AgentStyle style) -
senseAccess
-
getArguments
private List<String> getArguments(boolean sudoRequired, ServiceabilityAgentSupport.AgentStyle style) -
getUniverseData
-