python - Apache crashes on segmentation fault using mod_wsgi large xml files -
i'm getting segmentation fault in apache, causing restart automatically. setup follows:
- server wsgi application generated using python spyne (currently running on localhost)
- soap call done wpf application (.net)
using apache 2.4 on windows, configuration mod_wsgi follows:
loadmodule wsgi_module modules/mod_wsgi.so
wsgiscriptalias /wsgi "c:/...etc...pythonservice.py"
wsgipythonpath "c:/...etc..."
wsgiapplicationgroup %{global}
directory "c:/...etc..."
order deny,allow allow
/directory
i think problem might default 10mb size limit on xml nodes (libxml2), can't find solution problem particular set-up.
after switch visual studio 2013, got different error message, namely contextswitchdeadlock. answer solved problem:
https://stackoverflow.com/a/612787/4685789
during loading of large dataset, after every 1000th item called system.threading.thread.currentthread.join(10) make sure application keeps pumping messages.
Comments
Post a Comment