docker-minecraft-server icon indicating copy to clipboard operation
docker-minecraft-server copied to clipboard

Research exposing JVM memory/cpu without JMX

Open itzg opened this issue 3 years ago • 3 comments

Enhancement Type

Improve an existing feature

Describe the enhancement

I seem to remember there was a Java agent could expose JMX metrics via HTTP. There might be mods/plugins that do this; however would be nice to have the option for vanilla.

itzg avatar Aug 14 '22 23:08 itzg

Making javaagent exposing it would be possible but I'm not sure if running an HTTP server along with Minecraft server would be smart idea.

CDFN avatar Aug 17 '22 10:08 CDFN

Agreed, I wouldn't want an HTTP server running there. What I meant is that I seem to remember one that ran in-process with a very simple REST API.

itzg avatar Aug 17 '22 12:08 itzg

Found it, this is what I remembered https://jolokia.org/. Specifically

https://jolokia.org/reference/html/agents.html#jvm-agent

itzg avatar Aug 17 '22 12:08 itzg

Probably best to use a plugin like https://spark.lucko.me/

itzg avatar Jun 21 '24 23:06 itzg