Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.9.1
Description
At the start of the process, it will print the env info in the log.
There are three logs for the memory metrics.
// Get memory information. Runtime runtime = Runtime.getRuntime(); int mb = 1024 * 1024; put(l, "os.memory.free", runtime.freeMemory() / mb + "MB"); put(l, "os.memory.max", runtime.maxMemory() / mb + "MB"); put(l, "os.memory.total", runtime.totalMemory() / mb + "MB");
It's misleading for the user, use jvm as the prefix will be better.
Change to:
// Get memory information. Runtime runtime = Runtime.getRuntime(); int mb = 1024 * 1024; put(l, "jvm,.memory.free", runtime.freeMemory() / mb + "MB"); put(l, "jvm.memory.max", runtime.maxMemory() / mb + "MB"); put(l, "jvm.memory.total", runtime.totalMemory() / mb + "MB");
Attachments
Issue Links
- links to