This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Performance and the fly likes keeping html pages inside web application context or outside the context? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Performance
Bookmark "keeping html pages inside web application context or outside the context?" Watch "keeping html pages inside web application context or outside the context?" New topic
Author

keeping html pages inside web application context or outside the context?

vijay makam
Ranch Hand

Joined: Sep 06, 2008
Posts: 31
I am developing a web application which will have few servlets/JSP's and a lot of html pages (whose number will only increase in the future). Now, my question is, will there be any perfomance issues if all the html pages are present inside the webapp context or is it advisable to access those html pages as resource by placing them outside the web application context.

users will be uploading html pages using the application very often.

Any suggestions are highly appreciated.


Regards,
vijay
steve souza
Ranch Hand

Joined: Jun 26, 2002
Posts: 861
I would put them within the webapp context and track performance with a servlet filter like the one that comes with JAMon. JAMon would have metrics like average and max time for each of your html pages as well as jsp's and servlets.

I think you will find that all but the largest sites will perform just fine when putting the files within the context. And there is no simple answer here. If your jsp's are slow and clunky and bog down the server in general then results may vary.


http://www.jamonapi.com/ - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
 
GeeCON Prague 2014
 
subject: keeping html pages inside web application context or outside the context?