[Solved] Debugging memory leak in lighttpd
Added by murugesh over 9 years ago
Hello,
We have lighttpd 1.4.29 running on linux 2.6.x.x. It appears to be there are some memory leaks in lighttpd.
Trying to find the right tool to debug leak, Valgrind and dmalloc seems suitable to debug memory leak.
Wanted to find out If there are other tools/techniques for debugging memory leak in lighttpd.
Please share your thoughts.
Thanks,
Murugesh.
Replies (3)
RE: Debugging memory leak in lighttpd - Added by darix over 9 years ago
lighttpd does not have a memory leak. What many people consider a memory leak is actually the normal buffering behavior of lighttpd.
- do not stream large responses from (fast)CGI apps through lighttpd. nor proxy them via http.
- use X-lighttpd-send-file for fastCGI apps.
- if you really need proxying, use haproxy.
RE: Debugging memory leak in lighttpd - Added by murugesh over 9 years ago
Thank you Darix, for the information.
I will experiment them and see If memory is better handled.
Regards,
Murugesh.
RE: [Solved] Debugging memory leak in lighttpd - Added by gstrauss about 8 years ago
lighttpd 1.4.40 and later limit lighttpd in-memory buffering, instead buffering large requests and responses in temporary files on disk.