Graham Dumpleton wrote:

>
> On Oct 5, 2:40 am, Omry Yadan <[EMAIL PROTECTED]> wrote:
>   
>>>> IWSGIDaemonProcess firestats.cc user=omry group=omry threads=25
>>>> maximum-requests=100
>>>>         
>>> I would use more than 100 requests for maximum-requests unless the
>>> memory leaks in your application are quite bad. Value of 1000 would be
>>> more reasonable.
>>>       
>> I have a problem apache workers running out due to trac  misbehavior.
>> if anything, I will reduce this number to something that will not take
>> down the entire apache server whenever trac is acting up.
>>     
>
> What database adapter are you using? If using an older version of it
> than newest available, make sure you update it. Old versions of
> psycopg2 have problems.
>   
I am using sqlite 3.3.8  with python-pysqlite2 2.3.2

>>> Other than that, looks perhaps that database requests may be hanging.
>>> You possibly need to attach gdb to stuck process and look at stack
>>> traces to see if stuck in third party C extension module such as a
>>> database module. See:
>>>       
>>>  http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Debugging_C...
>>>       
>>> for pointers on how to do that.
>>>       
>> This link is about debugging apache crashes.
>> my apache does not crash, instead if stop responding to any requests
>> because all the workers are busy with trac.
>> so I don't think this will be helpful.
>>     
>
> Yes it would be helpful. When you attach the debugger to running
> process instance it will suspend all theads and you get then get a
> stack trace for all to see where each is stuck. If stuck in a C
> extension module such as a database adapter it will show you were in C
> functions it is stuck. This can help in debugging problem.
>   
Can you please provide specific instructions on how to extract the stack
trace?
I know it's in the link, but next time it happens, I want to extract the
info as soon as possible and restart apache (trac is not the only site
on that apache).
don't want to start toying around with gdb while the site is down if I
don't know exactly what to do.





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" 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/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to