On Tue, 13 Mar 2001, rajeev wrote:

> We are building a large in-house enterprise application, and we are 
> evaluating JSP technology. We are considering what is known as the 
> "JSP Model 2" architecture, where business logic lives in JavaBeans, 
> servlets handle control flow, and presentation is handled by JSP.
> 

One technology you might want to evaluate for this is the Struts Framework
<http://jakarta.apache.org/struts>, which implements precisely this idea.

> Are people using JSP for large enterprise applications (as opposed
> to consumer websites)? Are there any issues to be aware of, if your
> application will have a thousand or more webpages?
> 

There have been numerous references to large scale JSP-based web sites,
both on the Tomcat user list and at the JavaSoft web site
<http://java.sun.com/products/jsp>.  As with anything, you want to look
for an environment where the pages compile to code that runs fast enough
for your needs (on the hardware platform you run it on).  Also like any
Java app, you want the fastest JDK you can get your hands on.

> For example, will tomcat load all thousand JSP pages (servlets) into
> memory as they are used, and keep them there (as opposed to 
> discarding them after a while)? Will this cause performance problems
> because of excessive swapping etc?
> 

In the case of Tomcat in particular, it will happily load a thousand JSP
pages (each one loaded the first time it is accessed), as long as you have
provided sufficient heap memory to your JDK at startup time.  Tomcat
itself does not unload pages that haven't been referenced lately, although
other containers might.

IMHO, any web application that causes any swapping (at the OS level) at
all is on a system with too little real memory.  At today's prices, there
is just no reason not to buy enough to meet your needs.  On one
application I was involved in, we ran on a server with a gigabyte of main
memory (in this case we were very aggressively caching data to avoid
redundant database access, but the principle was the same) -- and the
per-server price for CPU (four processors) and memory was still in the
five figure range (US$).


Craig McClanahan


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to