Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9F82BDDC7 for ; Wed, 19 Sep 2012 18:25:47 +0000 (UTC) Received: (qmail 25988 invoked by uid 500); 19 Sep 2012 18:25:44 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 25945 invoked by uid 500); 19 Sep 2012 18:25:44 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 25934 invoked by uid 99); 19 Sep 2012 18:25:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2012 18:25:44 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of pid@pidster.com designates 209.85.219.45 as permitted sender) Received: from [209.85.219.45] (HELO mail-oa0-f45.google.com) (209.85.219.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2012 18:25:37 +0000 Received: by oagn12 with SMTP id n12so1737341oag.18 for ; Wed, 19 Sep 2012 11:25:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pidster.com; s=google; h=references:from:in-reply-to:mime-version:date:message-id:subject:to :content-type:content-transfer-encoding; bh=QYIJLAkTTAc+Z5tGnQEhOgdA/UGTW0M0lxrT1iorW0I=; b=TKHRKRwmZ+ltoPQGUKZZWwW0LaqKOWBMeZ6DT/h/1O7Q22VJRUMNWWmvQvFHAheXyw VzsbHKOODIDEaZUeXOd38SoACgrg6MDGXRhc+7i4gq/+kIaslo+LIBrgLbRWPbqCbBwT u+UpzCDKzz+5mG7KD6r+ga4g7tl6EMcetngfM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=references:from:in-reply-to:mime-version:date:message-id:subject:to :content-type:content-transfer-encoding:x-gm-message-state; bh=QYIJLAkTTAc+Z5tGnQEhOgdA/UGTW0M0lxrT1iorW0I=; b=fUhK3AbsLOHibF02vjmr/iiR4eg/7L+YS8nqE5pIecP+WmK+9B0cR9obdz+pmW7ZJa oS77lD/FCUprtGDcCxrpnliVCAyIl8NQHB+LYM/j7JBxm6FReVigO8eKOL8ybEryTJSe HDUGuOuCqj/f5OVV33SQP7gyXpRlFj4pi2+6rc4hCWZfwRE9xOzWNk4C31ppYcIFP/tY CCY29dpRIrECQ3mBEJSZ1YK+YoiOCciYnN5X78u1LMHJhOwr1+KuVcvrJ0er7LfDEoPr yZyNawO/kd4pfau6Ok/xVcqIc/w6vDbwBhJtqyPR3lVUlnRYqYc7lxjtMYe6vspZXkdE 1ZnQ== Received: by 10.60.172.199 with SMTP id be7mr3541431oec.93.1348079117001; Wed, 19 Sep 2012 11:25:17 -0700 (PDT) References: <15936746.32000.1347912340510.JavaMail.mobile-sync@veza4> From: "Pid *" In-Reply-To: <15936746.32000.1347912340510.JavaMail.mobile-sync@veza4> Mime-Version: 1.0 (1.0) Date: Wed, 19 Sep 2012 19:25:18 +0100 Message-ID: <2950584534056023709@unknownmsgid> Subject: Re: Profiling tomcat 7 on ubuntu with java profiler To: Tomcat Users List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQmiTgPiJ+eCZK1+ZeQ34S+oabnItf8BdlfQymcRQeLQXADz09bnQr0JnlqWpjAKBMU2hLVz On 17 Sep 2012, at 13:55, Ragini wrote: > Hi experts, > > I profile tomcat with a java profiler. I expect that a Java Profiler is the best way to do that. > The profiler runs java agent and > profiles the tomcat server. So you said. That's awesome dude. > So I have created setenv.sh and put java > options to it. so far it is working fine. I start the server, then I run > the web application in the browser and then I stop the server by > shutdown.sh. After I execute shutdown.sh, my profiler dumps the output. > This output shows all the executed java methods in xml format. It > actually shows the sequence in which they were executed. Pl find the > attached file to see how the profiler generates the output. This was > generated by running just one test.jsp page which contains the method > "addnum". > > In the output, I have noticed that the main class which is responsible > to execute jsp page is "Lorg/apache/jsp". Uhhh, which profiler are you using? That doesn't make sense. > But I am not sure if there are also other classes which are responsible f= or this. ... > I am curious to know this. In my profiler I have an option by which I can= exclude classes > which I dont want to profile. > > I am basically interested in profiling all user defined methods of jsp > pages and of java classes. (I want to profile a web application which > has java classes and jsp pages as well). Good plan. > I would not like to profile the classes of apache which are dependent on = time (like threads are time dependent). Uhh, if the committers come up with some Tomcat code that isn't depend on time I extend an immediate offer of unlimited beer. (Before you start, I'll win this one.) > The reason for this is, it gives me different profiles for > exactly two same runs. Which I strictly don=E2=80=99t want. Sun spots? > so I would like to have your opinions on, > > 1) Are the methods of org/apache/jsp class and time dependent ? Is there > any chance that I get different profiles for exactly two same runs ? Unless your Tomcat server is in a Faraday cage for a start, yes. p > (I don=E2=80=99t have any option to include the class which needs to be p= rofiled > in my profiler. So if I want to test the above I have to specify all > other classes except org/apache/jsp in my exclusion list which is very > time consuming. If I am sure that methods of apache/jsp/* classes are > not time dependent, I can do that. > > I need your help regarding this. > > Thanks. > > Richa > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org