One cannot tell anything from the information provided. Any issue, if it is
Apache and not your network, is likely going to be due to how Apache and
mod_wsgi is configured and you haven't offered any information about that.

Consider supplying details on the following:

1. The Apache MPM being used.
2. The Apache MPM settings used.
3. The value of MaxRequestsPerChild in Apache configuration.
4. Whether mod_wsgi daemon mode is being used and the corresponding
configuration.

Without at least those parts of your Apache configuration, are left
guessing.

Graham



On 21 March 2013 20:35, Jan Müller <[email protected]> wrote:

> Hi,
>
> I am working on a Gallery where I have am displaying about 30 Thumbnails
> (300x300, JPG). Since only logged in users should be able to see the
> Images, I am specifying a WSGI-Python script as img-src:
>
> <img src="image.py?id=5">
>
> It's working.. but it's incredible slow.
> I can watch every thumbnail how it's loaded and displayed line-by-line..
>
> To make sure it's not because of any Database checks, I simplified the
> image.py to  this:
>
>
> def application(environ, start_response):
>     status = '200 OK'
>
>     file = open('.....', 'r')
>     output = file.read()
>     file.close()
>
>     response_headers = [('Content-type', 'image/jpeg'),
>                         ('Content-Length', str(len(output)))]
>
>     start_response(status, response_headers)
>
>     return [output]
>
>
> Why is it so slow? And is there anything I can do about it?
>
> Cheers,
> Jan
>
> --
> You received this message because you are subscribed to the Google Groups
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/modwsgi?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to