Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a python WSGI application running under an ISAPI extension in IIS 7.5 on Windows Server 2008. I would like to increase the number of worker processes (which I know how to do) and reduce the number of threads per process (which I don't). I'm concerned that I may have too much contention for the GIL.

I have seen instructions such as these for modifying threads per process, but that setting doesn't seem to affect my application - my w3wp processes still show the same number of threads. I assume this is because that setting only affects ASP.NET applications, which this is not.

I'm aware that I could switch to a different python runtime such as stackless or twisted. Or a different host such as Apache. Or a different OS such as Linux. I can't afford those tasks right now, and am looking for some shorter-term tuning.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.