Class MemoryHogServlet

  • All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class MemoryHogServlet
    extends org.apache.sling.api.servlets.SlingSafeMethodsServlet
    Allocates and frees 1 gigabyte of memory. Caution when enabling this. ;-)
    See Also:
    Serialized Form
    • Constructor Detail

      • MemoryHogServlet

        public MemoryHogServlet()
    • Method Detail

      • doGet

        protected void doGet​(org.apache.sling.api.SlingHttpServletRequest request,
                             org.apache.sling.api.SlingHttpServletResponse response)
                      throws javax.servlet.ServletException,
                             IOException
        Overrides:
        doGet in class org.apache.sling.api.servlets.SlingSafeMethodsServlet
        Throws:
        javax.servlet.ServletException
        IOException
      • deactivate

        protected void deactivate()