Jome,

On Aug 21, 2009, at 8:51 AM, Jome Akpoduado wrote:

Hi dane
I think what really fixed it were the lines I added to the directives
WSGIDaemonProcess wms user=www-data group=www-data processes=10 threads=1
And
WSGIProcessgroup wms



Right, because otherwise the default is likely threads > 1.

From the 'WSGIDaemonProcess' section at: 
http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives

threads=num

Defines the number of threads to be created to handle requests in each daemon process within the process group. If this option is not defined then the default will be to create 15 threads in each daemon process within the process group.

Although to be exact, the impact of changing the defaults by explicitly using the WSGIDaemonProcess line will differ depending on whether the Apache server is 'Pre-fork' or 'Worker'. By setting it you essentially are able to control the behavior of processes and threads such that the type of Apache deployment does not have an impact. For a detailed explanation of this see:

http://code.google.com/p/modwsgi/wiki/ProcessesAndThreading

Take home:

1) ALWAYS use the setting 'WSGIDaemonProcess' and until #3 is solved always set threads=1 while processes=<anything you'd like>
2) Mod_wsgi is incredibly cool when used right.
3) Some threading issue or bug in lxml or the ogcserver requires some attention because it should be able to be used in a multi-threaded mode

When I set the processes to 1, it worked. So I decided to try for 10, and it still worked
I installed python-lxml using apt-get.


great.

dane


_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to