RE: [PHP] sending a large number of connections at the same time
| From: | Jurian | Date: | Wed, 16 Aug 2000 13:00:35 +0000 |
| Subject: | RE: [PHP] sending a large number of connections at the same time | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11983@lists.php.net to get a copy of this message | ||
if you're using apache, check out "ab" in apache's bin directory :-)
./ab -n 100 -c 5 http://www.your.server/page
works great
Jurian
At 08:50 16-8-2000 -0400, Krznaric Michael wrote:
Well,I can't think of a way of doing this in a single process, maybemultithread but I'm not familiar with threads. I think you have to fork 100 processes each of which will open a connection to you localhost. Have you considered good old C? Mike -----Original Message----- From: Denis Bourdon [mailto:dbourdon@dbourdon.com] Sent: Wednesday, August 16, 2000 8:45 AM To: php-general@lists.php.net Subject: [PHP] sending a large number of connections at the same time Hello! I'd like to test the site I have created and I want to make 100 or so connections to my http://localhost. Making a 'for' loop with fopen("http://localhost","r") simulates 100 connections that are succesive and not simultaneous. Any idea? I thought of a shell script, but no idea to write it... And it's pretty urgent... Thanks! Den. -- Denis Bourdon - dbourdon@dbourdon.com Etudiant à Telecom Grenoble ENSIMAG/ENSERG site personnel: www.dbourdon.com webmaster de l'espace étudiants de Telecom Grenoble: www-telecoms.imag.fr/etudiants -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net