import mircoders.localizer.MirLocalizer;\r
\r
public class MirGlobal {\r
- static private MirPropertiesConfiguration configuration;\r
static private MirLocalizer localizer;\r
static private ProducerEngine producerEngine;\r
static private Abuse abuse;\r
return localizer;\r
}\r
\r
+ /**\r
+ * Returns a string that provides some global status information\r
+ */\r
public static String getStatus() {\r
StringBuffer result = new StringBuffer();\r
\r
- System.gc();\r
- result.append(Runtime.getRuntime().freeMemory()).append("/");\r
- result.append(Runtime.getRuntime().freeMemory()).append(" free memory | ");\r
+ result.append((Runtime.getRuntime().totalMemory()-Runtime.getRuntime().freeMemory())/(1024*1024));\r
+ result.append("M in use, ");\r
result.append(Thread.currentThread().activeCount()).append(" active threads");\r
\r
return result.toString();\r