⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 status.jsp

📁 java 写的一个新闻发布系统
💻 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>::&nbsp;&nbsp;Server status&nbsp;&nbsp;::</b>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr></table><br><br><table cellpadding="2" cellspacing="0" border="0" width="530"><tr>    <td colspan="2" width="530">&nbsp;</td></tr>    <form name="jahiaAdmin" action="<%=JahiaAdministration.composeActionURL(request,response,"stats","&sub=process")%>" method="post"><tr>    <td width="100">&nbsp;</td>    <td width="430">        <table border="0">        <tr>            <td nowrap>                <font class="text">HTML cache size:</font><br>                <%=outputCacheSize%> entries / <%=outputCacheMaxSize%> max                <br>&nbsp;<br>                <font class="text">Total JVM Memory :</font><br>                <%=totalMemoryInMBytes%> MB (<%=totalMemoryInKBytes%> KB)                <br>&nbsp;<br>                <font class="text">Free Memory :</font><br>                <%=freeMemoryInMBytes%> MB (<%=freeMemoryInKBytes%> KB)                <br>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<br>            </td>        </tr>        <tr>            <td align="right">                &nbsp;<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{%>                    &nbsp;<br>                    <input type="submit" name="submit" value="Save changes >>">                <%}%>                -->            </td>        </tr>        <tr>            <td>                &nbsp;<br><br>                <table border="0" cellpadding="0" cellspacing="0">                <tr>                    <td nowrap width="145" valign="top"><font class="text"><b>Other operations:&nbsp;&nbsp;&nbsp;</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">        &nbsp;<br>&nbsp;<br>        <font class="text2"><%=jahiaDisplayMessage%>&nbsp;&nbsp;&nbsp;</font>    </td></tr><tr>    <td colspan="2">&nbsp;</td></tr></table><%@include file="include_footer.jsp"%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -