Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 41390 invoked from network); 26 Feb 2009 04:39:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2009 04:39:48 -0000 Received: (qmail 668 invoked by uid 500); 26 Feb 2009 04:39:36 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 643 invoked by uid 500); 26 Feb 2009 04:39:36 -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 632 invoked by uid 99); 26 Feb 2009 04:39:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Feb 2009 20:39:35 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.61.61.103] (HELO usea-naimss1.unisys.com) (192.61.61.103) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2009 04:39:24 +0000 Received: from usea-nagw2.na.uis.unisys.com ([129.224.72.18]) by usea-naimss1 with InterScan Message Security Suite; Wed, 25 Feb 2009 22:35:24 -0600 Received: from usea-nagw2.na.uis.unisys.com ([129.224.72.53]) by usea-nagw2.na.uis.unisys.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 25 Feb 2009 22:35:23 -0600 Received: from usea-nahubcas1.na.uis.unisys.com ([129.224.76.114]) by usea-nagw2.na.uis.unisys.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 25 Feb 2009 22:35:23 -0600 Received: from USEA-EXCH7.na.uis.unisys.com ([129.224.76.38]) by usea-nahubcas1.na.uis.unisys.com ([129.224.76.114]) with mapi; Wed, 25 Feb 2009 22:35:23 -0600 From: "Caldarale, Charles R" To: Tomcat Users List Date: Wed, 25 Feb 2009 22:35:21 -0600 Subject: RE: very slow class loading on initial JSP/servlet request afterrestart Thread-Topic: very slow class loading on initial JSP/servlet request afterrestart Thread-Index: AcmXnvk3yqqqX+tQSqO2Kflwy2B//gAJJ6vQ Message-ID: <0AAE5AB84B013E45A7B61CB66943C17215B859616A@USEA-EXCH7.na.uis.unisys.com> References: <499DEA05.4040501@ims.net> <499EB1D6.7020302@christopherschultz.net> <499ED728.4080909@ims.net> <0AAE5AB84B013E45A7B61CB66943C17215B8312EDE@USEA-EXCH7.na.uis.unisys.com> <499EE439.2060102@ims.net> <499EF07B.8050607@christopherschultz.net> <499EF641.30403@ims.net> <499EF835.2060907@cornell.edu> <499F38A8.3060503@christopherschultz.net> <499F404E.7030107@ims.net> <499F41BD.5010701@apache.org> <49A44251.10506@ims.net> <49A5129A.6040806@apache.org> <49A58212.9000507@ice-sa.com> <49A59269.3040609@ims.net> <49A5BE0A.300@ims.net> <0AAE5AB84B013E45A7B61CB66943C17215B8595ED5@USEA-EXCH7.na.uis.unisys.com> <49A5D0D0.6050008@ims.net> In-Reply-To: <49A5D0D0.6050008@ims.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 26 Feb 2009 04:35:23.0685 (UTC) FILETIME=[A3AB7D50:01C997CB] X-Virus-Checked: Checked by ClamAV on apache.org > From: Sam Hokin [mailto:sam@ims.net] > Subject: Re: very slow class loading on initial JSP/servlet > request afterrestart > It looks like we've boiled the problem, at least in this test > JSP case, down to the classloader wasting 3 seconds per > try on stat-ing core Java classes in an imaginary location, > /net/ims/jcms, on the server's filesystem, which actually > corresponds to a path WITHIN a jar file that I wrote, and > which doesn't contain any core Java classes. Some comments on the above: 1) It's not a Tomcat or JVM classloader that's doing the lookup - it's the = JDT compiler hunting for unresolved class references. 2) The Object.class, Throwable.class, etc., core class files are not known = to be core until they *haven't* been found on any imported packages that in= clude a wildcard. That's why the lookups are done with a wildcard, and not= done with explicit classes. Once you have your test Tomcat set up on the problematic server, try adding= this line to the conf/logging.properties file: org.apache.jasper.level =3D ALL That will display a *lot* of information about what's going on during JSP c= ompilation. One thing in particular printed out during Tomcat initializati= on is the compiler classpath for JSPs in each webapp, which might show why = the lookups are being done at the root of the file system. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MA= TERIAL and is thus for use only by the intended recipient. If you received = this in error, please contact the sender and delete the e-mail and its atta= chments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org