Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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?

share|improve this question
add comment

migrated from stackoverflow.com Nov 19 '10 at 3:48

This question came from our site for professional and enthusiast programmers.

2 Answers

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.

share|improve this answer
    
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 '10 at 18:02
add comment

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

share|improve this answer
    
what is the reason PHP takes less memory than JSP? –  Anonymous Nov 18 '10 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 '10 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 '10 at 10:41
    
So Python is better at memory handling? –  Anonymous Nov 18 '10 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 '10 at 10:44
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.