目录

jmx-cnb

The Cloud Foundry JMX Buildpack is a Cloud Native Buildpack V3 that enables the JMX in JVM applications.

Behavior

This buildpack will participate if all of the following conditions are met

  • $BP_JMX is set

The buildpack will do the following:

  • Contribute JMX configuration to $JAVA_OPTS

Configuration

Environment Variable Description
$BP_JMX Whether to contribute JMX support
$BPL_JMX_PORT What port the JMX connector will listen on. Defaults to 5000.

Creating SSH Tunnel

After starting an application with JMX enabled, an SSH tunnel must be created to the container. To create that SSH container, execute the following command:

$ cf ssh -N -T -L <LOCAL_PORT>:localhost:<REMOTE_PORT> <APPLICATION_NAME>

The REMOTE_PORT should match the port configuration for the application (5000 by default). The LOCAL_PORT must match the REMOTE_PORT.

Once the SSH tunnel has been created, your JConsole should connect to localhost:<LOCAL_PORT> for JMX access.

JConsole Configuration

License

This buildpack is released under version 2.0 of the Apache License.

关于
514.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号