Truncated or oversized response headers received from daemon process
Hi,
I'm working in django project using apache2 in centos , django 3.2.25 and mod_wsgi 5.0.0. while processing large files with pandas and numpy, i encounter the following error in error.log file "Truncated or oversized response headers received from daemon process ". and entire server becomes unresponsive, returning a 408 "Request timeout" error.
WSGIDaemonProcess site1 python-path=<production_python_path> home=<production_python_path> processes=3 threads=10 request-timeout=2400 WSGIProcessGroup site1 WSGIScriptAlias /site1 <production_python_wsgi_file_path> TimeOut 2400 WSGIApplicationGroup %{GLOBAL}
Please help me to sort out this issue.
Thanks in advace
What version of Python are you using?
I also need to see the actual log messages from around the time this occurs. If you are using per virtual host log files in Apache, also check the main Apache error log for messages related to process restarts.
You may need to set LogLevel in Apache to info, if you only have it set to warn, to get the log messages I would need to see to debug the underlying trigger for this.