Package com.netscape.cms.servlet.base
Class SystemInfoServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- com.netscape.cms.servlet.base.SystemInfoServlet
-
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class SystemInfoServlet extends javax.servlet.http.HttpServlet
Displays detailed information about java VM internals, including current JVM memory usage, and detailed information about each thread.Also allows user to trigger a new garbage collection
- Version:
- $Revision$, $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SystemInfoServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(javax.servlet.ServletConfig sc)
void
service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
service the request, returning HTML to the client.-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
-
-
-
-
Method Detail
-
init
public void init(javax.servlet.ServletConfig sc) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Servlet
- Overrides:
init
in classjavax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
-
service
public void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
service the request, returning HTML to the client. This method has different behaviour depending on the value of the 'op' HTTP parameter.- op = undefined - display a menu with links to the other functionality of this servlet
- op = gc - tell the JVM that we want to do a garbage collection and to run finalizers (@see java.lang.Runtime.getRuntime#gc() )
- op = general - display information about memory, and other JVM informatino
- op = thread - display details about each thread.
- Overrides:
service
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
- See Also:
HttpServlet.service(HttpServletRequest, HttpServletResponse)
-
-