Memory leak
Submitted by pezia on Wed, 2010-03-24 14:38.
| Project: | phpAlbum.net |
| Version: | 0.4.1-14_fix06 |
| Component: | Code |
| Category: | bug |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | new |
Description
We have a fairly large amount of images (27G, 12631 files). Using the scan directory (or worse, the automated scanning runs once per day) the memory is leaking and php runs out of memory.
I have a guess for the leaking:
The database queries always use create_function for the where and order by clauses. This way it creates an enormous amount of functions that fill up the memory (ref.: http://bugs.php.net/bug.php?id=6333).
I gave a shot implementing some caching, but most of the orders, sets and wheres are unique, so it did not make much sense.
Edit:
PHP Version 5.2.6-1+lenny4

Recent comments
2 hours 20 sec ago
13 hours 58 min ago
13 hours 59 min ago
13 hours 59 min ago
13 hours 59 min ago
1 day 4 hours ago
1 day 8 hours ago
1 day 21 hours ago
2 days 5 hours ago
2 days 7 hours ago