473,414 Members | 1,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Stress testing tool?


Hi,

I want to stress test my dev box to see where the bottle necks in my
script might be.

I don't really need to test MySQL or Apache, (I have no doubt they are
working fine), but rather want to test what scripts might be slow under
stress.

I am developing on a windows machine but will be running the site on a
*nix machine.

Can you suggest any tool(s) that would have a few hundred anonymous
users clicking various links and give me a valuable report.

Thanks

FFMG
--

'webmaster forum' (http://www.httppoint.com) | 'Free Blogs'
(http://www.journalhome.com/) | 'webmaster Directory'
(http://www.webhostshunter.com/)
'Recreation Vehicle insurance'
(http://www.insurance-owl.com/other/car_rec.php) | 'Free URL
redirection service' (http://urlkick.com/)
------------------------------------------------------------------------
FFMG's Profile: http://www.httppoint.com/member.php?userid=580
View this thread: http://www.httppoint.com/showthread.php?t=22045

Message Posted via the webmaster forum http://www.httppoint.com, (Ad revenue sharing).

Nov 9 '07 #1
4 3939
On Fri, 09 Nov 2007 19:12:54 +0100, FFMG <FF*********@no-mx.httppoint.com>
wrote:
I want to stress test my dev box to see where the bottle necks in my
script might be.
Profile generated with the xdebug extention?
I don't really need to test MySQL or Apache, (I have no doubt they are
working fine), but rather want to test what scripts might be slow under
stress.

I am developing on a windows machine but will be running the site on a
*nix machine.

Can you suggest any tool(s) that would have a few hundred anonymous
users clicking various links and give me a valuable report.
With a reasonable profile in xdebug you don't need 'hundreds of users'.
However, apply a standard apache stresstest to (some of you) PHP pages,
and profile them using xdebug might yield a more realistic result _for
that server_. Running something like this on your windows development
server might tell you which portions of the code take longest, that's
about it. For a reliable report on how your live server will actually
handle it you should run it on a comparable server with identical settings
and builds.
--
Rik Wasmus
Nov 9 '07 #2
NC
On Nov 9, 10:12 am, FFMG <FFMG.2zs...@no-mx.httppoint.comwrote:
>
I want to stress test my dev box to see where the bottle
necks in my script might be.
Finding bottlenecks is usually called profiling, and it's a process
different from stress testing. There are many PHP profiling tools,
here are a few I can think of off the top of my head:

Advanced PHP Debugger: http://pear.php.net/apd
Benchmark: http://pear.php.net/benchmark
DBG: http://dd.cron.ru/dbg
Xdebug: http://xdebug.derickrethans.nl/

Additionally, if you have a professional-grade PHP IDE, it may have
built-in profiling capabilities (if memory serves, both Zend IDE and
NuSphere phpEd have built-in profilers).
I am developing on a windows machine but will be running
the site on a *nix machine.
So why do you want to stress-test the development machine then?
Can you suggest any tool(s) that would have a few hundred anonymous
users clicking various links and give me a valuable report.
There is a benchmarking utility called ab that comes with Apache:

http://httpd.apache.org/docs/2.0/programs/ab.html

Cheers,
NC

Nov 9 '07 #3
On 9 Nov, 18:48, NC <n...@iname.comwrote:
On Nov 9, 10:12 am, FFMG <FFMG.2zs...@no-mx.httppoint.comwrote:
I want to stress test my dev box to see where the bottle
necks in my script might be.

Finding bottlenecks is usually called profiling, and it's a process
different from stress testing. There are many PHP profiling tools,
here are a few I can think of off the top of my head:
Which is true, but I suspect the OP doesn't even know which page is
slow - IIRC apache does not log turnaround times by default - but can
be configured to do so (see %T in http://httpd.apache.org/docs/1.3/mod...g.html#formats)

- also MySQL can be set up to log 'slow queries' - you specify what
threshold you want.

This may be helpful in narrowing down the problem.

C.

Nov 10 '07 #4

C. (On 9 Nov, 18:48, NC
<n...@iname.comwrote:
On Nov 9, 10:12 am, FFMG <FFMG.2zs...@no-mx.httppoint.comwrote:
I want to stress test my dev box to see where the bottle
necks in my script might be.
Finding bottlenecks is usually called profiling, and it's a process
different from stress testing. There are many PHP profiling tools,
here are a few I can think of off the top of my head:

Which is true, but I suspect the OP doesn't even know which page is
slow - IIRC apache does not log turnaround times by default - but can
be configured to do so (see %T in
http://httpd.apache.org/docs/1.3/mod...g.html#formats)

- also MySQL can be set up to log 'slow queries' - you specify what
threshold you want.

This may be helpful in narrowing down the problem.

C.
You suspect wrong.
None of my queries are slow and none of my pages are slow.

I just want to test for 'unexpected' behavior under stress, for example
if 500 users try to send me an email, can my email queuing class handle
it.
Are the queue handled in time.

Or, what might happen when 500 users want to download the same file.
Can my simple download counter handle it? does it store the correct
value?

FFMG
--

'webmaster forum' (http://www.httppoint.com) | 'Free Blogs'
(http://www.journalhome.com/) | 'webmaster Directory'
(http://www.webhostshunter.com/)
'Recreation Vehicle insurance'
(http://www.insurance-owl.com/other/car_rec.php) | 'Free URL
redirection service' (http://urlkick.com/)
------------------------------------------------------------------------
FFMG's Profile: http://www.httppoint.com/member.php?userid=580
View this thread: http://www.httppoint.com/showthread.php?t=22045

Message Posted via the webmaster forum http://www.httppoint.com, (Ad revenue sharing).

Nov 10 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Chuck | last post by:
Sorry for the advertisement but I think this is something that people could actually use. I am creating a new product called Simple Load Testing and I thought I would see if anyone would be...
4
by: martin carmichael | last post by:
Hello, I am wondering how aspnet developers do their web stress on ASPNET apps .. I would like to run mine with apache JMeter, a well-known open source tool. Unfortunately, it does not works...
7
by: cpnet | last post by:
I'm trying to stress-test some controls I've built in a sample web app using ACT. I'm now using IIS on my SBS 2k3 machine as my webserver for the test, and ACT is running on my XP Pro (sp1)...
3
by: Darkstar 3D | last post by:
If you want to stress test your Apache/PHP server just have a small little typo like this: $errCodes=range(910000,9100005); in your code instead of $errCodes=range(910000,910005); Some...
0
by: Anupa | last post by:
Hi, I am using WAS tool for Website Load testing. But even if i do the setting of say 20 users, and run the test, the number of Active Sessions which get recorded in the ASP.Net Applications...
1
by: Robert | last post by:
I am trying to figure out if using the Application Center Test is the preferred tool of performance / stress testing in an ASP.Net 2.0 application. I used ACT with my 1.1 applications, but was...
0
by: Phase 3 team | last post by:
Hi Can someone define in the WAS tool Concurrent connections - Stress Level (Threads) ? I am trying to test a healthy website which has the following: 2.5 mil hits a day, (concurrent...
1
by: ESmith | last post by:
I need to stress test an application I've developed - are there any libraries/classes that can do things such as limit RAM available, Disk Space, etc. to help determine the system limits? Since...
3
by: MacRules | last post by:
Found this testing tool, http://simpletest.sourceforge.net/ I am looking for PHP scripts which can be used as create many connections to a web server or MySQL back end for stress testing. ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.