1 Cpu
Class Ax.vm.Cpu
This class provides look into the Java Virtual Machine CPU statistics.
Constructor Summary
Method Summary
Modifier and Type
Method
Description
Gets overview info about the system and the JVM.
Returns the top 10 threads with most CPU usage (%).
getThreads(int max)
Returns the top max threads with most CPU usage (%).
void
sleep(long time)
Constructor Detail
Ax.vm.Cpu.JSVMCpu
-
Ax.vm.Cpu.JSVMCpu()
- Info:
-
Creates a new instance to access to JVM CPU info.
Example
Copy
var cpu = new Ax.vm.Cpu();
Method Detail
Ax.vm.Cpu.getOverview
-
resultset Ax.vm.Cpu.getOverview()
- Info:
-
Gets overview info about the system and the JVM. - Returns:
- resultset
Ax.vm.Cpu.getThreads
-
resultset Ax.vm.Cpu.getThreads()
- Info:
-
Returns the top 10 threads with most CPU usage (%). - Returns:
- resultset
Ax.vm.Cpu.getThreads
-
resultset Ax.vm.Cpu.getThreads( smallint max )
- Info:
-
Returns the top max threads with most CPU usage (%). - Parameters:
- max - the number of threads to show
- Returns:
- resultset
Ax.vm.Cpu.sleep
-
null Ax.vm.Cpu.sleep( long time )
- Parameters:
- time -
- Returns:
- null
2 Info
Class Ax.vm.Info
This class provides look into the Java Virtual Machine statistics.
Constructor Summary
Method Summary
Modifier and Type
Method
Description
@org.eclipse.jdt.annotation.NonNull java.lang.String
@org.eclipse.jdt.annotation.NonNull java.lang.String
Ax.text.String
Gets the main class name of the current thread (for what use?).
long
getPID()
Gets the the java process PID.
Ax.text.String
getVMId()
Gets the vm id, like 8681@mac13.
Ax.text.String
Gets the vm name, like Java HotSpot(TM) 64-Bit Server VM.
Ax.text.String
Gets the vm version.
Constructor Detail
Ax.vm.Info.JSVMInfo
-
Ax.vm.Info.JSVMInfo()
- Info:
-
Creates a new instance to access to JVM info.
Example
Copy
var info = new Ax.vm.Info();
Method Detail
Ax.vm.Info.getLocalHostAddr
-
object Ax.vm.Info.getLocalHostAddr()
- Returns:
- object
Ax.vm.Info.getLocalHostName
-
object Ax.vm.Info.getLocalHostName()
- Returns:
- object
Ax.vm.Info.getMainClassName
-
string Ax.vm.Info.getMainClassName()
- Info:
-
Gets the main class name of the current thread (for what use?). - Returns:
- string
Ax.vm.Info.getPID
-
long Ax.vm.Info.getPID()
- Info:
-
Gets the the java process PID. - Returns:
- long
Ax.vm.Info.getVMId
-
string Ax.vm.Info.getVMId()
- Info:
-
Gets the vm id, like 8681@mac13. - Returns:
- string
Ax.vm.Info.getVMName
-
string Ax.vm.Info.getVMName()
- Info:
-
Gets the vm name, like Java HotSpot(TM) 64-Bit Server VM. - Returns:
- string
Ax.vm.Info.getVMVersion
-
string Ax.vm.Info.getVMVersion()
- Info:
-
Gets the vm version. - Returns:
- string
3 Memory
Class Ax.vm.Memory
This class provides look into the Java Virtual Machine Memory statistics.
Constructor Summary
Method Summary
Modifier and Type
Method
Description
Ax.text.String
dumpHeap(boolean live)
Programmatically generates a heap dump.
void
gc()
Runs the grabage collector in the JVM.
long
Gets the direct memory size.
Ax.text.String
Gets the direct memory status.
Gets the names, size and current usage of all JVM memory pools
Gets the memory off-heap buffer pools.
Constructor Detail
Ax.vm.Memory.JSVMMemory
-
Ax.vm.Memory.JSVMMemory()
- Info:
-
Creates a new instance to access to JVM Memory info.
Example
Copy
var mem = new Ax.vm.Memory();
Method Detail
Ax.vm.Memory.dumpHeap
-
string Ax.vm.Memory.dumpHeap( boolean live )
- Info:
-
Programmatically generates a heap dump. - Parameters:
- live -
- Returns:
- string
Ax.vm.Memory.gc
-
null Ax.vm.Memory.gc()
- Info:
-
Runs the grabage collector in the JVM. - Returns:
- null
Ax.vm.Memory.getDirectMemorySize
-
long Ax.vm.Memory.getDirectMemorySize()
- Info:
-
Gets the direct memory size. - Returns:
- long
Ax.vm.Memory.getDirectMemoryStatus
-
string Ax.vm.Memory.getDirectMemoryStatus()
- Info:
-
Gets the direct memory status. - Returns:
- string
Ax.vm.Memory.getMemoryPools
-
resultset Ax.vm.Memory.getMemoryPools()
- Info:
-
Gets the names, size and current usage of all JVM memory pools - Returns:
- resultset
Ax.vm.Memory.getOffHeapMemoryBuffers
-
resultset Ax.vm.Memory.getOffHeapMemoryBuffers()
- Info:
-
Gets the memory off-heap buffer pools. - Returns:
- resultset