• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Improve Tomcat 6 responsiveness

 
Purvesh Vora
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have application which loads huge data for around 5 days. Each day data is around 500MB. We cache this data in terms of objects on the tomcat server.
And then when user hit it at times it loads 1 day data objects to the client.
We have Xmx set to 4GB.
At times the server becomes unresponsive with memory crossing 3.7GB and suddenly GC kicks in.
But even there are cases when the server is not using much memory it becomes very slow in responding.
There are 25 users of application.
At time we send one day data objects (500MB) to client.

Can you please help how to improve responsiveness with this.

Thanks in advance.

Purvesh
 
Misha Ver
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Large heap size could slow down an application. Which JVM do you use, what are others memory setting, how much memory you machine have.
 
Kees Jan Koster
JavaMonitor Support
Rancher
Posts: 251
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Purvesh,

Sending 500MB to the client is going to be slow no matter what. I believe that you have to reconsider your data and see how you can aggregate the data into more manageable sizes. For example, you may be able to keep the entire set in RAM and then send smaller subsets to the client.

If you need to send that 500MB to the client, why use Tomcat? That's not what the web was made for, it will never perform.

Kees Jan
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kees Jan Koster wrote:

If you need to send that 500MB to the client, why use Tomcat? That's not what the web was made for, it will never perform.


Whether or not it was "made for it", I worked at a company that sent 1GB of data nightly to a client over the Internet, and I don't think that was the only large client they did that for. However, they used FTP, not HTTP, so the overhead was a little less.

I'm not clear if this 500MB is total or for each one of the 25 users. For large-scale replication of large amounts of data, I'd check into BitTorrent instead of Tomcat.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic