Web Hosting Talk







View Full Version : JSP on RAQ4


UmBillyCord
06-20-2001, 11:57 PM
Has anyone installed the JSP download from Cobalt? If you have, are you having the same issue? We installed it onto a new RAQ4/256 RAM box and now notice 200 MB's is used by JSP. Keep in mine, we only have 10 sites on this box, none using the JSP.

huck
06-21-2001, 09:48 AM
JSP is highly resource intensive. I do not do the programming but have to set it up on a couple of linux boxes -- we always used at least 256MB of RAM if not 512MB of RAM. JSP uses a lot of memory space during start up but scales much better than some other technologies. Other scripting languages, such as PERL, PHP, Coldfusion, and ASP have smaller memory footprints but do not scale as well (actually ASP scales well when properly done).

Even though you are not running JSP on your site. You have installed the server, so the server is still running. You will find that with small apps there will be a trivial increase in memory usage. However, if you are planning to do database connections, I would add more RAM or find out why JSP is taking up so much space. You may have many options and modules configured that you can eliminate.

jucebro
06-21-2001, 12:01 PM
Our RaQ has about 42 JSP processes running that all look like this:

PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND
18434 root 0 0 14156 13M 5592 S 0 0.0 5.4 0:07 java
18480 root 0 0 14156 13M 5592 S 0 0.0 5.4 0:00 java
18481 root 0 0 14156 13M 5592 S 0 0.0 5.4 0:00 java
18482 root 0 0 14156 13M 5592 S 0 0.0 5.4 0:00 java
18483 root 0 0 14156 13M 5592 S 0 0.0 5.4 0:00 java

In your experince, should there be that many of these processes running? :confused:

Thanks

huck
06-21-2001, 12:19 PM
I have only set this up a couple of times and never tweaked the default settings. I believe that the JSP server behaves similar to Apache, Coldfusion and ASP servers in that they spin up a number of processes waiting for requests. This reduces lag time when starting up a new process. You may want to check the conf files for these setting. We abandoned JSP in favor of Coldfusion last year. CF is much easier to program and handles our needs.