Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable JMX for "DEV_MODE" for eap-images #150

Open
tsmaeder opened this issue May 11, 2016 · 4 comments
Open

Enable JMX for "DEV_MODE" for eap-images #150

tsmaeder opened this issue May 11, 2016 · 4 comments

Comments

@tsmaeder
Copy link

The managment functionalities are bound to 127.0.0.1 only in OpenShift-EAP (see https://access.redhat.com/documentation/en/openshift-enterprise/3.0/using-images/chapter-5-xpaas-middleware-images#comparing-the-jboss-eap-xpaas-image-to-the-regular-release-of-jboss-eap). Since standard remote jmx does not work inside Openshift (random port needs to be forwarded), this effectively prevents developers from using tools like JConsole, JVisualVM, etc.

I propose to enable jmx vie jboss remoting in all eap/wildfly images provided. It should be possible to set up the necessary usernames/passwords via environment variables so tooling can connect automatically.

@rcernich
Copy link
Contributor

You should be able to see any JMX details directly through the OpenShift console. Go to the pod page and click on the "Connect" button.

@tsmaeder
Copy link
Author

tsmaeder commented May 12, 2016

@i am aware of that, what I'm trying to do is to connect existing tooling like JVisualVM to the EAP inside Openshift. Also, I am trying to improve the debugging experience: https://issues.jboss.org/browse/JBIDE-21857

@propyless
Copy link

@rcernich can one have OpenShift console show the link to the JMX console when using a custom image? if yes, how to activate that?

@rcernich
Copy link
Contributor

You need to have an exposed port on the pod that's named "jolokia" which means you need to configure the jolokia agent and it should use the k8s cert for authentication. You can see how jolokia is configured in our images here, where the only environment variable set is AB_JOLOKIA_AUTH_OPENSHIFT=true. Here's the entry point. HTH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants