title: Questions about PHP and Java
body: <p>I want to know how Java (JSP) on Tomcat compares to PHP on Apache in terms of performance.</p>
  
  <p>Two servers with the same hardware configurations, one running Tomcat/Java (JSP) the other Apache/PHP, both servers maxed out with how many connections they can handle at once. Would they be somewhat close or would one pull away from the other one by a large margin? I basically just want to know if Tomcat/Java (JSP) is going to be a big performance hit if I switch to it vs PHP. If anyone can give a detailed answer on why one is faster than the other that would be amazing. Links are great too, I was unable to find anything online surprisingly.</p>
  
  <p>Please no Java vs PHP wars, this is about performance only, nothing to do with the languages themselves.</p>
  
  <p>Note: If there is any other concerns I should have for switching to Java from PHP please let me know. I REALLY hate asking this question because I'm usually the first person to say "program in what you like" but in my situation I need whats also good for the projects I work for. I know that there are large sites written in JSP, but it doesn't mean that they're better.</p>
  
  <p>Thanks</p>