PHP memory limit 768MB exhausted

Started by craggy, September 17, 2014, 06:34:39 AM

craggy

Since the last few versions we are getting the following errors a lot.
   
PHP [Error]: Allowed memory size of 805306368 bytes exhausted (tried to allocate 1702130282 bytes) IN includes/types/class.ssltype.php(3)

Our PHP memory limit is set to 768MB which is ridiculous anyway but we still get memory exhausted in Hostbill

Anyone else having this issue or know of a solution?
Thanks

Enterprisevpssolutions

Were do you see this error at? I do not have this issue.
Enterprise Vps Solutions (VPS) - Cloud Solutions, Shared hosting, VPS , and more, Fast Dedicated Servers. Great ssl prices SSL Certs, Follow us on Twitter. Sales Question? Contact us! Send us a Request Tampa , Florida Hivelocity Datacenter

craggy

We just see it randomly throughout the admin area.

BRJP

Is there anything specific that you are doing when this error occurs?

The error mentions SSL types and a large allocation of memory - just trying to pin this down.
Kind regards,
Bradley Porter
--------------------
Find out more about SaneChoice Services at: https://www.sanechoice.cloud/

DeLeTe Me

Hehe only 768?

We have been using Hostbill since 2012, and we have our PHP Memory set to 2048MB, else we get errors in the error log. It's often 1700mb it uses.

harbirghai

Hi

I also had the similar issues earlier. Had to increase the PHP memory limit and the issue never came back.

Currently running on 1024 MB and works fine.

Cheers

Enterprisevpssolutions

If you uses the geoip modules and you have a lot of the other modules loaded I recommend having a higher value we use 4096M
Enterprise Vps Solutions (VPS) - Cloud Solutions, Shared hosting, VPS , and more, Fast Dedicated Servers. Great ssl prices SSL Certs, Follow us on Twitter. Sales Question? Contact us! Send us a Request Tampa , Florida Hivelocity Datacenter

Fusionhost

Do you all have your website [Hostbill] on a separate server from your clients?  Or do you give your domain custom settings?
fusionhost - www.fusionhost.co.uk
Leading British Cloud Web Hosting Provider

TommyK

I am getting these also;

2014-11-08 16:58:01 PHP Error
PHP [Error]: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1702130282 bytes) IN includes/types/class.domainstype.php(5)
2014-11-08 16:55:01 PHP Error
PHP [Error]: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1702130282 bytes) IN includes/types/class.domainstype.php(5)
2014-11-08 16:54:51 PHP Error
PHP [Error]: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1702130282 bytes) IN includes/types/class.domainstype.php(5)


My installation is not very advanced and I have very few plugins active. Very weird that it want to use 1.7GB, never heard of anything like it.

Here is my php version and modules loaded

php -v
PHP 5.4.34-1~dotdeb.1 (cli) (built: Oct 22 2014 19:32:59)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
    with the ionCube PHP Loader v4.7.1, Copyright (c) 2002-2014, by ionCube Ltd.


php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
ionCube Loader
json
libxml
mbstring
mhash
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
zip
zlib

[Zend Modules]
the ionCube PHP Loader

TommyK

Seem to have sorted my problems. Upgraded to php 5.5 and removed data in geo ip tables which I am not using any more. Don't know for sure what was the ultimate remedy. This is what is working for me right now:

php -v
PHP 5.5.18-1~dotdeb.1 (cli) (built: Oct 22 2014 17:53:37)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with the ionCube PHP Loader v4.7.1, Copyright (c) 2002-2014, by
ionCube Ltd., and
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies

jamaica

Sorry, but what's your problem to add memory and raise up php_memory_limit?
Really dont understand.

Lawrence

Quote from: jamaica on November 18, 2014, 03:04:30 AM
Sorry, but what's your problem to add memory and raise up php_memory_limit?
Really dont understand.

The last thing anyone should have to do is update their memory beyond what they have already. If you're suggesting a 1GB memory limit, that's too much. The server will run out of memory and the script will cease to function until memory is freed up.

Glad you got this sorted with an upgrade. Maybe share what extensions you're using / what modules you have enabled and if it's a lot, perhaps trim it down a bit. HostBill can use a lot of memory with a lot of addons enabled, or one really bad addon.
Skype: sociallarry | AIM: [email]larry.aim@aim.com[/email] | Forum Rules & Information

These forums are hosted by me with no intentions to ever monetize them. These forums are here solely for the benfit of the HostBill community.

TommyK

Quote from: Lawrence on November 18, 2014, 10:44:36 AM
The last thing anyone should have to do is update their memory beyond what they have already. If you're suggesting a 1GB memory limit, that's too much. The server will run out of memory and the script will cease to function until memory is freed up.

Glad you got this sorted with an upgrade. Maybe share what extensions you're using / what modules you have enabled and if it's a lot, perhaps trim it down a bit. HostBill can use a lot of memory with a lot of addons enabled, or one really bad addon.

Yes, I didn't want to duct tape this by adding gigs and gigs of ram to my server. A PHP script using 1.7GB ram is not right.

I don't have a lot of plugins running, these are the ones I currently use;

Autoupgrade
VIES Vat number validation
Google analytics
Related Services
HB Support system
Hostbill SEO

Paypal
banktransfer
Payson

Resellerclub

Maxmind

Cpanel


I learned the hard way that HB is still doing something with the geo ip tables since I dropped them altogether and got errors that they where missing. Got fast help from Hostbill replacing the table structure.

I can just imagine what happens if you do something weird with a dataset that big in PHP, and I am not using the GEO IP modules at all and therefore I removed that data. But as I said, I have no idea if that was the remedy at all. Did a few changes at the same time, so can't really tell.