diff options
Diffstat (limited to 'src/com/itmill/toolkit/automatedtests/util/StatusServlet.java')
-rw-r--r-- | src/com/itmill/toolkit/automatedtests/util/StatusServlet.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/itmill/toolkit/automatedtests/util/StatusServlet.java b/src/com/itmill/toolkit/automatedtests/util/StatusServlet.java index e13102ea73..9912b23d1b 100644 --- a/src/com/itmill/toolkit/automatedtests/util/StatusServlet.java +++ b/src/com/itmill/toolkit/automatedtests/util/StatusServlet.java @@ -55,11 +55,13 @@ public class StatusServlet extends HttpServlet { VERSION_BUILD = digits[2]; } + @Override public void init(javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException { super.init(servletConfig); } + @Override protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Writer w = response.getWriter(); @@ -72,8 +74,9 @@ public class StatusServlet extends HttpServlet { String p = ""; p += "<p>StatusServlet " + dfHuman.format(new Date()) + "</p>"; - for (int i = 0; i < 30; i++) + for (int i = 0; i < 30; i++) { System.gc(); + } long inUse = (Runtime.getRuntime().totalMemory() - Runtime.getRuntime() .freeMemory()); p += "<p>Memory:<br />\n<memused>" + inUse |