Actions
Bug #251
closedMemory leak in 1.4.3
Status:
Fixed
Priority:
Normal
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:
Description
Attached will be a valgrind log of lighttpd 1.4.3 memory leanking on a server.
BTW, there is no 1.4.3 version to choose from in trac (yet).
-- matthias
Files
Updated by jan about 19 years ago
- Status changed from New to Assigned
Please replace hashme() in stat_cache.c with this function and check if it solves the problem for you.
static uint32_t hashme(buffer *str) { uint32_t hash = 0; const char *s; for (s = str->ptr; *s; s++) { hash = hash * 53 + *s; } hash &= ~(1 << 31); /* strip the highest bit */ return hash; }
Updated by Anonymous about 19 years ago
Forgot to set my email in the previous note...
-- bgs
Updated by Anonymous about 19 years ago
There is quite a bit of improvement. But on a server which is getting 700 req/s the memory used increased very quickly to about 30MB, has now mostly stabilised, but still keeps growing by about 100k every few seconds. Still, much, much better.
-- matthias
Updated by jan about 19 years ago
- Status changed from Assigned to Fixed
- Resolution set to fixed
fixed in r702
Actions
Also available in: Atom