-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
backup_faves.php runs out of memory #19
Comments
My thought is that 32 megabytes should be enough for anyone (to paraphrase Mr. Gates), but maybe that's not the case. My instinct was that there was a place where a good I'll try to poke some more tonight if I can find the leak, or if it's not a leak, figure out how to keep less stuff in memory at one time (which may just be the whole issue). |
I switched it fairly arbitrarily to 128M and it's been running beautifully. |
Yeah, this one puzzles me. The basic change is around the pre-bucketing of contact hashes in an array during the fetch from the Flickr API and then adding them one at a time. Previously they would be added as they were retrieved because the old set (of contacts) had already been purged from the database. That just doesn't seem like the kind of thing to make the memory requirements go all loopy. The only other notable change is the retry code for the Flickr API but, again, that just doesn't seem likely. Which leaves something squirrel-y happening in a while loop but I can't see it yet... |
My
memory_limit = 32M
(in/etc/php5/cli/php.ini
), what's yours?The text was updated successfully, but these errors were encountered: