opendap/dtswar/src/main/java/opendap/dts/DTSServlet.java
public void doGetSystemProps(ReqState rs)
            throws Exception
    {
        rs.getResponse().setHeader("XDODS-Server", getServerVersion());
        rs.getResponse().setContentType("text/html");
        rs.getResponse().setHeader("Content-Description", "dods-status");

        PrintWriter pw = new PrintWriter(new OutputStreamWriter(rs.getResponse().getOutputStream(), Util.UTF8));
        pw.println("<html>");
        pw.println("<title>System Properties</title>");
        pw.println("<hr>");
        pw.println("<body><h2>System Properties</h2>");
        pw.println("<h3>Date: " + new Date() + "</h3>");

        Properties sysp = System.getProperties();
        Enumeration e = sysp.propertyNames();

        pw.println("<ul>");
        while(e.hasMoreElements()) {
            String name = (String) e.nextElement();

            String value = System.getProperty(name);

            pw.println("<li>" + name + ": " + value + "</li>");
        }
        pw.println("</ul>");

        pw.println("<h3>Runtime Info:</h3>");

        Runtime rt = Runtime.getRuntime();
        pw.println("JVM Max Memory:   " + (rt.maxMemory() / 1024) / 1000. + " MB (JVM Maximum Allowable Heap)<br>");
        pw.println("JVM Total Memory: " + (rt.totalMemory() / 1024) / 1000. + " MB (JVM Heap size)<br>");
        pw.println("JVM Free Memory:  " + (rt.freeMemory() / 1024) / 1000. + " MB (Unused part of heap)<br>");
        pw.println("JVM Used Memory:  " + ((rt.totalMemory() - rt.freeMemory()) / 1024) / 1000. + " MB (Currently active memory)<br>");

        pw.println("<hr>");
        pw.println("</body>");
        pw.println("</html>");
        pw.flush();
        rs.getResponse().setStatus(HttpServletResponse.SC_OK);

    }
public void doGetSystemProps(ReqState rs)
            throws Exception
    {
        rs.getResponse().setHeader("XDODS-Server", getServerVersion());
        rs.getResponse().setContentType("text/html");
        rs.getResponse().setHeader("Content-Description", "dods-status");

        PrintWriter pw = new PrintWriter(new OutputStreamWriter(rs.getResponse().getOutputStream(), Util.UTF8));
        pw.println("<html>");
        pw.println("<title>System Properties</title>");
        pw.println("<hr>");
        pw.println("<body><h2>System Properties</h2>");
        pw.println("<h3>Date: " + new Date() + "</h3>");

        Properties sysp = System.getProperties();
        Enumeration e = sysp.propertyNames();

        pw.println("<ul>");
        while(e.hasMoreElements()) {
            String name = (String) e.nextElement();

            String value = System.getProperty(name);

            pw.println("<li>" + name + ": " + value + "</li>");
        }
        pw.println("</ul>");

        pw.println("<h3>Runtime Info:</h3>");

        Runtime rt = Runtime.getRuntime();
        pw.println("JVM Max Memory:   " + (rt.maxMemory() / 1024) / 1000. + " MB (JVM Maximum Allowable Heap)<br>");
        pw.println("JVM Total Memory: " + (rt.totalMemory() / 1024) / 1000. + " MB (JVM Heap size)<br>");
        pw.println("JVM Free Memory:  " + (rt.freeMemory() / 1024) / 1000. + " MB (Unused part of heap)<br>");
        pw.println("JVM Used Memory:  " + ((rt.totalMemory() - rt.freeMemory()) / 1024) / 1000. + " MB (Currently active memory)<br>");

        pw.println("<hr>");
        pw.println("</body>");
        pw.println("</html>");
        pw.flush();
        rs.getResponse().setStatus(HttpServletResponse.SC_OK);

    }
public void doGetSystemProps ( ReqState rs ) throws Exception { rs . getResponse ( ) . setHeader ( "XDODS-Server" , getServerVersion ( ) ) ; rs . getResponse ( ) . setContentType ( "text/html" ) ; rs . getResponse ( ) . setHeader ( "Content-Description" , "dods-status" ) ; PrintWriter pw = new PrintWriter ( new OutputStreamWriter ( rs . getResponse ( ) . getOutputStream ( ) , Util . UTF8 ) ) ; pw . println ( "<html>" ) ; pw . println ( "<title>System Properties</title>" ) ; pw . println ( "<hr>" ) ; pw . println ( "<body><h2>System Properties</h2>" ) ; pw . println ( "<h3>Date: " + new Date ( ) + "</h3>" ) ; Properties sysp = System . getProperties ( ) ; Enumeration e = sysp . propertyNames ( ) ; pw . println ( "<ul>" ) ; while ( e . hasMoreElements ( ) ) { String name = ( String ) e . nextElement ( ) ; String value = System . getProperty ( name ) ; pw . println ( "<li>" + name + ": " + value + "</li>" ) ; } pw . println ( "</ul>" ) ; pw . println ( "<h3>Runtime Info:</h3>" ) ; Runtime rt = Runtime . getRuntime ( ) ; pw . println ( "JVM Max Memory:   " + ( rt . maxMemory ( ) / 1024 ) / 1000. + " MB (JVM Maximum Allowable Heap)<br>" ) ; pw . println ( "JVM Total Memory: " + ( rt . totalMemory ( ) / 1024 ) / 1000. + " MB (JVM Heap size)<br>" ) ; pw . println ( "JVM Free Memory:  " + ( rt . freeMemory ( ) / 1024 ) / 1000. + " MB (Unused part of heap)<br>" ) ; pw . println ( "JVM Used Memory:  " + ( ( rt . totalMemory ( ) - rt . freeMemory ( ) ) / 1024 ) / 1000. + " MB (Currently active memory)<br>" ) ; pw . println ( "<hr>" ) ; pw . println ( "</body>" ) ; pw . println ( "</html>" ) ; pw . flush ( ) ; rs . getResponse ( ) . setStatus ( HttpServletResponse . SC_OK ) ; }
Handler for OPeNDAP status requests; not publically available,
used only for debugging

@param rs The client's <code> ReqState </code>
@see GetHTMLInterfaceHandler
Handler for OPeNDAP status requests ; not publically available used only for debugging