Author: jfrederic.clere(a)jboss.com
Date: 2007-10-03 03:28:01 -0400 (Wed, 03 Oct 2007)
New Revision: 1078
Modified:
trunk/sight/examples/org/jboss/sight/Load.java
Log:
Add println to make output readable.
Modified: trunk/sight/examples/org/jboss/sight/Load.java
===================================================================
--- trunk/sight/examples/org/jboss/sight/Load.java 2007-10-03 07:14:45 UTC (rev 1077)
+++ trunk/sight/examples/org/jboss/sight/Load.java 2007-10-03 07:28:01 UTC (rev 1078)
@@ -106,6 +106,7 @@
Process proc = Process.self();
System.out.println("Process ID : " + proc.Id);
+ System.out.println("************ PROCESS environment
************");
String[] env = proc.Environment;
if (env != null) {
System.out.println("Process ENV lenght : " + env.length);
@@ -127,6 +128,7 @@
Thread.sleep(1000);
+ System.out.println("************ PROCESS arguments ************");
String[] cmd = proc.Arguments;
System.out.println("Process CMD lenght : " + cmd.length);
for (int i = 0; i < cmd.length; i++) {
@@ -134,12 +136,14 @@
}
+ System.out.println("************ PROCESS loaded modules
************");
for (Module mod : proc.getModules()) {
System.out.println("Module: " + mod.Size + "\t\t" +
mod.Name);
}
mem.refresh();
+ System.out.println("************ SYSTEM ************");
System.out.println("Total RAM : " + mem.Physical);
System.out.println("Avail RAM : " + mem.AvailPhysical);
System.out.println("Total Swap : " + mem.Swap);
@@ -152,6 +156,7 @@
Memory mself = proc.getMemory();
+ System.out.println("************ PROCESS ************");
System.out.println("Total RAM : " + mself.Physical);
System.out.println("Avail RAM : " + mself.AvailPhysical);
System.out.println("Total Swap : " + mself.Swap);
Show replies by date