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

[observability] Improve observability using MBeans #7

Open
vityaman opened this issue May 30, 2023 · 4 comments
Open

[observability] Improve observability using MBeans #7

vityaman opened this issue May 30, 2023 · 4 comments

Comments

@vityaman
Copy link
Member

No description provided.

@vityaman
Copy link
Member Author

vityaman commented May 31, 2023

Connect to docker container bash

sudo docker ps
sudo docker exec -it <container-id> sh

@vityaman
Copy link
Member Author

vityaman commented May 31, 2023

How to connect to wildfly inside a docker container:
https://dev.to/kgoedert/monitoring-wildfly-inside-docker-14c5

  1. Download the same wildfly as you have inside docker from https://www.wildfly.org/downloads/ to your desktop
  2. Go to wildfly directory and run bin/jconsole.sh
  3. Type service:jmx:remote+http://localhost:9990/, login admin, password admin

Also if you want to use VisualVM:

sudo apt-get install visualvm
visualvm --cp:a $WILDFLY_HOME/bin/client/jboss-client.jar

@vityaman vityaman reopened this May 31, 2023
@vityaman
Copy link
Member Author

Facts about MXBeans:

  • Can be a nested class
  • MXBean interface can't extend other interfaces
  • Name of implementation does not matter

vityaman added a commit that referenced this issue May 31, 2023
vityaman added a commit that referenced this issue May 31, 2023
#7 [observability] mbeans and other strange things
vityaman added a commit that referenced this issue Jun 1, 2023
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

1 participant