This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-J-Djavax.net.ssl.keyStore=<Client-KeyStore-Path> | |
-J-Djavax.net.ssl.keyStorePassword=<storepass of KeyStore(Client)> | |
-J-Djavax.net.ssl.trustStore=<Client-TrustStore-Path> | |
-J-Djavax.net.ssl.trustStorePassword=<storepass of TrustStore(Client)> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jconsole -J-Djavax.net.ssl.keyStore="B:\JMX Client\Security\clientkeystore" | |
-J-Djavax.net.ssl.keyStorePassword=clientpass | |
-J-Djavax.net.ssl.trustStore="B:\JMX Client\Security\clienttruststore" | |
-J-Djavax.net.ssl.trustStorePassword=clienttrustpass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.cleantutorials.jconsole.thread; | |
import java.util.Set; | |
/** | |
* Creates multiple threads and starts them for demonstrating the state of the | |
* thread. If you plan to run the example, please manually kill the process as | |
* there is no graceful exit in the program. | |
*/ | |
public class ThreadState { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread Name:TIMED_WAITING Example | |
Thread State:TIMED_WAITING | |
java.lang.Thread.sleep(Native Method) | |
com.cleantutorials.jconsole.thread.TimedWaitingThread.run(ThreadState.java:97) | |
Thread Name:Attach Listener | |
Thread State:RUNNABLE | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.cleantutorials.jconsole.cpu; | |
import java.io.BufferedWriter; | |
import java.io.File; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.util.Random; | |
/** | |
* A class to demonstrate the CPU usage in the system space and the user space |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.cleantutorials.jconsole.mbeans; | |
import java.lang.management.ManagementFactory; | |
import javax.management.MBeanServer; | |
import javax.management.ObjectName; | |
public class Main { | |
public static void main(String[] args) throws Exception { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.cleantutorials.jconsole.mbeans; | |
import java.util.LinkedList; | |
import java.util.Queue; | |
public class ToDo implements ToDoMBean { | |
Queue<String> taskQueue = new LinkedList<String>(); | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.cleantutorials.jconsole.mbeans; | |
public interface ToDoMBean { | |
public void storeTask(String taskName); | |
public String dequeueTask(); | |
public int getTasksLeft(); | |
OlderNewer