📄 status.jsp
字号:
<%@page language = "java" %><%@page import="org.jahia.bin.*"%><%@page import = "java.util.*" %><%@page import = "org.jahia.registries.*" %><%@page import = "org.jahia.services.cache.*" %><%@page import = "org.jahia.services.database.*" %><%@page import = "org.jahia.data.cache.*" %><% Long freeMemoryInBytes = (Long) request.getAttribute("freeMemoryInBytes"); long freeMemoryInKBytes = freeMemoryInBytes.longValue() >> 10; long freeMemoryInMBytes = freeMemoryInBytes.longValue() >> 20; Long totalMemoryInBytes = (Long) request.getAttribute("totalMemoryInBytes"); long totalMemoryInKBytes = totalMemoryInBytes.longValue() >> 10; long totalMemoryInMBytes = totalMemoryInBytes.longValue() >> 20; Integer outputCacheSize = (Integer) request.getAttribute("outputCacheSize"); Integer outputCacheMaxSize = (Integer) request.getAttribute("outputCacheMaxSize");%><%@include file="include_header.jsp"%><tr> <td align="right" class="text" colspan="2"><b>:: Server status ::</b> </td></tr></table><br><br><table cellpadding="2" cellspacing="0" border="0" width="530"><tr> <td colspan="2" width="530"> </td></tr> <form name="jahiaAdmin" action="<%=JahiaAdministration.composeActionURL(request,response,"stats","&sub=process")%>" method="post"><tr> <td width="100"> </td> <td width="430"> <table border="0"> <tr> <td nowrap> <font class="text">HTML cache size:</font><br> <%=outputCacheSize%> entries / <%=outputCacheMaxSize%> max <br> <br> <font class="text">Total JVM Memory :</font><br> <%=totalMemoryInMBytes%> MB (<%=totalMemoryInKBytes%> KB) <br> <br> <font class="text">Free Memory :</font><br> <%=freeMemoryInMBytes%> MB (<%=freeMemoryInKBytes%> KB) <br> <br> <% Enumeration cacheNameEnum = JahiaCacheFactory.getInstance().getNames(); while (cacheNameEnum.hasMoreElements()) { String curCacheName = (String) cacheNameEnum.nextElement(); Object objectCache = JahiaCacheFactory.getInstance().getCache(curCacheName); if (objectCache instanceof JahiaCache) { JahiaCache curCache = (JahiaCache) objectCache; %> <font class="text"><%=curCache.getCacheName()%> :</font><br> <font class="text"><%=curCache.getCachedesc()%></font><br> <%=curCache.size()%> entries / <%=curCache.getMaxCachedObjects()%> max <br> <br> <% } else if (objectCache instanceof JahiaSimpleCache) { JahiaSimpleCache curSimpleCache = (JahiaSimpleCache) objectCache; int cacheLimit = curSimpleCache.getMaxCachedObjects(); String cacheLimitStr; if (cacheLimit == -2) { cacheLimitStr = "unlimited"; } else { cacheLimitStr = Integer.toString(cacheLimit) + " max"; } %> <font class="text"><%=curSimpleCache.getCacheName()%> (simple) :</font><br> <font class="text"><%=curSimpleCache.getCachedesc()%></font><br> <%=curSimpleCache.size()%> entries / <%=cacheLimitStr%> <br> <br> <% } } JahiaDBPoolService dbPoolService = ServicesRegistry.getInstance().getDBPoolService(); if (dbPoolService != null) { %> <font class="text">Database connection pool :</font><br> <%= dbPoolService.getTotalConnections() %> total connections <br> <%= dbPoolService.getNbFreeConnections() %> available connections <br> <%= dbPoolService.getBusyConnections() %> busy connections <br> Minimum size of pool = <%= dbPoolService.getMinConnections() %> <br> Maximum size of pool = <%= dbPoolService.getMaxConnections() %> <% } %> <br> <br> </td> </tr> <tr> <td align="right"> <br> <!-- <%if(!isLynx){%> <a href="javascript:document.jahiaAdmin.submit();" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('save','','<%=URL%>images/buttons/save_change_on.gif',1)"><img name="save" src="<%=URL%>images/buttons/save_change_off.gif" width="114" height="17" border="0"></a> <%}else{%> <br> <input type="submit" name="submit" value="Save changes >>"> <%}%> --> </td> </tr> <tr> <td> <br><br> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td nowrap width="145" valign="top"><font class="text"><b>Other operations: </b></font></td> <td valign="top"> <font class="text"> <%if(!isLynx){%><li> <%}%><a href="<%=JahiaAdministration.composeActionURL(request,response,"displaymenu","")%>">Back to menu</a><br> </font> </td> </tr> </table> </td> </tr> </table> </td></tr> </form><tr> <td colspan="2" align="right"> <br> <br> <font class="text2"><%=jahiaDisplayMessage%> </font> </td></tr><tr> <td colspan="2"> </td></tr></table><%@include file="include_footer.jsp"%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -