Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
naturforskaren, docker login
https://stackoverflow.com/questions/51203969/how-to-monitor-java-heap-memory-usage-in-jboss-eap-production-server
docker exec -it naturalist bash
cd bin
./jboss-cli.sh -c
/core-service=platform-mbean/type=memory/:read-resource(recursive=true,proxies=true,include-runtime=true,include-defaults=true)
{
"outcome" => "success",
"result" => {
"heap-memory-usage" => {
"init" => 1073741824L,
"used" => 5041492256L,
"committed" => 5244977152L,
"max" => 12884901888L
},
"non-heap-memory-usage" => {
"init" => 7667712L,
"used" => 260591624L,
"committed" => 286879744L,
"max" => -1L
},
"object-name" => "java.lang:type=Memory",
"object-pending-finalization-count" => 0,
"verbose" => false
}
}
top-command:
https://linuxaria.com/howto/understanding-the-top-command-on-linux
@Inkimar

This comment has been minimized.

Copy link
Owner Author

@Inkimar Inkimar commented May 25, 2021

simple login to a docker container that is started already
-> docker exec -it apache_apache_1 bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment