diff --git a/src/webapp/resources/admin/threaddump.jsp b/src/webapp/resources/admin/threaddump.jsp index 27ad0239a76..bc769fdf52b 100644 --- a/src/webapp/resources/admin/threaddump.jsp +++ b/src/webapp/resources/admin/threaddump.jsp @@ -1,74 +1,13 @@ <%@ page import="java.io.BufferedReader, java.io.FileReader"%> +<%@ page import="java.util.Date"%> <%@include file="header.jsp" %> <% File getinfo = new File("logs/jvm.log"); %>
-<% - Runtime rt = Runtime.getRuntime(); - Process p = rt.exec("./getinfo"); - p.waitFor(); -%> - - - - - -
-

Exit Value:

-
- <%= p.exitValue() %> -
-
- - - - - - - - - -
- - Current Time: <%= new Date().toString() %> -
- - Server Start At: <%= startTime %> -
-<% - BufferedReader in = new BufferedReader(new FileReader(getinfo)); - StringBuffer buf = new StringBuffer(); - String line; - while((line = in.readLine()) != null) { - if (line.startsWith("taking thread dump")) { - buf = new StringBuffer(); - } - buf.append(line).append("
"); - } -%> -
-Thread Dumps - - - - - - - - - -
- - [All Entries] -
- Last Entry - - <%= buf.toString() %> -
-

- Return to Admin Page +WORK IN PROGRESS: portable thread dump isn't implemented yet. +