Solved

Best pracitce with apache www + jboss/tomcat

Posted on 2008-06-12
5
852 Views
Last Modified: 2013-12-02
Hi
I'm wondering what is the best practice with fronting apache before back-end jboss/tomcat application server. Our environment has been created in this way :

First server  - Dell PowerEdge 1950 - 2x Intel Xeon X5355 @ 2.66GHz (4 cores for each processor)  , 8GB RAM - Windows Server 2003 R2 Standard x64 Edition , Apache 2.2.6 (32bit) mod_jk/1.2.25 OpenSSL 0.9.8g, JBoss 4.0.5GA bundled with Tomcat 5.5.20.

Second server - Dell Power Edge R900 - 4x Intel Xeon E7340 (4 cores for each processor), 16GB RAM - Windows Server 2003 R2 Standard x64 Edition - PostgreSQL 8.1.11

Any my question is : what is the best solution for performance - move apache to different server or leave it on same machine with jboss/tomcat ? I have Dell PE 2650 2x Intel Xeon 3,4GHz (1 core processors) 4GB RAM - free machine to move apache there.
0
Comment
Question by:szczecin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 35

Assisted Solution

by:girionis
girionis earned 20 total points
ID: 21782867
We had a (kinda) similar approach, with a weblogic cluster. We had the webserver on a different machine than the server instances.
0
 

Author Comment

by:szczecin
ID: 21820521
I just want to know what is the better solutions with some good explanation.
0
 
LVL 19

Accepted Solution

by:
ramazanyich earned 40 total points
ID: 22343110
As general architecture for such  a configuration it is recommended to put Web frontend server (Apache web server in your case) on separate machine which is available from Internet and application server (jboss/tomcat) on another machine. It is for security purposes. It is said that web server is put into DMZ (demilitarized zone) which is publically available from internet. Normally you should put firewall between a webserver and application server (only open communication port between apache web server and application server)  to avoid direct access to the application server from internet.

For better performance also better put static files (eg. pictures) under apache webserver document dir.
In your case I would put apache web server on first server and application server on second server because second more powerfull and application server requires more resources during working.
0
 
LVL 51

Assisted Solution

by:ahoffmann
ahoffmann earned 40 total points
ID: 22343118
if performance counts, a different machine is the better solution
if you want single point of failture, one machine is the better solution (where you have to ask yourself if your jboss/tomcat is of any value as long as the apache in fron is off, or the other way around:)
if security counts, a different machine should be prefered 'cause of application isolation
0

Featured Post

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question