News:

AbanteCart v1.4.2 is released.

Main Menu
support

Memory errors - what is eating my RAM?

Started by raj@ad4u.co.uk, June 10, 2018, 02:51:50 PM

Previous topic - Next topic

raj@ad4u.co.uk

****** - My live online shop has stopped working - need help with this.

On the first line of index.php I had added:

echo  memory_get_usage() . " " . memory_get_usage(true);
exit();

I get: 349424 2097152 - which means only 349K available of 2097K.

phpinfo() confirms:
memory_limit   2G   2G

Where is my memory going?

CART ERROR LOG:
2018-06-10 19:06:44 - App Warning: AbanteCart core v.1.2.12 Error: Cannot load image /home/laptops2/public_html/resources/image/1a/6e/c.jpg. Unable to create internal image from file /home/laptops2/public_html/resources/image/1a/6e/c.jpg. Try to decrease original image size 1600x1600px or reduce file size or increase memory limit for PHP.
in /home/laptops2/public_html/core/lib/image.php on line 71

2018-06-10 19:06:44 - App Warning: AbanteCart core v.1.2.12 Resize image error. File: /home/laptops2/public_html/resources/image/1a/6e/c.jpg in /home/laptops2/public_html/core/engine/resources.php on line 345

2018-06-10 19:06:44 - App Warning: AbanteCart core v.1.2.12 Error: Cannot load image /home/laptops2/public_html/resources/image/1a/6e/c.jpg. Unable to create internal image from file /home/laptops2/public_html/resources/image/1a/6e/c.jpg. Try to decrease original image size 1600x1600px or reduce file size or increase memory limit for PHP. in /home/laptops2/public_html/core/lib/image.php on line 71

2018-06-10 19:06:44 - App Warning: AbanteCart core v.1.2.12 Resize image error. File: /home/laptops2/public_html/resources/image/1a/6e/c.jpg in /home/laptops2/public_html/core/engine/resources.php on line 345

raj@ad4u.co.uk

Any idea why the index page is consuming 700MB RAM?

Just got this from A2HOSTING:

Hello,

I'm seeing that alone, your index page of your site is consuming over 700MB of memory.

The memory_get_usage() function isn't 100% accurate as your account is dynamically allocated memory by CloudLinux, you cannot reserve and use 100% of the memory at all times.

You can view the resource information yourself in cPanel, under CPU and Concurrent Connections Usage.

Best Regards,

- Jonny M.
Support Specialist
A2 Hosting - Our Speed, Your Success!
+1.888.546.8946
@a2hosting

raj@ad4u.co.uk

NOT AN ABANTECART ISSUE.

Sorry to have bothered you with this issue. It is an issue with my server.

<?php
echo  memory_get_usage() . " " . memory_get_usage(true);
exit();
?>

Gets the same results - Nothing to do with Abantecart.


Sorry.

Basara

Thank you, raj@ad4u.co.uk for letting us know

eCommerce Core

Regarding this warning:

Quote2018-06-10 19:06:44 - App Warning: AbanteCart core v.1.2.12 Error: Cannot load image /home/laptops2/public_html/resources/image/1a/6e/c.jpg. Unable to create internal image from file /home/laptops2/public_html/resources/image/1a/6e/c.jpg. Try to decrease original image size 1600x1600px or reduce file size or increase memory limit for PHP.
in /home/laptops2/public_html/core/lib/image.php on line 71

Check the image size. If it is too big, there might be not enough memory to resize the image.

Forum Rules Code of conduct
AbanteCart.com 2010 -