Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 92017 invoked from network); 4 Nov 2009 11:18:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Nov 2009 11:18:54 -0000 Received: (qmail 19472 invoked by uid 500); 4 Nov 2009 11:18:54 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 19431 invoked by uid 500); 4 Nov 2009 11:18:53 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "JMeter Users List" Reply-To: "JMeter Users List" Delivered-To: mailing list jmeter-user@jakarta.apache.org Received: (qmail 19421 invoked by uid 99); 4 Nov 2009 11:18:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Nov 2009 11:18:52 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gokul007@gmail.com designates 209.85.216.171 as permitted sender) Received: from [209.85.216.171] (HELO mail-px0-f171.google.com) (209.85.216.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Nov 2009 11:18:42 +0000 Received: by pxi1 with SMTP id 1so5206663pxi.32 for ; Wed, 04 Nov 2009 03:18:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=yXLjVOj7x4LvaL57330SoR4RvGUQ9FgSBBma/0xCc3A=; b=FS3x1jHjqaAHSLJC363kX5iZkmKluHefz0r01kzWdOIB/597SuQbjJEhFSuQXdo8TE bTa0B95YwUhexJupyraMcpzqRudGG8UlSfmMhKZV/aXSe6jwUOcTXkwYN7CoANDx4y9d oSH44CvinDmXY01LSGfoL9DJdW6rf5ypQr6xU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=a7JB8wklDSqeQoSBqjN5pJgYwo20qOarALWr3+BjdoVFQYxzvEVhqzEgQksNMSmTuR My4TXMngUuh4BmbFyy9vZZTp7cdXJrhvhdpHm5lEaiAte6PuV/qiU5wSDcwumS4xf9tP Ppv86dtswVAvVtoxvE/7RzxhDRDk6cqeaL3fQ= MIME-Version: 1.0 Received: by 10.114.252.14 with SMTP id z14mr1823495wah.84.1257333501701; Wed, 04 Nov 2009 03:18:21 -0800 (PST) In-Reply-To: <9362e74e0910050748y27e8602bj7c0546cf096b883f@mail.gmail.com> References: <9362e74e0909160505r3df0c43aj8b1f7e0c8a8b32af@mail.gmail.com> <25aac9fc0909160622w2aed92dmdf1d5a54b9df5c85@mail.gmail.com> <9362e74e0909170143u40286b7ej305e4ca28df0b2ab@mail.gmail.com> <25aac9fc0909231826t7236b373s8ddf7ae6809b8e62@mail.gmail.com> <96e951380909250007v407170d4oef3d3044513353d1@mail.gmail.com> <9362e74e0910050609i1a79f0adp7954c0722b57d92c@mail.gmail.com> <29a3f080910050634w3aeed163s91b904025783d00f@mail.gmail.com> <9362e74e0910050748y27e8602bj7c0546cf096b883f@mail.gmail.com> Date: Wed, 4 Nov 2009 16:48:21 +0530 Message-ID: <9362e74e0911040318t74ed9652u1f81ee568b87b9e6@mail.gmail.com> Subject: Re: Integrating Monitoring stuff From: Gokulakannan Somasundaram To: JMeter Users List Content-Type: multipart/alternative; boundary=0016e687872abbaeb8047789c431 X-Virus-Checked: Checked by ClamAV on apache.org --0016e687872abbaeb8047789c431 Content-Type: text/plain; charset=ISO-8859-1 The update is that i was able to create a DTrace script and monitor method level timings. But then i had trouble using the Runtime.Exec of java to execute and get the output periodically. I found that there is a library called jDTrace and it comes with Solaris 11 build 30 or later. This provides an interface to DTrace from Java. So i used it in my code. DTrace makes use of a scripting language called which is very limited in its expressiveness. It doesn't have if conditions, for loops or string manipulation stuffs. So everytime the requirements are changed, i am creating a new DTrace script, using gawk( GNU version of awk ). So the prerequisistes for using this would be a) Solaris 11 build 30 or later b) gawk Now i have a java program which takes the pid and the methods to be monitored(along with class and package) and gives the following stats a) average time taken every 5 seconds b) Min and Max time taken every 5 seconds c) Frequency distribution of method call timings every 5 seconds. There are some probes in DTrace like the profile probes, which requires DTrace Kernel privilege to get fired. But the script which gets generated here doesn't require any extra privileges. It onyl requires you to start the monitoring stuff with the same user id, with which the process to monitor was started. Now the final part of the puzzle is to integrate it with JMeter. Will this be useful to the community and can i get some guidance on the integrating part? Thanks, Gokul. --0016e687872abbaeb8047789c431--