diff options
| author | Michael Peter Christen <mc@yacy.net> | 2020-11-22 23:02:49 +0100 |
|---|---|---|
| committer | Michael Peter Christen <mc@yacy.net> | 2020-11-22 23:02:49 +0100 |
| commit | d7b2d82faadb0344afb8ba6afb388d8bb7566870 (patch) | |
| tree | 8e8737e965a2282edfb81e3e8cbae99560df2926 | |
| parent | 3431f91db982dc29ee0979d783adefa583d2684b (diff) | |
showing MB instead of KB in PerformanceMemory
| -rw-r--r-- | htroot/PerformanceMemory_p.html | 18 | ||||
| -rw-r--r-- | htroot/PerformanceMemory_p.java | 18 |
2 files changed, 18 insertions, 18 deletions
diff --git a/htroot/PerformanceMemory_p.html b/htroot/PerformanceMemory_p.html index d6e603ef8..e27c1bb6a 100644 --- a/htroot/PerformanceMemory_p.html +++ b/htroot/PerformanceMemory_p.html @@ -61,25 +61,25 @@ </tr>
<tr class="TableCellLight">
<th scope="row" class="TableCellDark" style="text-align:left;">Total</th>
- <td style="text-align:right;">#[memoryTotalAfterStartup]# KByte</td>
- <td style="text-align:right;">#[memoryTotalAfterInitBGC]# KByte</td>
- <td style="text-align:right;">#[memoryTotalAfterInitAGC]# KByte</td>
+ <td style="text-align:right;">#[memoryTotalAfterStartup]# MByte</td>
+ <td style="text-align:right;">#[memoryTotalAfterInitBGC]# MByte</td>
+ <td style="text-align:right;">#[memoryTotalAfterInitAGC]# MByte</td>
<td style="text-align:right;">#[memoryTotalNow]# MByte</td>
<td style="text-align:left;">total memory taken from the OS</td>
</tr>
<tr class="TableCellLight">
<th scope="row" class="TableCellDark" style="text-align:left;">Free</th>
- <td style="text-align:right;">#[memoryFreeAfterStartup]# KByte</td>
- <td style="text-align:right;">#[memoryFreeAfterInitBGC]# KByte</td>
- <td style="text-align:right;">#[memoryFreeAfterInitAGC]# KByte</td>
+ <td style="text-align:right;">#[memoryFreeAfterStartup]# MByte</td>
+ <td style="text-align:right;">#[memoryFreeAfterInitBGC]# MByte</td>
+ <td style="text-align:right;">#[memoryFreeAfterInitAGC]# MByte</td>
<td style="text-align:right;">#[memoryFreeNow]# MByte</td>
<td style="text-align:left;">free memory in the JVM within total amount</td>
</tr>
<tr class="TableCellLight">
<th scope="row" class="TableCellDark" style="text-align:left;">Used</th>
- <td style="text-align:right;">#[memoryUsedAfterStartup]# KByte</td>
- <td style="text-align:right;">#[memoryUsedAfterInitBGC]# KByte</td>
- <td style="text-align:right;">#[memoryUsedAfterInitAGC]# KByte</td>
+ <td style="text-align:right;">#[memoryUsedAfterStartup]# MByte</td>
+ <td style="text-align:right;">#[memoryUsedAfterInitBGC]# MByte</td>
+ <td style="text-align:right;">#[memoryUsedAfterInitAGC]# MByte</td>
<td style="text-align:right;">#[memoryUsedNow]# MByte</td>
<td style="text-align:left;">used memory in the JVM within total amount</td>
</tr>
diff --git a/htroot/PerformanceMemory_p.java b/htroot/PerformanceMemory_p.java index 3f9dc6b09..b5619ecab 100644 --- a/htroot/PerformanceMemory_p.java +++ b/htroot/PerformanceMemory_p.java @@ -90,17 +90,17 @@ public class PerformanceMemory_p { prop.putNum("memoryAvailAfterInitBGC", (MemoryControl.maxMemory() - memoryTotalAfterInitBGC + memoryFreeAfterInitBGC) / MB);
prop.putNum("memoryAvailAfterInitAGC", (MemoryControl.maxMemory() - memoryTotalAfterInitAGC + memoryFreeAfterInitAGC) / MB);
prop.putNum("memoryAvailNow", MemoryControl.available() / MB);
- prop.putNum("memoryTotalAfterStartup", memoryTotalAfterStartup / KB);
- prop.putNum("memoryTotalAfterInitBGC", memoryTotalAfterInitBGC / KB);
- prop.putNum("memoryTotalAfterInitAGC", memoryTotalAfterInitAGC / KB);
+ prop.putNum("memoryTotalAfterStartup", memoryTotalAfterStartup / MB);
+ prop.putNum("memoryTotalAfterInitBGC", memoryTotalAfterInitBGC / MB);
+ prop.putNum("memoryTotalAfterInitAGC", memoryTotalAfterInitAGC / MB);
prop.putNum("memoryTotalNow", MemoryControl.total() / MB);
- prop.putNum("memoryFreeAfterStartup", memoryFreeAfterStartup / KB);
- prop.putNum("memoryFreeAfterInitBGC", memoryFreeAfterInitBGC / KB);
- prop.putNum("memoryFreeAfterInitAGC", memoryFreeAfterInitAGC / KB);
+ prop.putNum("memoryFreeAfterStartup", memoryFreeAfterStartup / MB);
+ prop.putNum("memoryFreeAfterInitBGC", memoryFreeAfterInitBGC / MB);
+ prop.putNum("memoryFreeAfterInitAGC", memoryFreeAfterInitAGC / MB);
prop.putNum("memoryFreeNow", MemoryControl.free() / MB);
- prop.putNum("memoryUsedAfterStartup", (memoryTotalAfterStartup - memoryFreeAfterStartup) / KB);
- prop.putNum("memoryUsedAfterInitBGC", (memoryTotalAfterInitBGC - memoryFreeAfterInitBGC) / KB);
- prop.putNum("memoryUsedAfterInitAGC", (memoryTotalAfterInitAGC - memoryFreeAfterInitAGC) / KB);
+ prop.putNum("memoryUsedAfterStartup", (memoryTotalAfterStartup - memoryFreeAfterStartup) / MB);
+ prop.putNum("memoryUsedAfterInitBGC", (memoryTotalAfterInitBGC - memoryFreeAfterInitBGC) / MB);
+ prop.putNum("memoryUsedAfterInitAGC", (memoryTotalAfterInitAGC - memoryFreeAfterInitAGC) / MB);
prop.putNum("memoryUsedNow", MemoryControl.used() / MB);
|
