Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 96 by tru64ufs: prefix structure memory leak
http://code.google.com/p/memcached/issues/detail?id=96
What steps will reproduce the problem?
1. memcached -D: -m 10
2. keep insert unique keys with no prefix :
3. watch resident set size of memcached process, it keeps growing without
stopping
What is the expected output? What do you see instead?
RSS should stabilize at some point (maybe 10MB + 10%)
What version of the product are you using? On what operating system?
memcached 1.4.1, Linux CentOS 5.3
Please provide any additional information below.
settings.detail_enabled = 1;
causes calls to stats_prefix_record_*()
these calls stats_prefix_find() which calloc() and malloc() PREFIX_STATS
structures if not found.
Since we are keep inserting unique keys, memcached keeps calloc/malloc
these structures.
The only thing that frees all the memory is to call "STATS RESET"
But I think it is better for key structure to have a pointer to this
prefix_stats structures with refcount.
When a refcount goes zero, you can free these structures.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings