Search code examples
javaphpweb-frameworks

How high is Java web application memory & CPU usage compared with PHP 5.4


I have zero experience building website with Java. Recently I need to develop complex web application.

Currently I'm converting PHP apps to get it works in PHP 5.4. With modern website requirement, PHP application needs better frameworking from start. Use Zend framework or Drupal 7 looks good move.

But Zend or Drupal 7 comes with a price. 300MB VPS seems not relevant anymore for an average PHP website. In this case, Resource usage rate is very important to me.

Because lots of complex web application is built with Java web framework, I just wonder how high is Java resource usage (memory & CPU) compared with PHP 5.4?

I hope it will be same or even better, so that I have more choice.


Solution

  • This should provide some info about resource and cpu usage of both languages

    enter image description here

    Basically, based in that series of test (and until this date) Java memory consumption is in average bigger than PHP, but execution time tends to be faster