mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-14 22:43:57 +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
@@ -274,6 +274,13 @@ if [[ "$@" == "install" ]] || [[ "$@" == "all" ]]; then
|
||||
mkdir $ACDIR/configuration
|
||||
fi
|
||||
|
||||
# seems that initial scripts not there
|
||||
if [ ! -f "$ACDIR/start" ]; then
|
||||
cp -v $PROJECT_HOME/java/target/start $ACDIR
|
||||
cp -v $PROJECT_HOME/java/target/http2udpmirror $ACDIR
|
||||
cp -v $PROJECT_HOME/java/target/configuration/logging.properties $ACDIR/configuration
|
||||
fi
|
||||
|
||||
cd $ACDIR
|
||||
|
||||
rm -rf $ACDIR/plugins/*.*
|
||||
|
||||
+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