Sourcecode in SysMgr/actions.js:
1: function status_action() {
2: res.data.title = getMessage("SysMgr.statusTitle", {serverTitle: root.getTitle()});
3: var status = new Object();
4: status.upSince = formatTimestamp(new Date(app.upSince.getTime()), "long");
5: status.activeThreads = app.activeThreads;
6: status.maxThreads = app.maxThreads;
7: status.freeThreads = app.freeThreads;
8: status.requests = app.requestCount;
9: status.errors = app.errorCount;
10: status.xmlrpc = app.xmlrpcCount;
11: status.cacheUsage = app.cacheusage;
12: status.sessions = app.countSessions();
13: status.totalMemory = Math.round(java.lang.Runtime.getRuntime().totalMemory() / 1024);
14: status.freeMemory = Math.round(java.lang.Runtime.getRuntime().freeMemory() / 1024);
15: status.usedMemory = status.totalMemory - status.freeMemory;
16: res.data.body = this.renderSkinAsString("status", status);
17: root.renderSkin("page");
18: return;
19: }
|