Questions tagged [memory]

The tag has no usage guidance.

25
votes
12answers
41k views

Magento 2 Allowed Memory exhausted error when compile code

I have error when i add module.. Please re-run Magento compile command so i run below command but also display error that below when run command from root, php magento setup:di:compile Compilation ...
0
votes
2answers
51 views

Magento 2: Ram memory issue

I have Magento2 website on production mode. And i have 8gb ubuntu 16.04 server. But i have checked ram memory uses 99% so my website is working slow. Please any one tell me why used my memory 99%? ...
2
votes
1answer
1k views

Allowed memory size of 536870912 bytes exhausted

Got a php error, Allowed memory size of 536870912 bytes exhausted. It is quite strange, because I created a php info file to check the settings. The setting of the server is memory_limit 12288M (...
1
vote
1answer
1k views

Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 12288 bytes)

I'm getting the next error after docker-compose up. Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 12288 bytes) in /var/www/html/vendor/zendframework/zend-...
2
votes
1answer
35 views

Out of memory when compiling Magento 2 - increasing memory doesn't work

When compiling Magento 2, I'm getting the error: Fatal error: Out of memory (allocated 294125568) (tried to allocate 32 bytes) in /vendor/zendframework/zend-code/src/Scanner/FileScanner.php on ...
1
vote
1answer
402 views

Magento 2 run setup:di:compile command on a shared hosting with limited memory_limit (max 512M)

I am trying to execute php bin/magento setup:di:compile after enabling a custom module created on my Magento2 store. However, I am using a shared hosting which allows me to set memory_limit upto 512 ...
1
vote
3answers
144 views

PHP errors on Magento Server [duplicate]

I have a Magento e-commerce with 60.000+ products. Every night some crons are executed for the synchronization of the catalog with the management tool. During the night I found two types of errors ...
0
votes
1answer
648 views

Allowed memory size exhausted on category save Magento 2

I'm trying to to enable the "Anchor" flag on a category with about 1400 products. When I click save, the page loads for a very long time (about 45 minutes) and finally gives me an internal server ...
0
votes
2answers
636 views

Can't upgrade to 2.2.3 from 2.2.2. Memory limit reached

I'm trying to upgrade my Magento installation but experiencing problems with the process: I was trying to update my site to the latest release as advised and I did so via the command line but I ran ...
2
votes
0answers
19 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 ...
0
votes
0answers
53 views

Magento 2.2.5: _init() return error “ Allowed memory size of 792723456 bytes exhausted”

I'm doing "Banner Slider", and I'm following module-catalog/category. So when i trying to copy this file: C:\xampp\htdocs\magento\vendor\magento\module-catalog\Model\ResourceModel\Product\...
2
votes
0answers
93 views

Magento 1.9: Maximum execution timeout after login

Description: After a customer logs into my shop, the script receives a stack overflow, execution timeout or exhausted memory size. But only at one store view (en_GB). I guess it's a loop. I have only ...
3
votes
1answer
54 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 ...
0
votes
1answer
126 views

Magento 2 Customer Grid index is locked by another reindex process. Skipping

I am importing Customer Main file details, I imported 30,000 records and about to reindexing ended up with reindexing issue. On the first reindexing I got the following error: PHP Fatal error: ...
0
votes
1answer
36 views

What are the preferred server resources needed to run a magento 2 ecommerce site? php memory limit, virtual and physical memory? ,

When updating magento to 2.3, warning was given to set php memory to a minimum of 2048. Wondering what the preferred settings/resources are and if hosting on a shared server is fine.
0
votes
1answer
25 views

Memory issues when upgrading from 2.2.6 to 2.3

I am trying to upgrade from 2.2.6 to 2.3, but the updater doens't even start. I get this message in the log: PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 20480 ...
0
votes
1answer
18 views

Magento sees wrong allocated memory

I am trying to update Magento 2.2.5 to 2.3 using the System Upgrade tool. The readiness check gives an error saying that php memory limit is set to 128M. In reality we have 2G set on server. Check ....
0
votes
0answers
58 views

Magento white screen

One of my pages suddenly became white screen as I was working on the code. It was working perfectly and it won't go back to normal even when I revert the change. Every other page is working fine,the ...
0
votes
3answers
540 views

setup-cron.ERROR: real memory limit 756M but 512M in log

I am on a shared platform and cannot change php.ini . However, the hosting platform allows me to set the memory_limit for php, which I have done - 756M. phpinfo() returns both master and local ...
3
votes
6answers
18k views

Adding a product in Magento “Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 139564 bytes)”

I'm new to Magento and I can see that it is a sophisticated system with a lot of depth, but I've come across many headaches since switching to it from OpenCart. The first and foremost is this error ...
0
votes
1answer
25 views

How to get memory_limit to be recognized by Magento when doing readiness test

I have had a terrible time getting extensions installed due to a readiness check. Magento fails to recognize that I have changed the php memory_limit figure. This post applies but doesn't work. It ...
0
votes
0answers
15 views

Magento 2: Lightweight way to access custom model with ajax call

I have some data that needs to be displayed on each page view and can not be cashed. Workflow is like this: Page is loaded Ajax call is made to custom php script that gets information from db The ...
1
vote
0answers
84 views

php Out of Memory error when refreshing report statistics

I have recently upgraded from Magento CE 1.9.2 to 1.9.3.10. Since this we get the following error when Reports>Refresh Statistics is used: Fatal error: Out of memory (allocated 1808531456) (tried ...
0
votes
3answers
145 views

How to prevent memory consumption during collection enumeration?

In the following script: $pageSize = 1000; $productCollection = Mage::getModel('catalog/product') ->getCollection() ->addWebsiteFilter($website->getId()) ->...
11
votes
1answer
7k views

Magento 2.x PHP memory_limit requirements

I noticed that Magento 2.1 manual recommends memory_limit=2G in php.ini. That is a crazy amount of memory, isn't that memory allowed per HTTP request? I doubt there is any hosting provider that ...
0
votes
0answers
95 views

Memory usage high for specific time?

I have godaddy dedicated server with 8GB RAM. but its use 80 to 90% RAM. so result is site down. i checked process list in mysql but it is empty. also check top -ca command for highest usage RMA, that ...
0
votes
4answers
653 views

Increase php memory_limit using Magento 2 index.php

I added the line ini_set('memory_limit', '2048M'); into the pub/index.php and reloaded the Nginx config, however, the memory_limit didn't change. I created a phpinfo.php and the memory_limit1 is ...
2
votes
2answers
65 views

Magento Memory issue for installing extensions

I am really stuck at the moment. I keep getting the following error: "Your current PHP memory limit is 512M. Magento 2 requires it to be set to 756M or more. As a user with root privileges, edit ...
8
votes
3answers
23k views

Fatal error “Allowed memory size” while run setup:static-content:deploy

I am trying to setup Magento 2.0 (community) in a WAMP server and I am getting the error below all the time while I run the command for deploy the assets static due to symlink issues at Windows ...
0
votes
1answer
130 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.
0
votes
1answer
29 views

PHP memory limit issues repeats after the updating to a bigger size

I have updated the memory limits to 1024M in the php.ini file in the root directory however while installing the extension, am still getting the error stating to update the memory to 756M or above. ...
0
votes
1answer
91 views

How much need RAM of VPS for 1 store about 110 product pages and very low traffic?

I have 1 store with 110 products. Traffic is very low - max 40 visitors per day. Now i pay for a shared-hosting and all good, but reply of server is from 700 to 1200 ms. I want rent VPS, but dont ...
2
votes
2answers
4k views

No Inode space!; How to delete Magento sessions folder's contents?

Hopefully, someone can help me, A Magento website I'm managing keeps going down, I've determined it to be the fact that it has used up all of the Inode space on the server. The output to df -i is ...
1
vote
2answers
2k views

Redis cache memory policy strategies

I am looking at various tuning on magento 1.9.3 installation with Redis hosting FPC. I am interested in mileage with the various policies available as listed below and also the associated monitoring ...
0
votes
0answers
12 views

Free memory on server only goes down until it runs out

When I visit my website the free memory on my sever goes down. Of course this is supposed to happen. Then I refresh the page and check the free memory again. It goes further down. If I refresh the ...
1
vote
1answer
459 views

PHP memory limit, Magento 2.3

Trying to fix the PHP memory limit issue when installing an extension. I made all the possible configurations, I do not have access to an SSH but everything seems to have correct values, I made the ...
0
votes
1answer
2k views

Fatal error: Allowed memory size of 805306368 bytes exhausted

I installed Magento on WAMP Server and I have PHP Fatal error: Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 262144 bytes) I tried to increase memory_limit to 1G ...
1
vote
1answer
17 views

Trying to make certain category names dynamic results in 100% server memory usage

My custom module has certain categories that are linked to certain customers and should return that customer's company name instead of the category name, I have written a plugin like this: public ...
1
vote
3answers
447 views

How to run deploy command while memory exhausted and we can't able to increase server memory limit?

Sever memory exhausted while run content deploy command and sever memory can't be increase then how to run content deploy command?
3
votes
0answers
384 views

Magento 2 Optimize memory leak perfomance

I have a problem with the import data process. First: I have used the factory creator to create a Model set data and save but the problem when I have 400k Item to save. --- Constructor \Magento\...
0
votes
0answers
115 views

Magento 2 website is not running in local after moving from host. System getting hanged when running the website

We are using Magento 2 for our website. We have used Bluehost with 2GB RAM, 5TB Memory. Bluehost called me yesterday to change the server because of the huge bandwith. We have currently 1000 products ...
2
votes
0answers
210 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 ...
0
votes
1answer
751 views

Session files going over 17GB [duplicate]

Got warning from server regarding Disk space getting full. After checking into file manager I found 17.2 GB of file size in session folder. When looked into var/session folder, I can see unusual ...
1
vote
0answers
442 views

Memory limit issue on Magento 2.2 EE

I have installed an instance of Magento Commerce 2.2 on a server with Digital Ocean ensuring stack requirements are met and have been experiencing regular PHP Fatal Error Out of Memory Issues, and ...
0
votes
1answer
1k views

Magento running out of memory

Every time I am getting the following message: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 81 bytes) in /public_html/lib/Varien/Object.php on line 270 ...
0
votes
1answer
107 views

Technical Review Failed on: deploy:mode:set production

I recently submitted a module to the Magento Marketplace for Technical review; it got rejected with the following error: Command returned non-zero exit code: php -f /var/www/html/bin/magento ...
6
votes
1answer
7k views

PHP Fatal error: Allowed memory size of on indexer.php action

Before reply please read scenario on Magento 1.8.X command php indexer.php --reindex all Product Attributes index was rebuilt successfully Product Prices index was rebuilt successfully Fatal error: ...
1
vote
3answers
57 views

Error Memory Size in Yireo Email Tester

/lib/Zend/Db/Statement/Pdo.php Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 95 bytes) in /lib/Zend/Db/Statement/Pdo.php on line 291 How do I fix this issue, ...
0
votes
1answer
402 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 ...
0
votes
1answer
288 views

Why I'm getting a HTTP ERROR 500 in Godaddy Server?

Firstly This is not a duplicate! Tried All possible things given on StackOverflow and magento.stackexchange for this but none of it solved my issue. Getting HTTP 500 error when accessing register ...