Web Hosting Talk







View Full Version : [JSP] Question regarding resources


hypernatic.net
01-11-2002, 09:54 PM
Hi

I am thinking of installing JSP / Tomcat on a Raq4 (256MB ram)
Now, I heard that JSP takes up a lot of resources... I have never used JSP / Tomcat before and do not know an aweful lot about it...

Now, what do you suggest? Would PHP indeed add something to the value of my packages? Would YOU consider doing it (in other words, will it not kill your servers)...

Any feedback is more then welcome :)

Jedito
01-11-2002, 09:58 PM
I do not recommend to run tomcat with only 256 MB RAM, we have near 20 using tomcat in a dual P III with 1.5 GB RAM, and I must say that it really use recourses when the site comes popular.

hypernatic.net
01-11-2002, 09:59 PM
What exactly is the difference between Tomcat and JSP?

Jedito
01-11-2002, 10:02 PM
JSP= Java server page
Tomcat is the engine :)

hypernatic.net
01-11-2002, 10:03 PM
Ah :) heheh

But what you could do is enable JSP on request,
and when it is abused (to much system resources) contact the client... get what i mean?...

what do you think about that?

ckpeter
01-11-2002, 11:06 PM
hypernatic.net,
kind of off-topic but, you are registered in Jan 2002, how did you get 552 posts in less than a month?

Peter

The Prohacker
01-11-2002, 11:48 PM
Originally posted by ckpeter
hypernatic.net,
kind of off-topic but, you are registered in Jan 2002, how did you get 552 posts in less than a month?

Peter


Very true:
http://www.webhostingtalk.com/search.php?s=&action=showresults&searchid=214832

Only returns 15 posts.....


I think Matt needs to update the counters here....

hypernatic.net
01-11-2002, 11:49 PM
This is due to an account transfer...

Please lets get back to the topic...

ckpeter
01-12-2002, 12:02 AM
JSP/Java has a high initial overhead, but than as you scale, it becomes faster and eventually outperform CGI/PHP.

I think you need to consider whether you will have enough people using this. Also, the RAQ4 has a slower processor, which could be a concern assuming that RAM is enough.

You mentioned something about PHP, was that a mistype or did you mean Java?

Peter

Jedito
01-12-2002, 12:30 AM
Originally posted by hypernatic.net
Ah :) heheh

But what you could do is enable JSP on request,
and when it is abused (to much system resources) contact the client... get what i mean?...

what do you think about that?

Well.. still 256 it's a low amount of memory to run a normal web server, if you add to that jsp, you'll out of memory all the time.

priyadi
01-12-2002, 04:32 AM
Originally posted by hypernatic.net
Hi

I am thinking of installing JSP / Tomcat on a Raq4 (256MB ram)
Now, I heard that JSP takes up a lot of resources... I have never used JSP / Tomcat before and do not know an aweful lot about it...

Now, what do you suggest? Would PHP indeed add something to the value of my packages? Would YOU consider doing it (in other words, will it not kill your servers)...

Any feedback is more then welcome :)

I suggest that you offer JSP per request basis and possibly charge more for that. It is also a good idea to run JSP/servlet as the user using it, with a single JVM for each user that need it. Then, you can enforce resource limit per user so that it won't use too much resources.