Skip to content

Commit

Permalink
fix jvm stats reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanlermitage committed Nov 25, 2023
1 parent 3271d31 commit 7f600b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/manon/util/basetest/AbstractIT.java
Expand Up @@ -314,11 +314,11 @@ private void logMemoryStats() {
long allocatedMemory = runtime.totalMemory();
long freeMemory = runtime.freeMemory();
long mb = 1024 * 1024;
log.info("Memory stats:\n - free memory: {}MB,\n - allocated memory: {}MB\n - max memory: {}MB\n - total free memory: {}MB",
log.info("Memory stats:\n - free memory: {}MB,\n - allocated memory: {}MB\n - max memory: {}MB\n - max free memory: {}MB",
freeMemory / mb,
allocatedMemory / mb,
maxMemory / mb,
(freeMemory + (maxMemory - allocatedMemory)) / mb);
(maxMemory - allocatedMemory) / mb);
}

//
Expand Down

0 comments on commit 7f600b1

Please sign in to comment.