Author Topic: Forcibly terminating processes due to lack of memory.  (Read 791 times)

marvays

  • Jr. Member
  • **
  • Posts: 229
    • http://marvays.cz
  • Skype Name: marvays
Forcibly terminating processes due to lack of memory.
« on: May 06, 2019, 18:07:20 pm »
I've had a problem with my eshop for several months. I still couldn't solve it. I have a 500 error several times a day. Too many queries to the database.

Today I accidentally logged in to the shop under my account from the front. And I found out that I have 136 products in my cart. Can't the problem be somewhere in the settings? in cache? Something wrong? I have always logged into administration only.

I have a new, really good hosting.
Joomla 3.9.5
VirtueMart 3.4.2
php 7.1
memory_limit   2048M
max_execution_time   300

Forcibly terminating processes due to lack of memory.
Code: [Select]
Date  Process
05.05.2019  17:16 php-cgi

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2943
  • VirtueMart Version: 3.6.0
Re: Forcibly terminating processes due to lack of memory.
« Reply #1 on: May 07, 2019, 00:23:43 am »
have you turned off VM404 error handling!
regards
A

Joomla 3.9.8
php 7.1

marvays

  • Jr. Member
  • **
  • Posts: 229
    • http://marvays.cz
  • Skype Name: marvays
Re: Forcibly terminating processes due to lack of memory.
« Reply #2 on: May 07, 2019, 03:21:13 am »
have you turned off VM404 error handling!
yes

balai

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1375
Re: Forcibly terminating processes due to lack of memory.
« Reply #3 on: May 07, 2019, 12:32:13 pm »
Please check where those visits come from and block the bots.

I have the same problem in my site, which turned out to be bots calling my site.
Have a look here:
https://www.seoblog.com/2018/03/block-bots-spiders-htaccess/

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3505
  • using Matomo instead of Google Analytics
Re: Forcibly terminating processes due to lack of memory.
« Reply #4 on: May 07, 2019, 17:01:17 pm »
Perhaps also check if you do have a 'huge' session table in your database or a 'huge' session folder on the server?
Some time ago I had memory problem because I did hit the maximum allowed webspace on the server (too many subfolders for testing).
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

marvays

  • Jr. Member
  • **
  • Posts: 229
    • http://marvays.cz
  • Skype Name: marvays
Re: Forcibly terminating processes due to lack of memory.
« Reply #5 on: May 07, 2019, 18:16:27 pm »
Perhaps also check if you do have a 'huge' session table in your database or a 'huge' session folder on the server?
Some time ago I had memory problem because I did hit the maximum allowed webspace on the server (too many subfolders for testing).

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3978
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Forcibly terminating processes due to lack of memory.
« Reply #6 on: May 07, 2019, 18:44:38 pm »
I think the problem is that you have 136 products in the cart.
Remove the entry in XXX_virtuemart_carts for your virtuemart_user_id

marvays

  • Jr. Member
  • **
  • Posts: 229
    • http://marvays.cz
  • Skype Name: marvays
Re: Forcibly terminating processes due to lack of memory.
« Reply #7 on: May 07, 2019, 20:03:24 pm »
I think the problem is that you have 136 products in the cart.
Remove the entry in XXX_virtuemart_carts for your virtuemart_user_id
I deleted items manually. But I don't understand how they got there. I suspect there's a mistake somewhere. Which may be related to speed problems.

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3505
  • using Matomo instead of Google Analytics
Re: Forcibly terminating processes due to lack of memory.
« Reply #8 on: May 07, 2019, 20:07:05 pm »
The screenshot doesn't include the size column. I would also look into the sh404sef cache folder. Almost 24000 urls in the table and maybe a huge amount of megabytes in the cache folder.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9037
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: Forcibly terminating processes due to lack of memory.
« Reply #9 on: May 07, 2019, 22:17:44 pm »
Quote
But I don't understand how they got there

multiple test 'add to carts' over time? You said this was the account u use for testing...
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

marvays

  • Jr. Member
  • **
  • Posts: 229
    • http://marvays.cz
  • Skype Name: marvays
Re: Forcibly terminating processes due to lack of memory.
« Reply #10 on: May 07, 2019, 22:21:34 pm »
Quote
But I don't understand how they got there

multiple test 'add to carts' over time? You said this was the account u use for testing...
Yes. but I haven't been on the site for months. I perform tests on e-shop as anonymous.