Package com.netscape.cms.servlet.base
Class SystemInfoServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.netscape.cms.servlet.base.SystemInfoServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
public class SystemInfoServlet
extends jakarta.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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jakarta.servlet.ServletConfig
protected jakarta.servlet.ServletContext
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
servletConfig
protected jakarta.servlet.ServletConfig servletConfig -
servletContext
protected jakarta.servlet.ServletContext servletContext
-
-
Constructor Details
-
SystemInfoServlet
public SystemInfoServlet()
-
-
Method Details
-
init
public void init(jakarta.servlet.ServletConfig sc) throws jakarta.servlet.ServletException - Specified by:
init
in interfacejakarta.servlet.Servlet
- Overrides:
init
in classjakarta.servlet.http.HttpServlet
- Throws:
jakarta.servlet.ServletException
-
getCMSEngine
-
service
public void service(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, 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 classjakarta.servlet.http.HttpServlet
- Throws:
jakarta.servlet.ServletException
IOException
- See Also:
-