[ERROR]Allowed memory size (bytes exhausted)
-
I am trying to get an automatic backup to schedule on a weekly basis, to backup my database and files.
The filesize is 260MB and I keep getting the following error in my logs:
2011/08/03 21:18.54: [ERROR]Allowed memory size of 268435456 bytes exhausted (tried to allocate 261467347 bytes)
Does anyone know what I need to modify to get it to work? The files are supposed to go to my Dropbox account.
Do I need to modify something in my php.ini or .htaccess files?
-
i have something similar. for some reason the creation of the zip file works, but uploading the (180mb file) to dropbox somehow fails:
2011/08/07 00:18.42: 1. Versuche Datensicherungsdatei zur Dropbox zu senden ... 2011/08/07 00:18.43: Authentifiziert mit Dropbox von XYZ 2011/08/07 00:18.43: 7.49 GB frei in der Dropbox 2011/08/07 00:18.43: Hochladen zur Dropbox hat begonnen ... 2011/08/07 00:18.43: Speicher(limit) erhöht von 128M auf 128M 2011/08/07 00:18.43: [ERROR]Allowed memory size of 134217728 bytes exhausted (tried to allocate 181070353 bytes) 2011/08/07 00:18.43: 1. Skript-Stop! Wird jetzt wieder neu gestartet!
why does the dropbox upload needs that much time. is it possible to call the upload from a different script to save memory? or maybe split big zip files during upload?
cheers!
I’ve even tried adding this to the top of wp-config.php
define('WP_MEMORY_LIMIT', '300M');
I’ve also uploaded the following php.ini file to my WP root aswell as inside wp-admin:
memory_limit = 300M
But I just keep getting the following error messages:
Memory increased from 256M to 256M
2011/08/15 13:22.32: [ERROR]Allowed memory size of 268435456 bytes exhausted (tried to allocate 261352890 bytes)I really don’t get why it tries to increase the memory limit to 256M (from 256M!?)
Hello,
I am also getting this error trying to backup all files to Dropbox. The backup file DOES arrive at Dropbox, however an error is still present.
I do not have any errors backing up to the server when I run a non-Dropbox backup.
Any help/a solution would be greatly appreciated. The backup file size was around 125mb. Here’s the log:
2011/08/30 17:19.50: [INFO]: BackWPup version 2.1.4, WordPress version 3.2.1 Copyright © 2011 Daniel Hüsken 2011/08/30 17:19.50: [INFO]: BackWPup comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. 2011/08/30 17:19.50: [INFO]: BackWPup job: 3. Files Only (Weekly); FILE 2011/08/30 17:19.50: [INFO]: BackWPup cron: 0 5 * * 0; Sun, 4 Sep 2011 @ 05:00 2011/08/30 17:19.50: [INFO]: BackWPup job strated manualy 2011/08/30 17:19.50: [INFO]: PHP ver.: 5.2.16; cgi-fcgi; Linux 2011/08/30 17:19.50: [INFO]: MySQL ver.: 5.1.56 2011/08/30 17:19.50: [INFO]: curl ver.: 7.21.0; OpenSSL/0.9.8b 2011/08/30 17:19.50: [INFO]: Temp folder is: /tmp/.backwpup_2914660242/ 2011/08/30 17:19.50: [INFO]: Backup file is: /home/geoffsha/backups/geoffshaw.com.au_files_weekly_2011-08-30_17-19-50.zip 2011/08/30 17:19.50: 1. try for make list of files to backup.... 2011/08/30 17:19.51: 2488 files with 141.75 MB to backup 2011/08/30 17:19.51: 1. try to create backup zip (PclZip) archive... 2011/08/30 17:20.01: Backup zip archive create done 2011/08/30 17:20.01: Archive size is 125.09 MB 2011/08/30 17:20.01: 1. Try to sending backup file to DropBox... 2011/08/30 17:20.02: Authed with DropBox from Steve Holland 2011/08/30 17:20.02: 48.08 GB free on DropBox 2011/08/30 17:20.02: Upload to DropBox now started... 2011/08/30 17:20.02: Memory increased from 256M to 256M 2011/08/30 17:20.02: [ERROR]Allowed memory size of 268435456 bytes exhausted (tried to allocate 131165517 bytes) 2011/08/30 17:20.02: 1. Script stop! Will started again now! 2011/08/30 17:20.02: 2. Try to sending backup file to DropBox... 2011/08/30 17:20.03: Authed with DropBox from Steve Holland 2011/08/30 17:20.03: 48.08 GB free on DropBox 2011/08/30 17:20.03: Upload to DropBox now started... 2011/08/30 17:20.03: Memory increased from 256M to 256M
As you can see it appears to be a memory issue, however I can tell you it would definitely not require more than 256mb of memory just to transfer a file to Dropbox…
About 5 minutes later I then get an email error once the file has arrived within Dropbox.
Any ideas?
Okay, I just tried it again and this time selected Tar Gzip instead of just ZIP and did not get the error.
2011/08/30 17:53.00: [INFO]: BackWPup version 2.1.4, WordPress version 3.2.1 Copyright © 2011 Daniel Hüsken 2011/08/30 17:53.00: [INFO]: BackWPup comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. 2011/08/30 17:53.00: [INFO]: BackWPup job: 4. Files Only (Weekly); FILE 2011/08/30 17:53.00: [INFO]: BackWPup cron: 0 5 * * 0; Sun, 4 Sep 2011 @ 05:00 2011/08/30 17:53.00: [INFO]: BackWPup job strated manualy 2011/08/30 17:53.00: [INFO]: PHP ver.: 5.2.16; cgi-fcgi; Linux 2011/08/30 17:53.00: [INFO]: MySQL ver.: 5.1.56 2011/08/30 17:53.00: [INFO]: curl ver.: 7.21.0; OpenSSL/0.9.8b 2011/08/30 17:53.00: [INFO]: Temp folder is: /tmp/.backwpup_2914660242/ 2011/08/30 17:53.00: [INFO]: Backup file is: /home/geoffsha/backups/geoffshaw.com.au_db_weekly_2011-08-30_17-53-00.tar.gz 2011/08/30 17:53.00: 1. try for make list of files to backup.... 2011/08/30 17:53.01: 2489 files with 141.75 MB to backup 2011/08/30 17:53.01: 1. try to create tar.gz archive file... 2011/08/30 17:53.16: tar.gz archive creation done 2011/08/30 17:53.16: Archive size is 124.01 MB 2011/08/30 17:53.16: 1. Try to sending backup file to DropBox... 2011/08/30 17:53.17: Authed with DropBox from Steve Holland 2011/08/30 17:53.17: 47.96 GB free on DropBox 2011/08/30 17:53.17: Upload to DropBox now started... 2011/08/30 17:53.17: Memory increased from 256M to 256M
Weird…
- The topic ‘[ERROR]Allowed memory size (bytes exhausted)’ is closed to new replies.