remove non-portable threaddump code

git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@380227 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2006-02-23 21:19:23 +00:00
parent 3c4deaa835
commit 2e67b64db8
1 changed files with 3 additions and 64 deletions

View File

@ -1,74 +1,13 @@
<%@ page import="java.io.BufferedReader, <%@ page import="java.io.BufferedReader,
java.io.FileReader"%> java.io.FileReader"%>
<%@ page import="java.util.Date"%>
<%@include file="header.jsp" %> <%@include file="header.jsp" %>
<% <%
File getinfo = new File("logs/jvm.log"); File getinfo = new File("logs/jvm.log");
%> %>
<br clear="all"> <br clear="all">
<%
Runtime rt = Runtime.getRuntime();
Process p = rt.exec("./getinfo");
p.waitFor();
%>
<table>
<tr>
<td>
<H3>Exit Value:</H3>
</td>
<td>
<%= p.exitValue() %>
</td>
</tr>
</table>
<br>
<table>
<tr>
<td>
</td>
<td>
Current Time: <%= new Date().toString() %>
</td>
</tr>
<tr>
<td>
</td>
<td>
Server Start At: <%= startTime %>
</td>
</tr>
</table>
<%
BufferedReader in = new BufferedReader(new FileReader(getinfo));
StringBuffer buf = new StringBuffer();
String line;
while((line = in.readLine()) != null) { WORK IN PROGRESS: portable thread dump isn't implemented yet.
if (line.startsWith("taking thread dump")) {
buf = new StringBuffer();
}
buf.append(line).append("<br>");
}
%>
<br>
Thread Dumps
<table>
<tr>
<td>
</td>
<td>
[<a href=get-file.jsp?file=logs/jvm.log>All Entries</a>]
</td>
</tr>
<tr>
<td>
Last Entry
</td>
<td>
<%= buf.toString() %>
</td>
</tr>
</table>
<br><br>
<a href=".">Return to Admin Page</a>
</body> </body>
</html> </html>