RE: RE: Re: Performance Improvement :: Struts based applications

2004-03-19 Thread McCormack, Chris
Raise the debug level for certain packages in your production environment (if you run 
debug there at all), set classes like 
log4j.logger.org.apache.commons.digester to FATAL. This will trim down your log files 
considerably. You should consider proper use of the logging levels within your 
application to provide meaningful INFO/ERROR messages so you should not have to run at 
DEBUG level anywhere other than in development.

-

How soon after starting up your appserver are you trying to hit your application ? You 
have to allow time for the appserver to initialise its resources. Tomcat 4.1.24 takes 
a little over 6 seconds to boot on one of our development boxes and initialise 7 
(pre-deployed) applications, and be ready to service requests.
If you are starting your appserver and having it redeploy your war file on startup 
then you should be expected to wait for it to initialise. If you setup connection 
pools on startup then check they are all available and none are timing out etc.

As another user said you could always run JProbe to get to the root cause without too 
much hassle :)

Chris McCormack

-Original Message-
From: Scott Piker [mailto:[EMAIL PROTECTED]
Sent: 18 March 2004 22:23
To: [EMAIL PROTECTED]
Subject: Re: RE: Re: Performance Improvement :: Struts based
applications


What's your logging level set to?  We recently did a late roll-in of log4j to our app 
and discovered that when we set logging level to debug, the initial struts/tiles 
initialization process takes forever (>5 mins) and generates thousands of lines of 
debug statements as the various config files get parsed.

>>> [EMAIL PROTECTED] 3/18/2004 3:19:19 PM >>>
Chris,

I have precompiled JSP files. So i do not think that is a problem. Rather I feel it is 
ActionServlet which is taking time to intialize on first startup. 

Yes, I tries to use the cache mechanism of Apache (in windows), like mod_cache, 
mod_file_cache, mod_mem_cache and mod_disk_cache. But could not see much improvement. 
But no cache mechanism in Tomcat.Or are you talking of something else?

Apache provides cache taglibs for the JSPs. Do you recommend to use that?? The site 
that you have mentioned http://wiki.opensymphony.com/space/OSCache, I have been to 
there, but that is a commercial one. I want a freeware. Can you give me some 
reference? 

Regards,
Satya.

that

On Thu, 18 Mar 2004 McCormack, Chris wrote :
>If you build your war file using ant then you can use jasper (see 
>org.apache.jasper.JspC) to precompile your jsps. This is useful if you are deploying 
>your app to a live user environment and dont want the initial compile time to impact 
>any users experience.
>
>On top of that you could use tomcat/apache mods to compress requests etc.
>
>If you are serious about needing bigger performance boosts, then look at partial/full 
>caching. i.e store in server ram/disk the static or infrequently changing parts of 
>your application (jsp or java objects), or have a small cache period on dynamic but 
>less frequently updated parts of your application.
>There are a few companies that ply these out of the box caching solutions on 
>companies now for extortionate cost (naming no names) but there are a few excellent 
>open source contenders. The best of the open source solutions I have used is this one 
>: http://wiki.opensymphony.com/space/OSCache (It does tie you in to using HttpSession 
>unfortunately, but with a few lines of code you can easily work around this).
>
>It is a shame that this project http://www.jcp.org/en/jsr/detail?id=128 is not in 
>progress, anyone on this list working on it ? ;)
>
>cheers
>Chris McCormack
>
>-Original Message-
> From: Axel Groß [mailto:[EMAIL PROTECTED] 
>Sent: 18 March 2004 14:43
>To: Struts Users Mailing List
>Cc: [EMAIL PROTECTED] 
>Subject: Re: Re: Performace Improvement :: Struts based applications
>
>
>some IDEs also precompile the pages...
>axel
>
>On 2004-03-18 at 14:16:26 +0100, [EMAIL PROTECTED] wrote:
> > The reason is jsps are not compiled when you hit the pages the first time.So the 
> > first call will always be slow as it alos has to compile jsps.The subsequent calls 
> > will use the compiled jsps and hence faster.
> >
> > Some server/ServletEngines have the option to precompile jsps.
> >
> > HTH.
> >
> > Regards,
> > Shirish
> >
> >
> > -Original Message-
> > From: Satya Narayan Dash [mailto:[EMAIL PROTECTED] 
> > Sent: Thursday, March 18, 2004 2:13 PM
> > To: Struts Users Mailing List
> > Cc: Vic Cekvenich
> > Subject: Re: Re: Performace Improvement :: Struts based applications
> >
> >
> > Hi,
> >
> > I have done the testing of the view layer. And what is peculiar is when i am 
> > hitting the ServletEn

Re: Re: RE: Re: Performance Improvement :: Struts based applications

2004-03-18 Thread Satya Narayan Dash
I have set to to 0 (init parameter for ActionServlet) and for Tomcat (debug = 0), 
Apache(servertoken = prod) and (jk logs = info).

Do you recommend to use validate and valdating init parameters for ActionServlet.

Satya

On Fri, 19 Mar 2004 Scott Piker wrote :
>What's your logging level set to?  We recently did a late roll-in of log4j to our app 
>and discovered that when we set logging level to debug, the initial struts/tiles 
>initialization process takes forever (>5 mins) and generates thousands of lines of 
>debug statements as the various config files get parsed.
>
> >>> [EMAIL PROTECTED] 3/18/2004 3:19:19 PM >>>
>Chris,
>
>I have precompiled JSP files. So i do not think that is a problem. Rather I feel it 
>is ActionServlet which is taking time to intialize on first startup.
>
>Yes, I tries to use the cache mechanism of Apache (in windows), like mod_cache, 
>mod_file_cache, mod_mem_cache and mod_disk_cache. But could not see much improvement. 
>But no cache mechanism in Tomcat.Or are you talking of something else?
>
>Apache provides cache taglibs for the JSPs. Do you recommend to use that?? The site 
>that you have mentioned http://wiki.opensymphony.com/space/OSCache, I have been to 
>there, but that is a commercial one. I want a freeware. Can you give me some 
>reference?
>
>Regards,
>Satya.
>
>that
>
>On Thu, 18 Mar 2004 McCormack, Chris wrote :
> >If you build your war file using ant then you can use jasper (see 
> >org.apache.jasper.JspC) to precompile your jsps. This is useful if you are 
> >deploying your app to a live user environment and dont want the initial compile 
> >time to impact any users experience.
> >
> >On top of that you could use tomcat/apache mods to compress requests etc.
> >
> >If you are serious about needing bigger performance boosts, then look at 
> >partial/full caching. i.e store in server ram/disk the static or infrequently 
> >changing parts of your application (jsp or java objects), or have a small cache 
> >period on dynamic but less frequently updated parts of your application.
> >There are a few companies that ply these out of the box caching solutions on 
> >companies now for extortionate cost (naming no names) but there are a few excellent 
> >open source contenders. The best of the open source solutions I have used is this 
> >one : http://wiki.opensymphony.com/space/OSCache (It does tie you in to using 
> >HttpSession unfortunately, but with a few lines of code you can easily work around 
> >this).
> >
> >It is a shame that this project http://www.jcp.org/en/jsr/detail?id=128 is not in 
> >progress, anyone on this list working on it ? ;)
> >
> >cheers
> >Chris McCormack
> >
> >-Original Message-
> > From: Axel Groß [mailto:[EMAIL PROTECTED]
> >Sent: 18 March 2004 14:43
> >To: Struts Users Mailing List
> >Cc: [EMAIL PROTECTED]
> >Subject: Re: Re: Performace Improvement :: Struts based applications
> >
> >
> >some IDEs also precompile the pages...
> >axel
> >
> >On 2004-03-18 at 14:16:26 +0100, [EMAIL PROTECTED] wrote:
> > > The reason is jsps are not compiled when you hit the pages the first time.So the 
> > > first call will always be slow as it alos has to compile jsps.The subsequent 
> > > calls will use the compiled jsps and hence faster.
> > >
> > > Some server/ServletEngines have the option to precompile jsps.
> > >
> > > HTH.
> > >
> > > Regards,
> > > Shirish
> > >
> > >
> > > -Original Message-
> > > From: Satya Narayan Dash [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, March 18, 2004 2:13 PM
> > > To: Struts Users Mailing List
> > > Cc: Vic Cekvenich
> > > Subject: Re: Re: Performace Improvement :: Struts based applications
> > >
> > >
> > > Hi,
> > >
> > > I have done the testing of the view layer. And what is peculiar is when i am 
> > > hitting the ServletEngine for the first time, then it takes a lot of time, but 
> > > subsequent hits take less time.
> > >
> > > Is it because the ActionServlet is not initiliazed, though I have started the 
> > > engine?
> > >
> > > I would like to know if any recommended technique is given to improve the 
> > > performance.
> > >
> > > Regards,
> > > Satya.
> > >
> > > On Thu, 18 Mar 2004 Vic Cekvenich wrote :
> > > >Unit test the performance of the model layer.
> > > >.V
> > > >
> > > >Satya Narayan Dash wrote:
> > > >>Hi,
> > > >>
> > > >>I am in the process of improving a struts based application. I am using the 
> > > >>cache taglib (from apache) and have written some filters to improve the 
> > > >>performace.
> > > >>I am using Apache2 as the web-sever and Tomcat4 as the servelt/jsp engine. I 
> > > >>have optimized them both.
> > > >>
> > > >>But the peformance improvement is not substantial. Can you please give me some 
> > > >>tips to improve the performance ?
> > > >>Need your help,
> > > >>Regards,
> > > >>Satya.
> > > >
> > > >
> > > >-
> > > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >For additional commands, 

Re: RE: Re: Performance Improvement :: Struts based applications

2004-03-18 Thread Scott Piker
What's your logging level set to?  We recently did a late roll-in of log4j to our app 
and discovered that when we set logging level to debug, the initial struts/tiles 
initialization process takes forever (>5 mins) and generates thousands of lines of 
debug statements as the various config files get parsed.

>>> [EMAIL PROTECTED] 3/18/2004 3:19:19 PM >>>
Chris,

I have precompiled JSP files. So i do not think that is a problem. Rather I feel it is 
ActionServlet which is taking time to intialize on first startup. 

Yes, I tries to use the cache mechanism of Apache (in windows), like mod_cache, 
mod_file_cache, mod_mem_cache and mod_disk_cache. But could not see much improvement. 
But no cache mechanism in Tomcat.Or are you talking of something else?

Apache provides cache taglibs for the JSPs. Do you recommend to use that?? The site 
that you have mentioned http://wiki.opensymphony.com/space/OSCache, I have been to 
there, but that is a commercial one. I want a freeware. Can you give me some 
reference? 

Regards,
Satya.

that

On Thu, 18 Mar 2004 McCormack, Chris wrote :
>If you build your war file using ant then you can use jasper (see 
>org.apache.jasper.JspC) to precompile your jsps. This is useful if you are deploying 
>your app to a live user environment and dont want the initial compile time to impact 
>any users experience.
>
>On top of that you could use tomcat/apache mods to compress requests etc.
>
>If you are serious about needing bigger performance boosts, then look at partial/full 
>caching. i.e store in server ram/disk the static or infrequently changing parts of 
>your application (jsp or java objects), or have a small cache period on dynamic but 
>less frequently updated parts of your application.
>There are a few companies that ply these out of the box caching solutions on 
>companies now for extortionate cost (naming no names) but there are a few excellent 
>open source contenders. The best of the open source solutions I have used is this one 
>: http://wiki.opensymphony.com/space/OSCache (It does tie you in to using HttpSession 
>unfortunately, but with a few lines of code you can easily work around this).
>
>It is a shame that this project http://www.jcp.org/en/jsr/detail?id=128 is not in 
>progress, anyone on this list working on it ? ;)
>
>cheers
>Chris McCormack
>
>-Original Message-
> From: Axel Groß [mailto:[EMAIL PROTECTED] 
>Sent: 18 March 2004 14:43
>To: Struts Users Mailing List
>Cc: [EMAIL PROTECTED] 
>Subject: Re: Re: Performace Improvement :: Struts based applications
>
>
>some IDEs also precompile the pages...
>axel
>
>On 2004-03-18 at 14:16:26 +0100, [EMAIL PROTECTED] wrote:
> > The reason is jsps are not compiled when you hit the pages the first time.So the 
> > first call will always be slow as it alos has to compile jsps.The subsequent calls 
> > will use the compiled jsps and hence faster.
> >
> > Some server/ServletEngines have the option to precompile jsps.
> >
> > HTH.
> >
> > Regards,
> > Shirish
> >
> >
> > -Original Message-
> > From: Satya Narayan Dash [mailto:[EMAIL PROTECTED] 
> > Sent: Thursday, March 18, 2004 2:13 PM
> > To: Struts Users Mailing List
> > Cc: Vic Cekvenich
> > Subject: Re: Re: Performace Improvement :: Struts based applications
> >
> >
> > Hi,
> >
> > I have done the testing of the view layer. And what is peculiar is when i am 
> > hitting the ServletEngine for the first time, then it takes a lot of time, but 
> > subsequent hits take less time.
> >
> > Is it because the ActionServlet is not initiliazed, though I have started the 
> > engine?
> >
> > I would like to know if any recommended technique is given to improve the 
> > performance.
> >
> > Regards,
> > Satya.
> >
> > On Thu, 18 Mar 2004 Vic Cekvenich wrote :
> > >Unit test the performance of the model layer.
> > >.V
> > >
> > >Satya Narayan Dash wrote:
> > >>Hi,
> > >>
> > >>I am in the process of improving a struts based application. I am using the 
> > >>cache taglib (from apache) and have written some filters to improve the 
> > >>performace.
> > >>I am using Apache2 as the web-sever and Tomcat4 as the servelt/jsp engine. I 
> > >>have optimized them both.
> > >>
> > >>But the peformance improvement is not substantial. Can you please give me some 
> > >>tips to improve the performance ?
> > >>Need your help,
> > >>Regards,
> > >>Satya.
> > >
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED] 
> > >For additional commands, e-mail: [EMAIL PROTECTED] > > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED] 
> > For additional commands, e-mail: [EMAIL PROTECTED] 
> >
> >
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED] 
>For additional commands, e-mail: [EMAIL PROTECTED] 
>
>
>***
>This e-mail and its attachmen

Re: RE: Re: Performance Improvement :: Struts based applications

2004-03-18 Thread Satya Narayan Dash
Chris,

I have precompiled JSP files. So i do not think that is a problem. Rather I feel it is 
ActionServlet which is taking time to intialize on first startup. 

Yes, I tries to use the cache mechanism of Apache (in windows), like mod_cache, 
mod_file_cache, mod_mem_cache and mod_disk_cache. But could not see much improvement. 
But no cache mechanism in Tomcat.Or are you talking of something else?

Apache provides cache taglibs for the JSPs. Do you recommend to use that?? The site 
that you have mentioned http://wiki.opensymphony.com/space/OSCache, I have been to 
there, but that is a commercial one. I want a freeware. Can you give me some 
reference? 

Regards,
Satya.

that

On Thu, 18 Mar 2004 McCormack, Chris wrote :
>If you build your war file using ant then you can use jasper (see 
>org.apache.jasper.JspC) to precompile your jsps. This is useful if you are deploying 
>your app to a live user environment and dont want the initial compile time to impact 
>any users experience.
>
>On top of that you could use tomcat/apache mods to compress requests etc.
>
>If you are serious about needing bigger performance boosts, then look at partial/full 
>caching. i.e store in server ram/disk the static or infrequently changing parts of 
>your application (jsp or java objects), or have a small cache period on dynamic but 
>less frequently updated parts of your application.
>There are a few companies that ply these out of the box caching solutions on 
>companies now for extortionate cost (naming no names) but there are a few excellent 
>open source contenders. The best of the open source solutions I have used is this one 
>: http://wiki.opensymphony.com/space/OSCache (It does tie you in to using HttpSession 
>unfortunately, but with a few lines of code you can easily work around this).
>
>It is a shame that this project http://www.jcp.org/en/jsr/detail?id=128 is not in 
>progress, anyone on this list working on it ? ;)
>
>cheers
>Chris McCormack
>
>-Original Message-
> From: Axel Groß [mailto:[EMAIL PROTECTED]
>Sent: 18 March 2004 14:43
>To: Struts Users Mailing List
>Cc: [EMAIL PROTECTED]
>Subject: Re: Re: Performace Improvement :: Struts based applications
>
>
>some IDEs also precompile the pages...
>axel
>
>On 2004-03-18 at 14:16:26 +0100, [EMAIL PROTECTED] wrote:
> > The reason is jsps are not compiled when you hit the pages the first time.So the 
> > first call will always be slow as it alos has to compile jsps.The subsequent calls 
> > will use the compiled jsps and hence faster.
> >
> > Some server/ServletEngines have the option to precompile jsps.
> >
> > HTH.
> >
> > Regards,
> > Shirish
> >
> >
> > -Original Message-
> > From: Satya Narayan Dash [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, March 18, 2004 2:13 PM
> > To: Struts Users Mailing List
> > Cc: Vic Cekvenich
> > Subject: Re: Re: Performace Improvement :: Struts based applications
> >
> >
> > Hi,
> >
> > I have done the testing of the view layer. And what is peculiar is when i am 
> > hitting the ServletEngine for the first time, then it takes a lot of time, but 
> > subsequent hits take less time.
> >
> > Is it because the ActionServlet is not initiliazed, though I have started the 
> > engine?
> >
> > I would like to know if any recommended technique is given to improve the 
> > performance.
> >
> > Regards,
> > Satya.
> >
> > On Thu, 18 Mar 2004 Vic Cekvenich wrote :
> > >Unit test the performance of the model layer.
> > >.V
> > >
> > >Satya Narayan Dash wrote:
> > >>Hi,
> > >>
> > >>I am in the process of improving a struts based application. I am using the 
> > >>cache taglib (from apache) and have written some filters to improve the 
> > >>performace.
> > >>I am using Apache2 as the web-sever and Tomcat4 as the servelt/jsp engine. I 
> > >>have optimized them both.
> > >>
> > >>But the peformance improvement is not substantial. Can you please give me some 
> > >>tips to improve the performance ?
> > >>Need your help,
> > >>Regards,
> > >>Satya.
> > >
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>***
>This e-mail and its attachments are confidential
>and are intended for the above named recipient
>only. If this has come to you in error, please
>notify the sender immediately and delete this
>e-mail from your system.
>You must take no action based on this, nor must
>you copy or disclose it or any part of its contents
>to any person or organisation.
>Statements and opinions contained in this 

RE: Re: Performance Improvement :: Struts based applications

2004-03-18 Thread McCormack, Chris
If you build your war file using ant then you can use jasper (see 
org.apache.jasper.JspC) to precompile your jsps. This is useful if you are deploying 
your app to a live user environment and dont want the initial compile time to impact 
any users experience.

On top of that you could use tomcat/apache mods to compress requests etc.

If you are serious about needing bigger performance boosts, then look at partial/full 
caching. i.e store in server ram/disk the static or infrequently changing parts of 
your application (jsp or java objects), or have a small cache period on dynamic but 
less frequently updated parts of your application. 
There are a few companies that ply these out of the box caching solutions on companies 
now for extortionate cost (naming no names) but there are a few excellent open source 
contenders. The best of the open source solutions I have used is this one : 
http://wiki.opensymphony.com/space/OSCache (It does tie you in to using HttpSession 
unfortunately, but with a few lines of code you can easily work around this).

It is a shame that this project http://www.jcp.org/en/jsr/detail?id=128 is not in 
progress, anyone on this list working on it ? ;)

cheers
Chris McCormack

-Original Message-
From: Axel Groß [mailto:[EMAIL PROTECTED]
Sent: 18 March 2004 14:43
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: Re: Re: Performace Improvement :: Struts based applications


some IDEs also precompile the pages...
axel

On 2004-03-18 at 14:16:26 +0100, [EMAIL PROTECTED] wrote:
> The reason is jsps are not compiled when you hit the pages the first time.So the 
> first call will always be slow as it alos has to compile jsps.The subsequent calls 
> will use the compiled jsps and hence faster.
> 
> Some server/ServletEngines have the option to precompile jsps.
> 
> HTH.
> 
> Regards,
> Shirish
> 
> 
> -Original Message-
> From: Satya Narayan Dash [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 18, 2004 2:13 PM
> To: Struts Users Mailing List
> Cc: Vic Cekvenich
> Subject: Re: Re: Performace Improvement :: Struts based applications
> 
> 
> Hi,
> 
> I have done the testing of the view layer. And what is peculiar is when i am hitting 
> the ServletEngine for the first time, then it takes a lot of time, but subsequent 
> hits take less time. 
> 
> Is it because the ActionServlet is not initiliazed, though I have started the engine?
> 
> I would like to know if any recommended technique is given to improve the 
> performance.
> 
> Regards,
> Satya.
> 
> On Thu, 18 Mar 2004 Vic Cekvenich wrote :
> >Unit test the performance of the model layer.
> >.V
> >
> >Satya Narayan Dash wrote:
> >>Hi,
> >>
> >>I am in the process of improving a struts based application. I am using the cache 
> >>taglib (from apache) and have written some filters to improve the performace. 
> >>I am using Apache2 as the web-sever and Tomcat4 as the servelt/jsp engine. I have 
> >>optimized them both.
> >>
> >>But the peformance improvement is not substantial. Can you please give me some 
> >>tips to improve the performance ? 
> >>Need your help,
> >>Regards,
> >>Satya.
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]