<html>
<head>
    <style>
        body {
            font-family:Verdana;
            font-size:12px;
            line-height:14px;
        }
    </style>
</head>
<body>
<h2>Profiling Tool</h2>
<div style="max-width: 470px">
<p>
Collects statistics about thread dumps similar to <code>java -agentlib:hprof</code>.
Stack traces from runnable threads are then listed sorted by count.
</p>
<form method="post">
        
            <input type="button" class="submit" style="width: 80px"
                    onclick="javascript: var os = document.getElementById('options').style; os.display=(os.display=='none' ? '' : 'none');"
                    value="Options >"><br>
        
            <div id="options" style="display: none">
            <p>
            Sample interval (ms): <input type="text" name="interval" value="5"><br>
            To increase accuracy, use 1000 or higher when running for many hours.
            </p><p>
            Stack trace depth: <input type="text" name="depth" value="160"><br>
            The number of stack trace lines to analyze.
            </p><p>
            Ignore threads: 
<textarea cols=50 rows=4 name="ignoreThreadList">
java.lang.Object.wait,
java.lang.Thread.dumpThreads,
java.lang.Thread.getThreads,
java.lang.Thread.sleep,
java.lang.UNIXProcess.waitForProcessExit,
java.net.PlainSocketImpl.accept,
java.net.PlainSocketImpl.socketAccept,
java.net.SocketInputStream.socketRead,
java.net.SocketOutputStream.socketWrite,
sun.awt.windows.WToolkit.eventLoop,
sun.misc.Unsafe.park,
EDU.oswego,
java.lang.Object.$$YJP$$wait, 
java.lang.Thread.$$YJP$$sleep,
sun.misc.Unsafe.$$YJP$$park, 
java.net.PlainSocketImpl.$$YJP$$socketAccept, 
java.net.SocketInputStream.$$YJP$$socketRead,
java.net.PlainSocketImpl.$$YJP$$accept,
java.lang.Thread.$$YJP$$dumpThreads,
</textarea><br>
            Threads where the first line start with one of these prefixes are ignored.
            </p><p>
            Ignore lines:
<textarea cols=50 rows=2 name="ignoreList">
org.apache.commons,
org.apache.tika.parser.txt.Charset,
EDU.oswego,
</textarea><br>
            Lines that start one of these prefixes are not included in a stack trace.
            </p><p>
            Ignore packages:
<textarea cols=50 rows=2 name="ignorePackageList">
java,
sun,
com.sun.,
EDU,
org.apache.jsp.,
org.apache.commons.,
org.eclipse.jdt,
org.json.,
org.kxml2.,
com.apple.,
</textarea><br>
            These packages are ignored in the package summary.
            </p>
            </div>
            <br>
            <input type="hidden" name="action" value="start">
            <input type="submit" style="width: 100px" value="Start Collecting">
        </form>
        </div>
