Dev Shed Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDev Shed Lounge

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old February 23rd, 2002, 05:54 AM
how-do-i how-do-i is offline
aooooooodaaa
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Location: at a pc near you
Posts: 32 how-do-i User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Question server load testing

hello,
I made a message board and i want to check how it handles loads.. now i don't know many people who'll be willing to login in and perform stuff on it all the time so i want to know if there's any other way i can simulate a heavy usage environment.. is there any way i can test the database and my scripts??? i'm using mysql at the backend with php at the front...
i thought of writing scripts which can perhaps simulate users but that means that my server and clients are running on the same machine and that really wouldn't give a correct picture of how the server is taking the load..
any help will be appreciated

cheers

p.s. pasted this earlier in algorithms
__________________
it's electric baaaabbbbbbyyyyyy!!!

Reply With Quote
  #2  
Old February 23rd, 2002, 01:57 PM
freud freud is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: Germany - Aachen
Posts: 12 freud User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to freud
Try to use Apache Bench located in the /bin directory of your apache folder.

Anonther Tool which has to be good, I could not test it myself yet ist Stress Test by Microsoft, may not be the exact name. Search the microsoft site and you will find it. It was designed for asp but I read it works with php too.

P.S.: length errors on ab ( apachebench ) occure if the returned content differs in length - so if something changes on your page each time ( banner roation or a static clock ) ignore this error (this took me a few hours to find out ).

Reply With Quote
  #3  
Old February 23rd, 2002, 07:13 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
Quote:
but that means that my server and clients are running on the same machine and that really wouldn't give a correct picture of how the server is taking the load..

run your load-test scripts on another machine???

Reply With Quote
  #4  
Old February 23rd, 2002, 08:19 PM
TommyWillB's Avatar
TommyWillB TommyWillB is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Location: ol' Gay S.F.
Posts: 94 TommyWillB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 m 39 sec
Reputation Power: 7
I'm not understanding the ab man page...

Can somone show me the simplest use of this command?
__________________
TommyWillB
Apple Power Mac G4 867mhz, 1GB RAM nVIDIA geforce 2 (TwinView) Apple Studio 17" flat screen + Compaq 17" 2x60GB ATA drives
jeffntom.com hosted on Mac OS X 10.3.4 / Apache 1.3.29 / PHP 4.3.2

Reply With Quote
  #5  
Old February 23rd, 2002, 09:55 PM
Hero Zzyzzx's Avatar
Hero Zzyzzx Hero Zzyzzx is offline
11
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jul 2001
Location: Lynn, MA
Posts: 4,632 Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 23 h 12 m 33 sec
Reputation Power: 76
Send a message via AIM to Hero Zzyzzx
Code:
ab -n200 -c50 "http://www.domain.com/cgi-bin/script.pl?param1=blah&param2=blahblah"


will hammer the domain for 200 requests with 50 concurrent connections. Beware, though, this is a pretty resource intensive thing to do to your server.

Reply With Quote
  #6  
Old February 24th, 2002, 12:58 PM
TommyWillB's Avatar
TommyWillB TommyWillB is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Location: ol' Gay S.F.
Posts: 94 TommyWillB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 m 39 sec
Reputation Power: 7
Perfect!

I was simply missing the quotes around the URL.

Thanks a lot.

Next I'll have to figure out the best way to dump this to something like a flat .csv.

The other cool thing, even though this is ApacheBench, it does not have any trouble hitting any site regardless of Web server.

Last edited by TommyWillB : February 24th, 2002 at 01:01 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDev Shed Lounge > server load testing


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway