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
4 days 13 hours ago
4 days 14 hours ago
10 weeks 3 days ago
10 weeks 3 days ago
10 weeks 3 days ago
10 weeks 4 days ago
34 weeks 5 days ago
41 weeks 2 days ago
1 year 3 weeks ago
1 year 9 weeks ago