Solved

Best pracitce with apache www + jboss/tomcat

Posted on 2008-06-12
5
844 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
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Hosting a website using port 443 SSL CA using Wampserver 2 How to: 6 33
Website being blocked? 3 123
PHP Upload using Uploadify 4 71
Stream live video from Raspberry Pi camera 22 117
If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
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.…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

863 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now