lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r380227 - /incubator/solr/trunk/src/webapp/resources/admin/threaddump.jsp
Date Thu, 23 Feb 2006 21:19:26 GMT
Author: yonik
Date: Thu Feb 23 13:19:23 2006
New Revision: 380227

URL: http://svn.apache.org/viewcvs?rev=380227&view=rev
Log:
remove non-portable threaddump code

Modified:
    incubator/solr/trunk/src/webapp/resources/admin/threaddump.jsp

Modified: incubator/solr/trunk/src/webapp/resources/admin/threaddump.jsp
URL: http://svn.apache.org/viewcvs/incubator/solr/trunk/src/webapp/resources/admin/threaddump.jsp?rev=380227&r1=380226&r2=380227&view=diff
==============================================================================
--- incubator/solr/trunk/src/webapp/resources/admin/threaddump.jsp (original)
+++ incubator/solr/trunk/src/webapp/resources/admin/threaddump.jsp Thu Feb 23 13:19:23 2006
@@ -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>



Mime
View raw message