From 2e67b64db862e005e1d7679da524484be566e85d Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Thu, 23 Feb 2006 21:19:23 +0000 Subject: [PATCH] remove non-portable threaddump code git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@380227 13f79535-47bb-0310-9956-ffa450edef68 --- src/webapp/resources/admin/threaddump.jsp | 67 +---------------------- 1 file changed, 3 insertions(+), 64 deletions(-) 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. +