Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 84810 invoked from network); 9 Apr 2006 02:42:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Apr 2006 02:42:18 -0000 Received: (qmail 93181 invoked by uid 500); 9 Apr 2006 02:42:17 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 93135 invoked by uid 500); 9 Apr 2006 02:42:16 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 93123 invoked by uid 99); 9 Apr 2006 02:42:16 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Apr 2006 19:42:16 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [209.73.178.213] (HELO web60725.mail.yahoo.com) (209.73.178.213) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 08 Apr 2006 19:42:15 -0700 Received: (qmail 32692 invoked by uid 60001); 9 Apr 2006 02:41:54 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=obNLzVmHbdC4eFrVWY9r9cAZ4xDc7K31C8HG6VXiJaJs4ye6pYydyAZNXm3n4lAvvSDgN1cgP06QUQutvqaKC8gkKFhuRWhuct33UFo79tEQjz29AQmRXMNIjHLjQr9kG52nwFoeOTLHh2RWRVAl7FIN4AgyNuQQ4pTLsCECP+Q= ; Message-ID: <20060409024154.32690.qmail@web60725.mail.yahoo.com> Received: from [67.173.89.3] by web60725.mail.yahoo.com via HTTP; Sat, 08 Apr 2006 19:41:54 PDT Date: Sat, 8 Apr 2006 19:41:54 -0700 (PDT) From: Ole Ersoy Subject: Profiling DirServer with TPTP To: Apache Directory Developers List In-Reply-To: <44327D4D.9030008@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hey Guys, I tried playing with TPTP a little. Amazing tool. It produces UML2 class and thread interaction diagrams that highlight in red application hot spots. I hit some rough spots just going by the TPTP tutorial, and I'll mention those + solution further down in the email. So now I'm trying to think what the right strategy is for testing the DS? So suppose I created a JNDI client that created say 10 threads that all hammered DS with lookup requests, should that produce the concurrency issue? Now when I did the TPTP tutorial I profiled the Product example...So I profiled a Java Application. With the approach above I would be profiling a server using a client. That's a little trickier. I'd most likely have to write a Probe (Which the Eclipse help is very good about explaining under "Monitoring and Analyzing Performance > Collecting Runtime Data With User Defined Probes") and then use it to collect data on DS while the client is running. The simpler way though would be to run DS as a application and just collect performance data that way. This would require me to check out the DS code, and then figure out how to run methods on it directly from a client sitting in the same project directory. I don't think I would want to go through JNDI, since that means I'll be tunneling through a lot of JNDI method calls...assuming there's a more direct way of achieving the usage pattern...? In that case how would I write that client so that I'm calling DS methods directly and which methods should be profiled first? OK - Here's some key notes from the TPTP experience. The tutorial: http://www.eclipse.org/articles/Article-TPTP-Profiling-Tool/tptpProfilingArticle.html is very helpful, however there's no mention of THIS: Here's the context: You right click on the Product class Profile As > Java Application This brings up the "Edit Launch and Configuration Properties" Here you have to do what he says, BUT you also have to go to the Environment tab and create the variable "PATH" which needs to be set to the bin directory of the Raserver... The Raserver is what collects data...you need to install it as part of the TPTP installation...very straight forward though. So to get the tutorial working all I did was Install TPTP via the update site Install the Raserver...unzipped and used the getting_started.html install instructions in the root install directory to configure and run... And now it works... If anyone has any questions or needs help with it I'll be glad to do more research. Cheers, - Ole __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com