Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The best approach is to use the included Play server, putting NGinx as reverse proxy in front of it to tackle all the redirection/request managing.</p> <p>Why this and not Tomcat? You can start with <a href="http://www.jtict.com/blog/rails-wicket-grails-play-lift-jsp/" rel="nofollow">this article</a> that compares performance. An extra argument would be that Tomcat loads all the Java EE environment which Play doesn't require nor use, consuming memory and resources you want free for your apps (specially if you use in-memory caching). </p> <p>On Nginx as reverse proxy, <a href="http://blog.webfaction.com/a-little-holiday-present" rel="nofollow">this</a> should give a hint on why to use it instead of Apache. </p> <p><strong>EDIT (on question's edit):</strong></p> <p>In your situation, you can optimize your resources.</p> <p>First replace Apache 2 by Nginx. Nginx can serve PHP, quite well (if you use Ubuntu see <a href="http://www.igneousquill.net/2011/02/how-to-install-mysql-nginx-and-php-on.html" rel="nofollow">this</a>). It will serve Play very efficiently, and can be used as proxy to Java servers.</p> <p>Then you can move all your Java apps to Jetty, and get rid of Tomcat. Jetty consumes less resources in average, and even if your apps will only run at night, the server is still online and hoarding ram. The less it takes the better.</p> <p>What about SVN? Sadly you will need Apache 2 and Nginx as reverse proxy to Apache 2. Why not to keep Apache then? The argument would be usage. In theory the PHP apps will have more traffic than the SVN server, which makes more relevant the resource consumption they have. With nginx, ram and cpu allocated to serve PHP will be less making your machine more responsive. Apache will only act when you use SVN, which will not be so often.</p> <p>If you don't want to put the effort on moving stuff to Nginx (which I can understand), then just move Java apps to Jetty and use Apache 2 as reverse proxy for Play. But use Play embedded server, don't load the app in Tomcat. It will be more efficient this way.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload