apache bench broken in 1.7.3

Problems with the Windows version of XAMPP, questions, comments, and anything related.

apache bench broken in 1.7.3

Postby mindplay » 21. April 2010 16:45

It appears that ab.exe in the Windows distribution of XAMPP is broken (?)

Code: Select all
C:\xampp\apache\bin>ab -n 20 -c 5 http://www.google.com
ab: invalid URL
Usage: ab [options] [http://]hostname[:port]/path
Options are:
    -n requests     Number of requests to perform
    -c concurrency  Number of multiple requests to make
    -t timelimit    Seconds to max. wait for responses
...


I've used apache bench extensively in the past, and don't recall ever running into this problem.

Tried a bunch of different URLs, and nothing seems to work...

Is it broken in this distribution?
mindplay
 
Posts: 2
Joined: 21. April 2010 16:42

Re: apache bench broken in 1.7.3

Postby Narrowboyy » 21. April 2010 23:04

mindplay wrote:It appears that ab.exe in the Windows distribution of XAMPP is broken (?)
No, it's fine.

ApacheBench wrote:ab: invalid URL
Usage: ab [options] [http://]hostname[:port]/path


Try a correct URL including [options] and the /path:
ab -n 20 -c 5 http://www.google.com/
ApacheBench wrote:C:\xampp\apache\bin>ab -n 20 -c 5 http://www.google.com/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking google.com (be patient).....done

Server Software: gws
Server Hostname: google.com
Server Port: 80

Document Path: /
Document Length: 219 bytes
...


Or without [Options]
ab google.com/
ApacheBench wrote:C:\xampp\apache\bin>ab google.com/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking google.com (be patient).....done

Server Software: gws
Server Hostname: google.com
Server Port: 80

Document Path: /
Document Length: 219 bytes
...
Narrowboyy
 
Posts: 64
Joined: 16. February 2009 02:56


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 91 guests

cron