Home » Core Java » lang » management

management

Get JVM Start Time-Date

With this example we are going to demonstrate how to get the JVM Start Time-Date. We are using the RuntimeMXBean, that is the management interface for the runtime system of the Java virtual machine. In short, to get the JVM Start Time-Date you should: Get the JVM’s thread system bean, that is the RuntimeMXBean, using the getRuntimeMXBean() API method of ...

Read More »

Obtain System Properties

This is an example of how to obtain the System Properties. We are using the RuntimeMXBean, that is the management interface for the runtime system of the Java virtual machine. Getting the System Properties implies that you should: Get the JVM’s thread system bean, that is the RuntimeMXBean, using the getRuntimeMXBean() API method of ManagementFactory. Get the Map of the ...

Read More »

Get Class Path

In this example we shall show you how to get the Class Path. We are using the RuntimeMXBean, that is the management interface for the runtime system of the Java virtual machine. To get the Class Path with the the RuntimeMXBean one should perform the following steps: Get the JVM’s thread system bean, that is the RuntimeMXBean, using the getRuntimeMXBean() ...

Read More »

Number of current threads

With this example we are going to demonstrate how to get the number of current threads in a JVM. We are using the ThreadMXBean that is the management interface for the thread system of the Java virtual machine. In short, to get the number of current threads you should: Get the managed bean for the thread system of the Java ...

Read More »

Get JVM up time

This is an example of how to get the JVM up time. We are using the We are using the RuntimeMXBean, that is the management interface for the runtime system of the Java virtual machine. Getting the JVM up time implies that you should: Get the JVM’s thread system bean, that is the RuntimeMXBean, using the getRuntimeMXBean() API method of ...

Read More »