PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.php > Stress testing tool?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Stress testing tool?

Réponse
 
LinkBack Outils de la discussion
Vieux 09/11/2007, 18h12   #1
FFMG
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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).

  Réponse avec citation
Vieux 09/11/2007, 18h27   #2
Rik Wasmus
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Stress testing tool?

On Fri, 09 Nov 2007 19:12:54 +0100, FFMG <FFMG.2zsmen@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
  Réponse avec citation
Vieux 09/11/2007, 18h48   #3
NC
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Stress testing tool?

On Nov 9, 10:12 am, FFMG <FFMG.2zs...@no-mx.httppoint.com> wrote:
>
> 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

  Réponse avec citation
Vieux 10/11/2007, 11h35   #4
C. (http://symcbean.blogspot.com/)
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Stress testing tool?

On 9 Nov, 18:48, NC <n...@iname.com> wrote:
> On Nov 9, 10:12 am, FFMG <FFMG.2zs...@no-mx.httppoint.com> wrote:
>
>
>
> > 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 ful in narrowing down the problem.

C.

  Réponse avec citation
Vieux 10/11/2007, 14h12   #5
FFMG
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Stress testing tool?


C. (On 9 Nov, 18:48, NC
> <n...@iname.com> wrote:
> > On Nov 9, 10:12 am, FFMG <FFMG.2zs...@no-mx.httppoint.com> wrote:
> >
> >
> >
> > > 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 ful 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).

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 00h31.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14963 seconds with 13 queries