Skip to content

JVM monitoring tool using Jolokia, embedded tomcat, spring, angular1 and bootstrap.

License

Notifications You must be signed in to change notification settings

wwfdoink/jolokia-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jolokia-web

Jolokia Web interface.

  • Embed Tomcat 8.5
  • Spring 4.3
  • Angular 1.6
  • Bootstrap 3

Build

$ gradle build onejar

This will create the fatJar build/libs/jolokia-web-all.jar

Lib Usage example

import prj.jolokiaweb.JolokiaApp;
import prj.jolokiaweb.jolokia.AgentInfo;

JolokiaApp app = new JolokiaApp.Builder()
    .port(8080)                                // tomcat listening port, default: 8080
    .contextPath("jolokiaweb")                 // webapp contextPath, default is the root path
    .agentUrl("http://localhost:8778/jolokia") // connect to your already running jolokia-jvm-agent
    .agentAuth("user","password")              // remote agent credentials
    .permissions(
        AgentInfo.JolokiaPermission.NONE,      // NONE means dashboard only
        AgentInfo.JolokiaPermission.READ,      // Permission to read MBean values
        AgentInfo.JolokiaPermission.WRITE,     // Permission to change MBean values
        AgentInfo.JolokiaPermission.EXECUTE    // Permission to execute MBean operations
    ) // default is rwx
    .ssl()                                     // use the bundled self-signed cert
    .ssl("keyStorePath"                        // keystore file path
         "keyStorePassword",                   // keystore password
         "keyStoreAlias")                      // keystore alias
    .allowSelfSignedCert()                     // allow self-signed cert
    .requireAuth("username", "password")       // enable Basic-Auth
    .build();
app.start();
//app.startAndWait(); //blocking
...
app.stop();

Open your browser and navigate to http://yourhost:8080/

CLI Usage

$ java -jar jolokia-web-all.jar
  --port=8080
  --contextPath=jolokiaweb
  --permissions=rwxn
  --remoteAgentUrl=http://localhost:8778/jolokia
  --remoteAgentUsername=user
  --remoteAgentPassword=password
  --ssl
  --sslKeyStorePath
  --sslKeyStoreAlias
  --sslKeyStorePassword
  --allowSelfSignedCert
  --requireAuth=<username>,<password>

Open your browser and navigate to http://yourhost:8080/

Dashboard

dashboard

Managed-Beans

mbeans

Edit MBean attributes

attrib

Dealing with non-primitive types

vi

Execute MBean operations

ops

About

JVM monitoring tool using Jolokia, embedded tomcat, spring, angular1 and bootstrap.

Resources

License

Stars

Watchers

Forks

Packages

No packages published