6

Is it easy to host a jsp website like PHP? Is the server open source like Apache? and What is the best server for jsp?

2 Answers 2

3

PHP is generally more of an accessible language to beginners or casual web programmers than JSP. Therefore hosting tends to be much more common and also, therefore cheaper.

JSPs are a special type of Java servlet. These run in a servlet container. In a paid for hosting environment this will typically be Apache Tomcat. This is open source. I'd expect any decent Tomcat hosting company to have a setup where deployment is no more difficult than PHP. If you want to look into basic JSP hosting look for shared (rather than private) Tomcat instance options.

1
  • If you're going to a shared environment, you will also want to see what DB access tools are available. If the hosting provider has both JSP and PHP installed you'll most likely have pgAdmin or phpMyAdmin to manage postgres or mysql db's (assuming you want one of these or a db at all...)
    – digit1001
    Nov 23, 2010 at 18:02
1

for first shot - memory, i think php will be extremely happy with 64MB, JSP starts with 40MB up to gigabytes depending on chosen technologies

6
  • what is the reason PHP takes less memory than JSP?
    – Anonymous
    Nov 18, 2010 at 10:37
  • 2
    minimal installation of jsp would require apache + tomcat which will be tomcat more then apache for php (unless you compile it by your self). not mentioning glasfish which requires 512MB memory and up.
    – mpapis
    Nov 18, 2010 at 10:39
  • if you consider that match then you can also consider Ruby on Rails on Ruby and Django on Python
    – mpapis
    Nov 18, 2010 at 10:41
  • So Python is better at memory handling?
    – Anonymous
    Nov 18, 2010 at 10:42
  • 1
    Python, Ruby and PHP will have similar memory usage (maybe not exact but probably not more them 50MB difference). If you are considering any technology now, you should think of few things like how does it fits to you, and how easy somebody else can be introduced.
    – mpapis
    Nov 18, 2010 at 10:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.