I have previously started to instrument mod_wsgi to capture details about thread utilisation, but since there wasn't any real way of presenting that information in a useable form, discontinued that effort and ripped the code out. It will likely go back in at some point this year as additional information to feed into monitoring tools, hooks for which I am working on in my new job. The information will likely come through in WSGI environment so could be utilised by something else if you implement the means to collate it.
Graham On 12 January 2011 01:30, Andrew <[email protected]> wrote: > Thanks for your fast response, Graham. :) > > I understand this isn't part of the WSGI spec; this is purely for > health monitoring, and isn't essential to the application. We'd like > to be able to see how many process/threads are being used for the > application, which could then be monitored by Nagios. > > Andrew > > On Jan 10, 5:16 pm, Graham Dumpleton <[email protected]> > wrote: >> On 11 January 2011 06:30, Andrew <[email protected]> wrote: >> >> > Paster provides you with Threadpool object >> >> > 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool >> > object at 0x1dc55d0> >> >> > This contains stats about the number of thread sin the pool, etc.. Is >> > there a way to get similar information from mod_wsgi? >> >> The only information available at present is that mandated by the WSGI >> specification, namely the wsgi.multiprocess, wsgi.multithread and >> wsgi.run_once indicators on the WSGI environment dictionary. >> >> See: >> >> http://code.google.com/p/modwsgi/wiki/ProcessesAndThreading >> >> What is it you require it for? >> >> Graham > > -- > 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.
