Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-14-2003, 08:03 PM   #1
LQ Newbie
Registered: Mar 2003
Location: India
Distribution: RedHat, Mandrake
Posts: 11

Rep: Reputation: 0
Exclamation Apache Tomcat web Server hardware config

I am in the process of designing a high availability system using Apache , Tomcat and MySQL. Of course the OS is Linux

There will be one Apache server serviced by two Tomcat servers. MySQl will be installed on each Tomcat server with replication enabled. This is a production system to which almost 1000 users will be connecting simultaneously.

This would mean the http request will be with processed by
[Browser] ---> [Apache] -----------> [Tomcat1+MySQL1]
[Browser] ---> [Apache] -----------> [Tomcat2+MySQL2]

I am not sure what kind of server configuration I should have for these servers. Should the server have single CPU or multiple CPUs ? How much of an advantage does having multiple CPU server offer to the web server as compared to one with a single CPU.
How much RAM and Hard Disk should they have. Does anyone know how much memory is consumed by Apache-Tomcat in order to maintain a http session.

I have been able to find some documentation regarding this but it comprehensive enough. There is quite a bit of generalization and most give a general purpose server setup.
Also for the memory requirements people suggest using 'ps' to find the utilization by a httpd/tomcat process and proportionally calculate the total memory requirement.


Last edited by homyarb; 04-14-2003 at 08:16 PM.
Old 04-15-2003, 08:12 AM   #2
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
I can't tell you specifics about Apache Tomcat as I've had no expeience with it. Although as far as the hardware goes...

If you want to support a lot of simultaneous sessions then it'll be worth you investiging in a multiple processor machine as they behave much better under load simply because you can execute processes in parallel. It's worth getting as much RAM as you can, the exact amount needed will be dependent on what you're going to be running on Tomcat. Your code will probably use more memory than anything else so this is something you'll need to work out by running your code and seeing what resources it uses.

The same argument will apply to disk space, although if you are looking at a large server you'll want to invest in a decent set on disks on a nice RAID so you don't end up with your disk IO being your bottle neck.

Are the two servers going to be mirroring one another with load balancing or are they going to be seperate? What speed will your connection to the web be? There is no point in specing up a monster server then putting it on the end of 1MB connection!


Old 04-16-2003, 12:36 AM   #3
LQ Newbie
Registered: Mar 2003
Location: India
Distribution: RedHat, Mandrake
Posts: 11

Original Poster
Rep: Reputation: 0
Apache will be the one doing the load balancing and the failover.
But I have got a good idea of what is required. Thanks a lot.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Tomcat server error?? mlhammer Linux - Software 0 07-31-2004 11:20 PM
tomcat 5 implimentation on apache httpd server srikz Red Hat 0 07-22-2004 02:00 AM
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 12:03 PM
New Web Applications to Apache-Tomcat Web sarathmohan Linux - Software 0 10-02-2003 02:59 AM
How to map apache to tomcat server? gogo Linux - Software 10 07-15-2002 09:08 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:27 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration