mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-16 09:11:02 +00:00
Adding information about java.io.tmpdir
This commit is contained in:
1 parent
b28e8efe32
commit
bd3999943b
2 files changed
+12
No files matched your search
+5
@@ -1,10 +1,12 @@
|
||||
package com.sap.sailing.monitoring.sysinfo;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
import java.io.FileReader;
|
||||
import java.io.IOException;
|
||||
import java.lang.management.ManagementFactory;
|
||||
import java.lang.management.OperatingSystemMXBean;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -242,6 +244,9 @@ public class SystemInformationImpl implements SystemInformation {
|
||||
result.append(getTotalZombieProcesses()).append(" (total processes zombie)").append("\n");
|
||||
result.append(getTotalProcesses()).append(" (total)").append("\n");
|
||||
|
||||
result.append("Contents of TMP directory (java.io.tmpdir)").append("\n");
|
||||
result.append(Arrays.toString(new File(System.getProperty("java.io.tmpdir")).listFiles()));
|
||||
|
||||
result.append("\nMemory:\n");
|
||||
result.append(getFreeMemoryGlobal()/1000 + "kb (free, not cached, not inactive)\n");
|
||||
result.append(getFreeMemoryJVM()/1000 + "kb (free JVM)\n");
|
||||
|
||||
Reference in new issue
Block a user