double percentFree = ((maxMemory - usedMemory)/maxMemory)*100.0;
double percentUsed = 100 - percentFree;
field = form.addField();
field.setLabel(LocaleUtils.getLocalizedString("index.memory"));
field.setVariable("memory");
field.addValue(mbFormat.format(usedMemory) + " MB of " + mbFormat.format(maxMemory) + " MB (" +
percentFormat.format(percentUsed) + "%) used");
// Make sure that we are only counting based on bareJIDs and not fullJIDs
Collection<ClientSession> sessions = SessionManager.getInstance().getSessions();
Set<String> users = new HashSet<String>(sessions.size());