Re: JSP class size increase in Tomcat 7

2011-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jess, On 3/12/2011 11:16 AM, Jess Holle wrote: > Clearly there's normally extra expense for debug/smap information, > though it's not clear to me whether this works against the 65K limit or > not. SMAP information is stored separately from the code,

Re: JSP class size increase in Tomcat 7

2011-03-12 Thread Jess Holle
Nevermind -- I examined other classes produced with 1.5 specified. These were compiled for 1.5 (version 49.0 byte code). On another ugly JSP, I note: * Tomcat 6 - JDT targeting 1.5: 93K * Tomcat 7 - JDT targeting 1.6: 149K * Tomcat 7 - JDT targeting 1.5: 133K * Tomcat 7 - javac (ex

Re: JSP class size increase in Tomcat 7

2011-03-12 Thread Jess Holle
On 3/11/2011 6:04 AM, Jess Holle wrote: On 3/11/2011 3:22 AM, Mark Thomas wrote: The obvious difference is that Tomcat 6 compilation targets Java 5 whereas Tomcat 7 targets Java 6. For a simple test JSP: Tomcat 6 (1.5) - 3,488 Tomcat 7 (1.5) - 3,530 +1% Tomcat 7 (1.6) - 3,668 +6% The 1% will be

Re: JSP class size increase in Tomcat 7

2011-03-11 Thread Jess Holle
On 3/11/2011 4:25 PM, Christopher Schultz wrote: I'm interested in how you were able to do this. The 65k limitation is for a single method, not the entire JSP. Yes, JSPs compile into a single jspService method but when taglibs are used, each use generates its own method which then gets called and

Re: JSP class size increase in Tomcat 7

2011-03-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jess, On 3/11/2011 7:04 AM, Jess Holle wrote: > On 3/11/2011 3:22 AM, Mark Thomas wrote: >> The obvious difference is that Tomcat 6 compilation targets Java 5 >> whereas Tomcat 7 targets Java 6. For a simple test JSP: >> Tomcat 6 (1.5) - 3,488 >> Tomc

Re: JSP class size increase in Tomcat 7

2011-03-11 Thread Jess Holle
On 3/11/2011 3:22 AM, Mark Thomas wrote: The obvious difference is that Tomcat 6 compilation targets Java 5 whereas Tomcat 7 targets Java 6. For a simple test JSP: Tomcat 6 (1.5) - 3,488 Tomcat 7 (1.5) - 3,530 +1% Tomcat 7 (1.6) - 3,668 +6% The 1% will be a combination of: - Tomcat 7 uses versio

Re: JSP class size increase in Tomcat 7

2011-03-11 Thread Mark Thomas
On 11/03/2011 04:50, Bob Hall wrote: > > --- On Thu, 3/10/11 at 8:43 PM, Jess Holle wrote: > Yes, both Java 6 Update 24. >>> Just to verify, are both instances Tomcat running in >> the same JVM mode (-client or -server)? (That >> shouldn't affect the .class file size, but just >> checking.

Re: JSP class size increase in Tomcat 7

2011-03-10 Thread Bob Hall
--- On Thu, 3/10/11 at 8:43 PM, Jess Holle wrote: > >> Yes, both Java 6 Update 24. > > Just to verify, are both instances Tomcat running in > the same JVM mode (-client or -server)?  (That > shouldn't affect the .class file size, but just > checking...) > Yes. > Have you compared the size of .

Re: JSP class size increase in Tomcat 7

2011-03-10 Thread Jess Holle
On 3/10/2011 10:34 PM, Caldarale, Charles R wrote: From: Jess Holle [mailto:je...@ptc.com] Subject: Re: JSP class size increase in Tomcat 7 Yes, both Java 6 Update 24. Just to verify, are both instances Tomcat running in the same JVM mode (-client or -server)? (That shouldn't affec

RE: JSP class size increase in Tomcat 7

2011-03-10 Thread Caldarale, Charles R
> From: Jess Holle [mailto:je...@ptc.com] > Subject: Re: JSP class size increase in Tomcat 7 > Yes, both Java 6 Update 24. Just to verify, are both instances Tomcat running in the same JVM mode (-client or -server)? (That shouldn't affect the .class file size, but just checking

Re: JSP class size increase in Tomcat 7

2011-03-10 Thread Jess Holle
Yes, both Java 6 Update 24. Both using the same doc-base, file paths, etc. I renamed the old Tomcat directory and put the new one in its place. On 3/10/2011 10:01 PM, Bob Hall wrote: Jess, --- On Thu, 3/10/11 at 7:10 PM, Jess Holle wrote: P.S. This was with Tomcat 7.0.10. On 3/10/2011 9

Re: JSP class size increase in Tomcat 7

2011-03-10 Thread Bob Hall
Jess, --- On Thu, 3/10/11 at 7:10 PM, Jess Holle wrote: > P.S. This was with Tomcat 7.0.10. > > On 3/10/2011 9:10 PM, Jess Holle wrote: > > I've been looking at moving to Tomcat 7 from Tomcat > 6. > > > > Most things look good. > > > > I have been surprised by one thing, however: Tomcat 7 > p

Re: JSP class size increase in Tomcat 7

2011-03-10 Thread Jess Holle
P.S. This was with Tomcat 7.0.10. On 3/10/2011 9:10 PM, Jess Holle wrote: I've been looking at moving to Tomcat 7 from Tomcat 6. Most things look good. I have been surprised by one thing, however: Tomcat 7 produces larger JSP class files than Tomcat 6 from the same JSP source files, tag libr

JSP class size increase in Tomcat 7

2011-03-10 Thread Jess Holle
I've been looking at moving to Tomcat 7 from Tomcat 6. Most things look good. I have been surprised by one thing, however: Tomcat 7 produces larger JSP class files than Tomcat 6 from the same JSP source files, tag libraries, etc. Around 12% larger in some examples I've been looking at (where