The output from 'ab' says: Failed requests: 683 (Connect: 0, Receive: 0, Length: 683, Exceptions: 0)
As 'ab' expects the page response content to be identical for all requests against the same URL, it is failing it based on length of response content. That you are seeing that, would suggest to be that you might not be hitting the correct URL and instead are hitting some error page or something else which has varying content in the response, such as a data/time field if an error page. Would suggest you add 'print' statements in script to confirm that it is being executed and verify same URL from browser. Also try 'ab' with concurrency level of 1 to ensure serialised and not hitting some Apache concurrent request limit. Graham On 14 September 2011 06:55, gardsted <[email protected]> wrote: > t first my website went fishy (cherrypy+storm+genshi) running on wsgi > and sometimes didn't answer, so I converted it into a static one and > subsequently installed the application below for testing. > > I still get the same fishy results with the reference application: > > ----------------------------------------------------------- > def application(environ, start_response): > status = '200 OK' > output = 'Hello World!' > > response_headers = [('Content-type', 'text/plain'), > ('Content-Length', str(len(output)))] > start_response(status, response_headers) > > return [output] > > ----------------------------------------------------------- > > Can You see if there is anything wrong with the environment (attached > below) or give me a hint as to what to look for. > > I am running on servage.net shared hosting > > Output of: ab -n 1000 -c 10 wsgi.barskdata.net/app1 > ------------------------------------------------------------ > > Server Software: Apache > Server Hostname: wsgi.barskdata.net > Server Port: 80 > > Document Path: /app1 > Document Length: 12 bytes > > Concurrency Level: 10 > Time taken for tests: 13.008 seconds > Complete requests: 1000 > Failed requests: 683 > (Connect: 0, Receive: 0, Length: 683, Exceptions: 0) > Write errors: 0 > Total transferred: 47233 bytes > HTML transferred: 3804 bytes > Requests per second: 76.88 [#/sec] (mean) > Time per request: 130.079 [ms] (mean) > Time per request: 13.008 [ms] (mean, across all concurrent > requests) > Transfer rate: 3.55 [Kbytes/sec] received > > ----------------------------------------------------------- > > the environment looks like this: > > DOCUMENT_ROOT: '/removed/barskdata.net/wsgi.barskdata.net' > GATEWAY_INTERFACE: 'CGI/1.1' > HOME: '/removed' > HTTP_ACCEPT: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/ > *;q=0.8' > HTTP_ACCEPT_CHARSET: 'ISO-8859-1,utf-8;q=0.7,*;q=0.7' > HTTP_ACCEPT_ENCODING: 'gzip, deflate' > HTTP_ACCEPT_LANGUAGE: 'en-us,en;q=0.5' > HTTP_CACHE_CONTROL: 'max-age=0' > HTTP_CONNECTION: 'keep-alive' > HTTP_COOKIE: '' > HTTP_HOST: 'wsgi.barskdata.net' > HTTP_USER_AGENT: 'Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/ > 20100101 Firefox/6.0.2' > PATH_INFO: '' > QUERY_STRING: '' > REMOTE_ADDR: 'removed' > REMOTE_PORT: '46274' > REQUEST_METHOD: 'GET' > REQUEST_URI: '/myenv' > SCRIPT_FILENAME: '/removed/barskdata.net/wsgi.barskdata.net/myenv' > SCRIPT_NAME: '/myenv' > SERVER_ADDR: '10.6.60.1' > SERVER_ADMIN: '[no address given]' > SERVER_NAME: 'wsgi.barskdata.net' > SERVER_PORT: '80' > SERVER_PROTOCOL: 'HTTP/1.1' > SERVER_SIGNATURE: '<address>Apache Server at wsgi.barskdata.net Port > 80</address>\n' > SERVER_SOFTWARE: 'Apache' > mod_wsgi.application_group: 'wsgi.barskdata.net|/myenv' > mod_wsgi.callable_object: 'application' > mod_wsgi.handler_script: '' > mod_wsgi.input_chunked: '0' > mod_wsgi.listener_host: '' > mod_wsgi.listener_port: '8078' > mod_wsgi.process_group: '' > mod_wsgi.request_handler: 'wsgi-script' > mod_wsgi.script_reloading: '1' > mod_wsgi.version: (3, 3) > wsgi.errors: <mod_wsgi.Log object at 0x4917f30> > wsgi.file_wrapper: <built-in method file_wrapper of mod_wsgi.Adapter > object at 0x49027b0> > wsgi.input: <mod_wsgi.Input object at 0x482d1b0> > wsgi.multiprocess: True > wsgi.multithread: False > wsgi.run_once: False > wsgi.url_scheme: 'http' > wsgi.version: (1, 1) > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/modwsgi?hl=en. > > -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
