Questions about PHP and Java

I want to know how Java (JSP) on Tomcat compares with PHP on Apache in terms of performance.

Two servers with the same hardware configurations, one using Tomcat / Java (JSP) and the other Apache / PHP, both servers maximized the number of connections they can handle at the same time. Will they be close or break away from the other by a large margin? I just want to know if Tomcat / Java (JSP) will be a big success if I switch to it against PHP. If anyone can give a detailed answer about why one is faster than the other, that would be surprising. The links are also great, I could not find anything surprising on the Internet.

Please, it doesn’t matter that Java is against PHP wars, it is only performance not related to the languages ​​themselves.

Note. If there are any other problems that I would have to switch to Java with PHP, please let me know. I REALLY hate asking this question because I'm usually the first person to say “the program is what you like,” but in my situation I need what is good for the projects I'm working on. I know that there are large sites in JSP, but that does not mean that they are better.

thanks

+3
source share
2 answers

, , , , , . , .

: .

, . Java--, , , PHP , .

Java , - . , , , PHP , ( , memcache ..).

PHP- , .

$10,000 . SO. .

Java, PHP. PHP - -:

  • (.. / Java hot-deploy ). , , , , , , Ant/Maven;
  • /;
  • , ,
  • ( ).

Java , , , PHP.

, ( ) .

, , - .

+14

- . PHP, Java, ab (Apache Benchmark).

, , Java PHP - . Java - ( ), . Tomcat , JVM , , , , HTTP- -. PHP, Apache. op-, , JVM.

0

Source: https://habr.com/ru/post/1724571/


All Articles