AbanteCart Community

Shopping Cart Operations => Support => Topic started by: raj@ad4u.co.uk on June 10, 2018, 02:51:50 PM

Title: Memory errors - what is eating my RAM?
Post by: raj@ad4u.co.uk on June 10, 2018, 02:51:50 PM
****** - 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
Title: Re: Memory errors - what is eating my RAM?
Post by: raj@ad4u.co.uk on June 11, 2018, 03:31:02 AM
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
Title: Re: Memory errors - NOT AN ABANTECART ISSUE
Post by: raj@ad4u.co.uk on June 11, 2018, 04:15:54 AM
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.
Title: Re: Memory errors - what is eating my RAM?
Post by: Basara on June 11, 2018, 05:22:54 AM
Thank you, raj@ad4u.co.uk for letting us know
Title: Re: Memory errors - what is eating my RAM?
Post by: eCommerce Core on June 11, 2018, 06:45:34 AM
Regarding this warning:

Quote
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

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