LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-13-2010, 10:56 AM   #1
naruponk
LQ Newbie
 
Registered: Feb 2009
Posts: 27

Rep: Reputation: 15
Exclamation httpd vs tomcat in dynamic content ?


Hi,

I'm developing some small application runs on tomcat 6
This web application just query data from MySQL

But I'm concern about performance
How can I check how many request It can serve as well ?

I'm thinking about to change the application to runs on httpd (will write in PHP)

Normally, how many request httpd can handle for simple database query ?
Can anyone please compare an advantage or disadvantage of httpd and tomcat ?
 
Old 01-13-2010, 02:15 PM   #2
MBybee
Member
 
Registered: Jan 2009
Location: wherever I can make a living
Distribution: PC-BSD / FreeBSD / Debian / Ubuntu / Win7 / OpenVMS
Posts: 440

Rep: Reputation: 57
I have done some analysis on that for a project where I work, and Apache vs Tomcat shows that it really depends on the specific data you are using.

Apache was generally faster in my case, though it ranged from a little bit to like 10% of the time used by Tomcat. This may not scale in your case, since I was dealing with MaxDB and 10,000 plus users.

Generally speaking, MySQL will choke on concurrent requests faster than Apache will. I'll go find my test results and post them for you.
 
Old 01-13-2010, 02:56 PM   #3
MBybee
Member
 
Registered: Jan 2009
Location: wherever I can make a living
Distribution: PC-BSD / FreeBSD / Debian / Ubuntu / Win7 / OpenVMS
Posts: 440

Rep: Reputation: 57
Unfortunately, I am unable to find the actual tests I did, just an email with a table from the results spreadsheet.

This doesn't pass my definition of rigor, so I'll set up some new tests
Like I said previously though - it can range hugely in favor of one or the other based on a ton of factors. The best thing to do is always to test yourself, at your shop, with your setup.
 
Old 01-13-2010, 08:06 PM   #4
naruponk
LQ Newbie
 
Registered: Feb 2009
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks for your reply,

How can I test my self assuming 10,000 users to use my server ?
 
Old 01-13-2010, 09:38 PM   #5
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,275

Rep: Reputation: 148Reputation: 148
I have used apache benchmarking tool (ab) for webserver stress testing on my previous work environment, hope you can do the test with ab to any webserver
http://httpd.apache.org/docs/2.0/programs/ab.html

Ex:-
#/usr/local/apache/bin/ab -n 1000000 -c 100 http://192.168.1.14/loadtest_mysql.php

n - number of requests
c - concurrency, it means ab will send n number of requests at a time, so we can say n number of users access a particular url at a time

Last edited by kirukan; 01-13-2010 at 09:42 PM.
 
Old 01-14-2010, 01:24 AM   #6
naruponk
LQ Newbie
 
Registered: Feb 2009
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks guys
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
httpd + tomcat nkutty Linux - General 2 10-17-2008 02:22 PM
LXer: Dynamic Content - Introduction II LXer Syndicated Linux News 0 08-28-2008 12:20 AM
putting dynamic content on desktop spx2 Linux - Newbie 4 12-13-2005 09:12 AM
I have my httpd server up, but how do I edit its content? babyboss Slackware 10 10-02-2004 04:01 AM
PHP - dynamic content jacksmash Programming 11 11-25-2003 03:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:25 PM.

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