mirror of https://github.com/apache/lucene.git
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:
parent
3c4deaa835
commit
2e67b64db8
|
@ -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");
|
||||
%>
|
||||
<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) {
|
||||
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>
|
||||
WORK IN PROGRESS: portable thread dump isn't implemented yet.
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue