Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: Memory errors - what is eating my RAM?  (Read 3985 times)

Offline raj@ad4u.co.uk

  • Newbie
  • *
  • Posts: 24
  • Karma: +5/-0
    • View Profile
Memory errors - what is eating my RAM?
« 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

Offline raj@ad4u.co.uk

  • Newbie
  • *
  • Posts: 24
  • Karma: +5/-0
    • View Profile
Re: Memory errors - what is eating my RAM?
« Reply #1 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

Offline raj@ad4u.co.uk

  • Newbie
  • *
  • Posts: 24
  • Karma: +5/-0
    • View Profile
Re: Memory errors - NOT AN ABANTECART ISSUE
« Reply #2 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.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5774
  • Karma: +274/-2
    • View Profile
Re: Memory errors - what is eating my RAM?
« Reply #3 on: June 11, 2018, 05:22:54 AM »
Thank you, raj@ad4u.co.uk for letting us know

Offline eCommerce Core

  • Administrator
  • Hero Member
  • *****
  • Posts: 1602
  • Karma: +93/-1
    • View Profile
Re: Memory errors - what is eating my RAM?
« Reply #4 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.
“If you’re in the luckiest one per cent of humanity, you owe it to the rest of humanity to think about the other 99 per cent.”
― Warren Buffett

 

Powered by SMFPacks Social Login Mod