Machine
System.gc(); // Helps make the heap reported more reliable:
pageContext.setAttribute("jvmEnv", new JVMEnvironment());
ServerRecommender rec = (ServerRecommender) application.getAttribute(AbstractMyrrixServlet.RECOMMENDER_KEY);
pageContext.setAttribute("rec", rec);
boolean readOnly = (Boolean) application.getAttribute(AbstractMyrrixServlet.READ_ONLY_KEY);
String localInputDir = String.valueOf(application.getAttribute(AbstractMyrrixServlet.LOCAL_INPUT_DIR_KEY));
pageContext.setAttribute("localInputDir", localInputDir);
String localInputDirDisplay;
if (localInputDir.length() > 32) {
localInputDirDisplay = localInputDir.substring(0, 32) + "...";
} else {
localInputDirDisplay = localInputDir;
}
pageContext.setAttribute("localInputDirDisplay", localInputDirDisplay);
RunningAverage estimateError = (RunningAverage) application.getAttribute(PreferenceServlet.AVG_ESTIMATE_ERROR_KEY);
float avgEstimateError = estimateError == null ? 0.0f : (float) estimateError.getAverage();
if (Float.isNaN(avgEstimateError)) {
avgEstimateError = 0.0f;
}
pageContext.setAttribute("avgEstimateError", avgEstimateError);
pageContext.setAttribute("partition", application.getAttribute(AbstractMyrrixServlet.PARTITION_KEY));
ReloadingReference<List<?>> partitionRef =
(ReloadingReference<List<?>>) application.getAttribute(AbstractMyrrixServlet.ALL_PARTITIONS_REF_KEY);
int numPartitions = partitionRef == null ? 0 : partitionRef.get().size();
pageContext.setAttribute("numPartitions", numPartitions);
Host | ${jvmEnv.hostName} |
Cores | ${jvmEnv.numProcessors} |
Heap Used | ${jvmEnv.usedMemoryMB}MB (${jvmEnv.percentUsedMemory}%) |
Logs | View |
if (numPartitions > 1) {
Partition | #${partition} (${numPartitions} total) |
}
|
Recommender
if (rec.getBucket() != null || rec.getInstanceID() != null) {
Bucket | ${rec.bucket} |
Instance ID | ${rec.instanceID} |
}
Local Input Dir | ${localInputDirDisplay} |
Ready? | ${rec.ready} |
User Count | ${rec.generationManager.currentGeneration.numUsers} |
Item Count | ${rec.generationManager.currentGeneration.numItems} |
Avg. Estimate Error (beta) | ${avgEstimateError} |
|