Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

are there webapp size restrictions?

 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We're creating a massive web application (literally hundreds of servlets and even more JSPs).

Is there an upper limit to the size of a web application in Tomcat (4.1 at the moment)?
I'm somewhat worried about our web.xml being (at the moment) over 2200 lines (77KB on disk) and growing rapidly.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is certainly an upper limit to the amount of memory a single JVM instance can get from the operating system, but no special limits that apply to web applications only. How much memory are you currently giving to Tomcat?
Bill
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not responsible for the server configuration, given the knowledge of the person who is I doubt it's changed much from the defaults (he's no Java expert, but a Unix and database person).

At the moment things are still working but seem to be slowing down a bit (which could well be because the harddisk is running out of space which I discovered earlier this week when the compiler complained about "disk full").
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your program is getting that big but still running with Tomcat defaults, no wonder it is slowing down.

You might stick in some memory monitoring code accessed by a password protected request. This is a great way to track your application remotely and need not be too complex. For example, I use this sort of "back door" to get a histogram of response times, post emergency messages to users ("system going down in 5 minutes!") and check other usage statistics.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic