<%@ page import="java.io.*, java.util.*"%> <%@ page language="java" contentType="text/html;charset=utf-8"%> <%! private ThreadGroup getRootThreadGroup() { ThreadGroup group = Thread.currentThread().getThreadGroup(); ThreadGroup parent = null; while(true) { parent = group.getParent(); if(parent==null) return group; group = parent; } } private ThreadGroup findThreadGroup(ThreadGroup parent, String path) { if(path.startsWith("/")) { path = path.substring(1); } return null; } %> <% String threadGroupName = request.getParameter("ThreadGroupName"); ThreadGroup root = getRootThreadGroup(); if(threadGroupName==null) threadGroupName=root.getName(); ThreadGroup[] children = new ThreadGroup[root.activeGroupCount()]; root.enumerate(children, true); ThreadGroup current = null; for(int i=0;i CurrentThread List

쓰레드 전체 리스트 보기

Thread Group List (총: <%=children.length%>개) <% for(int i=0;i <% } %>
NoThreadGroup Name
root  <%=root%>
<%=(i+1)%>  <%=children[i].getName()%>

Thread List [<%=current.getName()%>] (총: <%=threads.length%>개) <% for(int i=0;i <% } %>
NoThread Name isAlive isDaemon isInterrupted activeCount
<%=(i+1)%>  <%=threads[i].getName()%>  <%=threads[i].isAlive()%>  <%=threads[i].isDaemon()%>  <%=threads[i].isInterrupted()%>  <%=threads[i].activeCount()%>