You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by vdedaniya <vd...@cybage.com> on 2007/05/23 17:39:05 UTC

Performance Issues

Hi All,
 
Our company is using  Xplanner as a tool for scrum process. Xplanner is an
open source and has been customized by our team to a great extent, recently
we have noticed a lot of Performance issues with Xplanner.
 
The Xplanner set up is as follows:
OS:- Linux
Application server:- Tomcat 5.0
Database server:- MySQL 4.0
Frameworks:- Hibernate 2.0, Spring 2.0, Struts
Both application and database are hosted on independent servers that has h/w
configuration each of 4 cpus and 4 Gb ram.
 
Our observations are as below:
1. Tomcat throws Out of memory exception even though the heap size is set to
1024MB
2. Total number of users when Tomcat crashes is in the range of 500-800
3. Max connection limit in MySQL has been set to 100 users
 
We need the experts help to resolve this issue at the earliest. Also one
thought that we had in mind is to set up some memory profilers to view the
memory consumption of Xplanner application (on a Production box), would you
recommend suggesting such an approach to the client. If yes then what are
the recommended profilers that can be set up to run continuously to monitor
the memory usage.
 
Urgent help will be highly appreciated as this is a production issue.
 
Thank You.
Vishal
-- 
View this message in context: http://www.nabble.com/Performance-Issues-tf3804823.html#a10766501
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: Performance Issues

Posted by Per Jonsson <pe...@laetus.se>.
Hi!

I have struggled earlier with this kind of stuff so here is my suggestions:
- Check the tomcat_home/conf/server.xml and check how many max threads 
your tomcat handles concurrently, it depends of the type of  application 
if the requests is long and memory consumptions maybe it will help too 
lower the concurrent requests. If you have 500-800 concurrent users I 
belive there could be a reason if you have "large" requests.
- Upgrade to java1.6 if it's possible, better memory/debugging/performence.
- If you run java1.5 (later versions) or java6 you can add a flag to the 
java, thisj one I have used:

-XX:HeapDumpPath=C:\Java\heapdump
-XX:+HeapDumpOnOutOfMemoryError
-XX:+PrintGCDetails

If you get a out of memory you can load the dump in a profiler like YourKit or Jprobe and check whats creating the memory. And you could even open it in a texteditor to get a grasp of whats consuming the memory.

I tried setting up YourKit in our testenvironment and make it take samples and it works like a charm, but if you turn on the full profiling it's very slow. I would rather let the server dump the heap (this could be done without an out of memory error but I don't know how) and check it out.

I can really recomend YourKit Java Profiler.

/Per Jonsson

vdedaniya skrev:
> Hi All,
>  
> Our company is using  Xplanner as a tool for scrum process. Xplanner is an
> open source and has been customized by our team to a great extent, recently
> we have noticed a lot of Performance issues with Xplanner.
>  
> The Xplanner set up is as follows:
> OS:- Linux
> Application server:- Tomcat 5.0
> Database server:- MySQL 4.0
> Frameworks:- Hibernate 2.0, Spring 2.0, Struts
> Both application and database are hosted on independent servers that has h/w
> configuration each of 4 cpus and 4 Gb ram.
>  
> Our observations are as below:
> 1. Tomcat throws Out of memory exception even though the heap size is set to
> 1024MB
> 2. Total number of users when Tomcat crashes is in the range of 500-800
> 3. Max connection limit in MySQL has been set to 100 users
>  
> We need the experts help to resolve this issue at the earliest. Also one
> thought that we had in mind is to set up some memory profilers to view the
> memory consumption of Xplanner application (on a Production box), would you
> recommend suggesting such an approach to the client. If yes then what are
> the recommended profilers that can be set up to run continuously to monitor
> the memory usage.
>  
> Urgent help will be highly appreciated as this is a production issue.
>  
> Thank You.
> Vishal
>   

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