Richard Reyes wrote:
> 
> Hi All,
> 
> - Version: 5.5 but would upgrading to 6 be wise?
> - OS: Cent OS
> - Kind of App: Webapp with MySQL DB. Have you guys heard of Appfuse.
> - We created it using Spring and Webwork
> - I'm comparing my current performance to the performance when its
> deployed only on my devt desktop because it is so much slower now
> thinking the that it has a good upstream bandwidth allocation and a
> decent box to run on (dual core xenon and 4g ram).
> - I definitely would like to improve page loading time and page throughput.

Appfuse and Spring and Webwork?
I'm not completely familiar with them all, but I'd have thought you'd
get away with using just one framework.

Java6 & Tomcat6 are faster together, in my experience, than lower
version number combos.  Having said that, it's most likely that you will
improve your app, rather than Tomcat.

There are other easy gains that can be made depending on how you've
coded your app.  If, for example, you're not using a database connection
pool, it can be improved considerably by doing so.


You won't gain performance in terms of raw speed by tuning the jvm
memory parameters, but you will decrease the chance of OOMs and lengthy
gc pauses.  4Gb of RAM is no use until you've set it (sensibly).

You should consider profiling your app (google is your friend), or
adding some simple logging to see where the delays are arising.


And look, we haven't even mentioned caching yet...

p


> Regards,
> Richard
> 
> Alan Chaney wrote:
>> Permgen space is used by the ClassLoader to hold copies of classes. It
>> is unlikely that increasing the permgen space will produce a
>> noticeable improvement in performance. Versions of tomcat can exhibit
>> problems with java.lang.OutOfMemoryError: PermGen space failure -
>> there is a good article here discussing some of the issues.
>> http://www.jroller.com/agileanswers/entry/preventing_java_s_java_lang
>>
>> I had problems with tomcat 5.5 following reloading of web apps which
>> were largely overcome by increasing the perm gen space and being
>> prepared to restart the JVM occasionally. So far, I've had no problems
>> with Tomcat 6, but then I have also changed a number of other factors.
>> However, I reiterate that this won't affect the performance of a
>> running application - it will either run or you will get a OOM error.
>>
>> I still think that it would be helpful for Richard to explain exactly
>> what aspect of performance he is trying to improve. Deployment?
>> Startup? Page Response Time? Page Throughput? Memory Footprint?
>>
>> Regards
>>
>> Alan Chaney
>>
>>
>> Schadler Johann wrote:
>>> Richard Reyes wrote:
>>>  
>>>> I have not had the chance to try the heap size and class reloading
>>>> thing, but would still like to learn on other might be areas of
>>>> improvements.
>>>>     
>>>
>>> To be able to influence the memory consumption (e.g. to tune the
>>> PermGen-Space) is the main criteria and most efficient way to speed
>>> up your
>>> application.
>>> Johann
>>>
>>> ---------------------------------------------------------------------
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>> !DSPAM:476d6f98308891721312192!
>>>
>>>   
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to