Questions tagged [memory-leak]

Memory leak occurs when programmers create a memory in heap and forget to delete it. Memory leaks are particularly serious issues for programs like daemons and servers which by definition never terminate.

Filter by
Sorted by
Tagged with
0 votes
0 answers
62 views

Magento 2 Memory size problem

I call for your help to solve a big problem on my Magento 2 site. Every night this one crashes due to a memory problem. Putting a memory limit at -1 is not the solution in my case otherwise it bugged ...
user avatar
0 votes
0 answers
31 views

Memory leak when using OrderItemCollection

I'm trying to execute some backend logic via ajax that requires using the Magento\Sales\Model\ResourceModel\Order\Item\CollectionFactory collection factory. When I use ->getColumnValues('<some ...
user avatar
  • 81
3 votes
3 answers
2k views

Magento 2.4 HTTPD Memory Leak | Allowed memory size of 792723456 bytes exhausted

After upgrading to Magento 2.4, I've been unable to run a stable production environment. HTTPD spawns the maximum number of processes and uses all of my systems memory and swap (it takes 5-20 minutes ...
user avatar
  • 721
1 vote
0 answers
243 views

Memory leak in product save loop

I'm trying to import ~5000 products from XML, but the execution time and memory usage increases in each loop, resulting in a long import process. Test code to demonstrate: <?php namespace Test\...
user avatar
  • 153
1 vote
0 answers
35 views

Magento 2.3: Order Create Programatically Script Allowed memory exhausted

I am working on creating orders dynamically using custom magento script , got reference from How to create order programmatically in Magento 2? now when I run script, after making 10-15 orders, first ...
user avatar
  • 1,468
2 votes
1 answer
412 views

Magento 2 Configurable Product Out of memory

We have been using Ubertheme to transfer our magento1 store to magento2. Everything seems to be working correctly, except when we go to a configurable product (backend or frontend), the Magento2 ...
user avatar
  • 89
1 vote
0 answers
43 views

Magento2 multi-store view memory issue

I have a two websites I just merged to be one magento2.2.5 based multi-site. One website but multi-store views. Now when I login as one of my test customers on one website view it works however if i ...
user avatar
  • 771
2 votes
0 answers
27 views

Emergency - our site down for 2 days. Ready to deploy on a new server but missing custom options; any way to put same custom options on all products?

Magento 1.9.4 Our old Magento store (1.9.1) hosted at Hostforweb just stopped working (long story - first it was extremely slow = unusable; then the hosting company says they can move it to another ...
user avatar
  • 306
3 votes
1 answer
135 views

Memory limit set to -1 is the good approach?

In one of my custom script a memory exhaust issue showing.so i did set memory_limit to -1 now it is working fine.But is this the good approach to do this or need to increase the size of memory_limit ...
user avatar
  • 1,204
1 vote
0 answers
115 views

Magento 1.9.1 500 Memory exhausted error, clearing client session help

The exhausted memory error appears regardless of the memory limit for certain random clients. Setting 2, 4, 8GB of memory limit not resolve the problem. The error appears in each case. Client navigate ...
user avatar
  • 9
0 votes
1 answer
170 views

Magento 2 memory size needed for process

I am using Magento 2.2. I need to know the suitable RAM Size needed to run my Magento system.
user avatar
0 votes
2 answers
687 views

Out of memory on collectionFactory->create()

I'm getting a strange error on code which previously worked and now dont. <?php namespace Itstod\LinkedProducts\Model; use Itstod\LinkedProducts\Api\LinkInterface; use Itstod\...
user avatar
2 votes
0 answers
415 views

Magento 2 Cart Memory Exhaustion issue, with customer

Running Magento 2.1.10 CE, with multiple stores. Client requires login to access the site Running into an issue where one of the client is having a problem with cart. They have added 53 products in ...
user avatar
3 votes
1 answer
891 views

Memory leak in magento when saving products

I have a problem when trying to mass update group prices in products. It seems when saving the products memory doesn't get released properly and keeps accumulating until it gets exhausted. I've set ...
user avatar
  • 521
0 votes
1 answer
814 views

Use of __desctruct() in classes to free memory

I have a suspected memory leak - I am reading from and writing to files within one class - perhaps the data isn't being released - not sure I need to run some tests. However, I am looking into using ...
user avatar
  • 659
1 vote
1 answer
245 views

cron to update product attribute running out of memory

I am trying to have a cron to update a custom product attribute for configurable products, public function updateReport() { Mage::app()->getStore()->setConfig('catalog/frontend/...
user avatar
0 votes
1 answer
553 views

Memory leaks in long-running loop

Consider the following loop: // Determine the final state of orders. $orders = Mage::getModel('sales/order') ->getCollection() ->addAttributeToFilter('entity_id', array_keys($orderIDs));...
user avatar
  • 165
0 votes
1 answer
41 views

What are the possibilities of error for not Export and Import [duplicate]

I have a problem of export and import in my site, error are : system - import/export - export : http://i.stack.imgur.com/C5y2X.png system - import/export - dataflow profiles - export all ...
user avatar
  • 679
0 votes
0 answers
56 views

Site breaks when trying to disable cache on dev site

My dev site is an exact clone of my live site (barring the local.xml file to make the dev site talk to the cloned database), hosted under a separate domain name on the same web server. When I try to ...
user avatar
  • 439
10 votes
3 answers
2k views

Magento 1: Performance optimizations to delete entities

I'm currently trying to improve a couple of modules regarding performance. Some of you may know the usage of the walk() method on collection which is very useful to avoid looping through products ...
user avatar
1 vote
2 answers
79 views

One time script to set custom attribute for ~1m customers - memory leak

I'm trying to run a one-time script (in a custom module upgrade) to set a new attribute last_order_date based on the date of that customer's last order. I have this script: $users = mage::getModel('...
user avatar
  • 157
1 vote
2 answers
384 views

performance problems on a Cloud hosting account

I have installed the newest version of the Magento shopping cart 1.9.1 and we are having serious performance problems (extremely high load, server running out of memory...) Is there something we can ...
user avatar
  • 306
0 votes
1 answer
327 views

Magento report grid running out of memory

We have a custom order export script that runs out of memory. Exporting a small time range works fine, but exporting all of December does not (more orders than usual, due to the holidays.) I added ...
user avatar
7 votes
5 answers
3k views

Magento customer save memory leak

I'm trying to edit customer data in bulk (a couple of thousand records) and Magento keeps running out of available memory to run the script. After some testing with memory_get_usage() the culprit ...
user avatar
  • 2,876