From kato-dev-return-377-apmail-incubator-kato-dev-archive=incubator.apache.org@incubator.apache.org Sun Jul 10 17:48:23 2011 Return-Path: X-Original-To: apmail-incubator-kato-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-kato-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1178163BC for ; Sun, 10 Jul 2011 17:48:23 +0000 (UTC) Received: (qmail 37722 invoked by uid 500); 10 Jul 2011 17:48:23 -0000 Delivered-To: apmail-incubator-kato-dev-archive@incubator.apache.org Received: (qmail 37683 invoked by uid 500); 10 Jul 2011 17:48:22 -0000 Mailing-List: contact kato-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: kato-dev@incubator.apache.org Delivered-To: mailing list kato-dev@incubator.apache.org Received: (qmail 37653 invoked by uid 99); 10 Jul 2011 17:48:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Jul 2011 17:48:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Jul 2011 17:48:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id EB914433BA for ; Sun, 10 Jul 2011 17:47:59 +0000 (UTC) Date: Sun, 10 Jul 2011 17:47:59 +0000 (UTC) From: "Antonio Sanso (JIRA)" To: kato-dev@incubator.apache.org Message-ID: <1935098680.1430.1310320079961.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (KATO-14) Provide new threads dump writer in order to be compatible with common thread analyzers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Provide new threads dump writer in order to be compatible with common thread analyzers -------------------------------------------------------------------------------------- Key: KATO-14 URL: https://issues.apache.org/jira/browse/KATO-14 Project: Kato Issue Type: New Feature Components: API Reporter: Antonio Sanso At the moment Kato has an XMLDumpWriter that produces an xml file containing all the threads information. This is not compatible with most of the standard threads dump analyzers (e.g. TDA [0], samuray) that expect a file that has a format like: ""http-bio-8080"-exec-64" daemon prio=5 tid=0x0000000115817000 nid=0x118650000 waiting on condition [0x000000011864f000] java.lang.Thread.State: WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for <0x00000001075ba0b8> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1925) at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:358) at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:104) at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:32) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:637) This is the output produced from tools like jstack or doing kill -QUIT . I'll provide a patch containing a StackDumpWriter providing an output compatible with those threads analyzers. [0] http://www.jroller.com/dumpster/entry/tda_as_jconsole_plugin -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira