Re: [modwsgi] Inconsistent crashes with "Truncated or oversized response headers"

2020-08-31 Thread Graham Dumpleton
There must be a core dump or segmentation fault message in main Apache error logs if the daemon process is crashing. One other remote possibility have seen with some third party libraries (C libraries, not so much Python wrappers), is that when they encounter an error, they call C library

[modwsgi] Inconsistent crashes with "Truncated or oversized response headers"

2020-08-31 Thread David White
Hello. I am running Apache 2.4.43 with mod_wsgi 4.71 compiled against Python 3.8.3 (all manually compiled, not part of the RHEL 8.1 distro). Apache MPM is "event". The application running in one of my virtual hosts will occasionally crash, but randomly. Repeating the same request

Re: [modwsgi] Inconsistent crashes with "Truncated or oversized response headers"

2020-08-31 Thread Graham Dumpleton
Look in the main Apache error log, not the virtual host, and you will probably find a message about a segmentation fault or other error. Where it is quite random like this, unless you can enable capture of the core dump file and can run a debugger (gdb) on that to get a stack trace, is going

Re: [modwsgi] Inconsistent crashes with "Truncated or oversized response headers"

2020-08-31 Thread Graham Dumpleton
> On 1 Sep 2020, at 7:06 am, David White wrote: > > Unfortunately the main Apache log shows nothing except normal > startup/shutdown messages. If the "sgm-prod" threads are being terminated > and restarted, they are leaving no indication of that in the main server > logs. > > The only

Re: [modwsgi] Inconsistent crashes with "Truncated or oversized response headers"

2020-08-31 Thread David White
Unfortunately the main Apache log shows nothing except normal startup/shutdown messages. If the "sgm-prod" threads are being terminated and restarted, they are leaving no indication of that in the main server logs. The only clue appears to be that the crashing occurs during more heavy

Re: [modwsgi] Inconsistent crashes with "Truncated or oversized response headers"

2020-08-31 Thread Graham Dumpleton
And another possibility is that your Linux OOM killer is killing the processes because they are using up too much memory. https://docs.memset.com/other/linux-s-oom-process-killer Apache is quite susceptible to being killed by it

Re: [modwsgi] Inconsistent crashes with "Truncated or oversized response headers"

2020-08-31 Thread David White
*> another cause can be that you are using an external system to trigger log file rotation * That is an inspired guess! I am in fact using "cronolog" to mange logfile rotation. I don't *think* it's the culprit, since it rotates only monthly and crashes can happen many times a day