Bug PHP Fatal error: Allowed memory

Status
Not open for further replies.

webi

Customer
Hi Phillip,

I have the following error message in the error log file of my webserver.

Code:
2015/09/24 11:00:16 [error] 12165#12165: *13853714 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Allowed memory size of 163577856 bytes exhausted (tried to allocate 81 bytes) in /data/var/www/domain.com/html/dbtech/dbseo/includes/class_datastore.php on line 387" while reading response header from upstream, client: 1.2.3.4, server: www.domain.com, request: "GET /cron.php?rand=1443085207 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.www2.sock:", host: "www.domain.com", referrer: "http://www.domain.com/f721-bware-hk-540-hk-490-a/12484-server-verbindungsproblem-p3.html"
2015/09/24 11:10:13 [error] 12167#12167: *13860010 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Allowed memory size of 163577856 bytes exhausted (tried to allocate 84 bytes) in /data/var/www/domain.com/html/dbtech/dbseo/includes/class_datastore.php on line 387" while reading response header from upstream, client: 2.3.4.5, server: www.domain.com, request: "GET /cron.php?rand=1443085806 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.www2.sock:", host: "www.domain.com", referrer: "http://www.domain.com/f778-opennfr-spark-receiver/25024-usb-wlan-sticks-treiber-offline-usb-stick-hdd-installieren-nfr4xboot-multiboot.html"
2015/09/24 11:20:15 [error] 12159#12159: *13867047 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Allowed memory size of 163577856 bytes exhausted (tried to allocate 77 bytes) in /data/var/www/domain.com/html/dbtech/dbseo/includes/class_datastore.php on line 387" while reading response header from upstream, client: 3.4.5.6, server: www.domain.com, request: "GET /cron.php?rand=1443086406 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.www1.sock:", host: "www.domain.com", referrer: "http://www.domain.com/f196-vu-duo-2-a/34446-vu-duo2-gepairter-v14.html"
2015/09/24 11:30:16 [error] 12167#12167: *13873056 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Allowed memory size of 163577856 bytes exhausted (tried to allocate 83 bytes) in /data/var/www/domain.com/html/dbtech/dbseo/includes/class_datastore.php on line 387" while reading response header from upstream, client: 4.5.6.7, server: www.domain.com, request: "GET /cron.php?rand=1443087007 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.www1.sock:", host: "www.domain.com", referrer: "http://www.domain.com/f780-opticum-ax-serie.html"
2015/09/24 11:50:18 [error] 12173#12173: *13884460 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Allowed memory size of 163577856 bytes exhausted (tried to allocate 512 bytes) in /data/var/www/domain.com/html/dbtech/dbseo/includes/class_datastore.php on line 387" while reading response header from upstream, client: 5.6.7.8, server: www.domain.com, request: "GET /cron.php?rand=1443088210 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.www1.sock:", host: "www.domain.com", referrer: "http://www.domain.com/f704-sonstige.html"
2015/09/24 12:00:15 [error] 12162#12162: *13891115 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Allowed memory size of 163577856 bytes exhausted (tried to allocate 80 bytes) in /data/var/www/domain.com/html/dbtech/dbseo/includes/class_datastore.php on line 387" while reading response header from upstream, client: 6.7.8.9, server: www.domain.com, request: "GET /cron.php?rand=1443088808 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.www2.sock:", host: "www.domain.com", referrer: "http://www.domain.com/803-bware-hk-540-hk-490-a/download-6012-neues-sorglospaket-bware-hk540.html"
2015/09/24 12:10:20 [error] 12166#12166: *13897031 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Allowed memory size of 163577856 bytes exhausted (tried to allocate 254 bytes) in /data/var/www/domain.com/html/dbtech/dbseo/includes/class_datastore.php on line 387" while reading response header from upstream, client: 11.22.33.44, server: www.domain.com, request: "GET /cron.php?rand=1443089413 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.www2.sock:", host: "www.domain.com", referrer: "http://www.domain.com/340-iltv-clone-angepasste-satsonne-firmware-edision-argus-optimuss-underline/download-930-a.html"
2015/09/24 12:30:13 [error] 12173#12173: *13908801 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Allowed memory size of 163577856 bytes exhausted (tried to allocate 8 bytes) in /data/var/www/domain.com/html/dbtech/dbseo/includes/class_datastore.php on line 387" while reading response header from upstream, client: 22.33.44.55, server: www.domain.com, request: "GET /cron.php?rand=1443090605 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.www2.sock:", host: "www.domain.com", referrer: "http://www.domain.com/f331-giga-twin-cam-blue-green/16037-orf-key-giga-blue.html"
2015/09/24 12:40:18 [error] 12161#12161: *13914198 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Allowed memory size of 163577856 bytes exhausted (tried to allocate 81 bytes) in /data/var/www/domain.com/html/dbtech/dbseo/includes/class_datastore.php on line 387" while reading response header from upstream, client: 33.44.55.66, server: www.domain.com, request: "GET /cron.php?rand=1443091210 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.www1.sock:", host: "www.domain.com", referrer: "http://www.domain.com/f650-sl45-sl45-hdmi/35727-aktuelle-senderlisten-sl45-sf-stand-24-09-2015-a.html"

Best Regards
 
What are the steps to reproduce this issue?
In which I again adjusting "memory_limit = 4256M" back to "memory_limit = 156M".
The error will then be found in the server log every 10 minutes or when I start the cron manually in AdminCP.

Your AdminCP access is active if you want to you the look more closely.
 
I cannot replicate this issue by attempting to run the newsletter scheduled task manually.
 
I have now adjusted again 156M.
Currently only no newsletters are to be sent.
There always could be shipped on the first newsletters only about 20-30 emails.

newsletter.PNG

Best Regards
 
I'm not sure what exactly you mean, but that seems to be working correctly. The newsletter will attempt to send 250 emails at a time, when it detects users that are due to receive the newsletter.
 
We currently have a newsletter and shipping with a manual start you see the error message.
 
This is a problem with your XCache configuration. I have just installed an XCache Monitoring plugin and it has revealed the following stats: Cache full count: 108.950

This means that your 250 MB of XCache memory allocation is nowhere near enough to support everything you are trying to cache, and it's causing this problem.

Here is the recommended XCache configuration that works for us:
Code:
xcache.count = 8
xcache.var_count = 8
xcache.var_slots = 128K
xcache.var_size = 512M
xcache.var_ttl = 7200
xcache.var_maxttl = 14400
xcache.admin.enable_auth = "off"

Meanwhile, I have disabled XCache on your site and set vB Optimise to use Filecache, I can confirm this correctly sends out the newsletters.
 
XCache settings were adjusted and XCache was reactivated, but unfortunately the error occurs again.

xCache_Settings.PNG
 
In that case, you need to stop using XCache as it will not function correctly on your server. The problem is not in any of our modifications :)
 
Hello webi,

This ticket has now been closed with the status Not A Bug.

We hope your issue or question has been addressed to your satisfaction. If not, please feel free to re-open it by clicking this link.

If you have any further issues or questions, please feel free to start a new support ticket via the button at the top of every page.

Thank you!
 
Status
Not open for further replies.

Legacy DragonByte Newsletter

vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
121
Customer rating
0.00 star(s) 0 ratings
Back
Top