[Skip to main content](#vessel-content)

#   Large orders give memory\_limit exhausted

##

- **[nuntius](/forum/user/29512-nuntius "View nuntius's Profile")**
- [![nuntius's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar29512.jpg)](/forum/user/29512-nuntius "View nuntius's Profile") Topic Author
- [ Offline](/forum/user/29512-nuntius)
- nuntius.nl

Less More

- Posts: 62
- Thank you received: 1
-
-
-
-

8 years 9 months ago [\#287303](#287303) by [nuntius](/forum/user/29512-nuntius "View nuntius's Profile")  *[Large orders give memory\_limit exhausted](/forum/27-checkout/893709-large-orders-give-memory-limit-exhausted#287303 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.4 -- PHP version -- : 7.0.23 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : mod&#95;fcgid: stderr: PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 1769472 bytes) in /var/www/vhosts/groenehartcooperatie.nl/httpdocs/libraries/joomla/database/driver.php on line 2049, referer:   groenehart.dpz-server.nl/afrekenen/task-step/step-1  Hello,  When a customer does a large order, it seems the webshop runs out of memory. Currently the PHP memory&#95;limit is set to 1GB (which is pretty large) and still the webshop occasionally runs out of memory. A large order is about 20-30 different products of about 10 different vendors (creating sub-orders for each vendor with Hikamarket).  The hosting has about 6 out of 8 GB available - so that should not be a problem.  When this error occurs, the parent order is created with the relevant products, but for each item/vendor the sub-order is not created and have to be added manually to correct the order.  Is this a webhosting issue, or is the Hikashop / Hikamarket checkout eating alot of memory when large orders come along?  Cheers, Teeuwis")* was created by *[nuntius](/forum/user/29512-nuntius "View nuntius's Profile")*

-- HikaShop version -- : 3.2.2
-- Joomla version -- : 3.8.4
-- PHP version -- : 7.0.23
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : mod_fcgid: stderr: PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 1769472 bytes) in /var/www/vhosts/groenehartcooperatie.nl/httpdocs/libraries/joomla/database/driver.php on line 2049, referer: [ groenehart.dpz-server.nl/afrekenen/task-step/step-1](https://groenehart.dpz-server.nl/afrekenen/task-step/step-1)

Hello,

When a customer does a large order, it seems the webshop runs out of memory. Currently the PHP memory_limit is set to 1GB (which is pretty large) and still the webshop occasionally runs out of memory. A large order is about 20-30 different products of about 10 different vendors (creating sub-orders for each vendor with Hikamarket).

The hosting has about 6 out of 8 GB available - so that should not be a problem.

When this error occurs, the parent order is created with the relevant products, but for each item/vendor the sub-order is not created and have to be added manually to correct the order.

Is this a webhosting issue, or is the Hikashop / Hikamarket checkout eating alot of memory when large orders come along?

Cheers,
Teeuwis

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MzcwOS1sYXJnZS1vcmRlcnMtZ2l2ZS1tZW1vcnktbGltaXQtZXhoYXVzdGVkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

8 years 9 months ago [\#287307](#287307) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Large orders give memory\_limit exhausted](/forum/27-checkout/893709-large-orders-give-memory-limit-exhausted#287307 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.4 -- PHP version -- : 7.0.23 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : mod&#95;fcgid: stderr: PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 1769472 bytes) in /var/www/vhosts/groenehartcooperatie.nl/httpdocs/libraries/joomla/database/driver.php on line 2049, referer:   groenehart.dpz-server.nl/afrekenen/task-step/step-1  Hello,  When a customer does a large order, it seems the webshop runs out of memory. Currently the PHP memory&#95;limit is set to 1GB (which is pretty large) and still the webshop occasionally runs out of memory. A large order is about 20-30 different products of about 10 different vendors (creating sub-orders for each vendor with Hikamarket).  The hosting has about 6 out of 8 GB available - so that should not be a problem.  When this error occurs, the parent order is created with the relevant products, but for each item/vendor the sub-order is not created and have to be added manually to correct the order.  Is this a webhosting issue, or is the Hikashop / Hikamarket checkout eating alot of memory when large orders come along?  Cheers, Teeuwis")*

Hi,

Even with 30 products and 10 vendors it shouldn't eat that much memory.
1GB is really a lot.
HikaShop's order creation on a Joomla website, even with HikaMarket can work with 32/64 MB. Now with so much vendors, I could understand that you might need 128MB, maybe 256MB but 1GB seems disproportionated.
Do you have any other extension integrated with HikaShop on your website ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MzcwOS1sYXJnZS1vcmRlcnMtZ2l2ZS1tZW1vcnktbGltaXQtZXhoYXVzdGVkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nuntius](/forum/user/29512-nuntius "View nuntius's Profile")**
- [![nuntius's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar29512.jpg)](/forum/user/29512-nuntius "View nuntius's Profile") Topic Author
- [ Offline](/forum/user/29512-nuntius)
- nuntius.nl

Less More

- Posts: 62
- Thank you received: 1
-
-
-
-

8 years 9 months ago [\#287473](#287473) by [nuntius](/forum/user/29512-nuntius "View nuntius's Profile")  Replied by *[nuntius](/forum/user/29512-nuntius "View nuntius's Profile")* on topic *[Large orders give memory\_limit exhausted](/forum/27-checkout/893709-large-orders-give-memory-limit-exhausted#287473 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.4 -- PHP version -- : 7.0.23 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : mod&#95;fcgid: stderr: PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 1769472 bytes) in /var/www/vhosts/groenehartcooperatie.nl/httpdocs/libraries/joomla/database/driver.php on line 2049, referer:   groenehart.dpz-server.nl/afrekenen/task-step/step-1  Hello,  When a customer does a large order, it seems the webshop runs out of memory. Currently the PHP memory&#95;limit is set to 1GB (which is pretty large) and still the webshop occasionally runs out of memory. A large order is about 20-30 different products of about 10 different vendors (creating sub-orders for each vendor with Hikamarket).  The hosting has about 6 out of 8 GB available - so that should not be a problem.  When this error occurs, the parent order is created with the relevant products, but for each item/vendor the sub-order is not created and have to be added manually to correct the order.  Is this a webhosting issue, or is the Hikashop / Hikamarket checkout eating alot of memory when large orders come along?  Cheers, Teeuwis")*

Checking other plugins got us on the right track.

We have a plugin who appends extra info to the order history with the trigger after the order is saved. It basically checks what has changed between the old order and the new order and logs this in the order history. I can imagine that will clog up allot of memory when it is triggered with each sub-order due to Hikamarket.

I have now disabled that plugin and we'll see how the memory consumption is coming days. Thanks for the tip!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MzcwOS1sYXJnZS1vcmRlcnMtZ2l2ZS1tZW1vcnktbGltaXQtZXhoYXVzdGVkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

8 years 9 months ago [\#287493](#287493) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Large orders give memory\_limit exhausted](/forum/27-checkout/893709-large-orders-give-memory-limit-exhausted#287493 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.4 -- PHP version -- : 7.0.23 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : mod&#95;fcgid: stderr: PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 1769472 bytes) in /var/www/vhosts/groenehartcooperatie.nl/httpdocs/libraries/joomla/database/driver.php on line 2049, referer:   groenehart.dpz-server.nl/afrekenen/task-step/step-1  Hello,  When a customer does a large order, it seems the webshop runs out of memory. Currently the PHP memory&#95;limit is set to 1GB (which is pretty large) and still the webshop occasionally runs out of memory. A large order is about 20-30 different products of about 10 different vendors (creating sub-orders for each vendor with Hikamarket).  The hosting has about 6 out of 8 GB available - so that should not be a problem.  When this error occurs, the parent order is created with the relevant products, but for each item/vendor the sub-order is not created and have to be added manually to correct the order.  Is this a webhosting issue, or is the Hikashop / Hikamarket checkout eating alot of memory when large orders come along?  Cheers, Teeuwis")*

Hi,

What you can do is add a check to skip the order entries with an order_type different from "sale".
We do that in a lot of plugins so that they are only doing their processing on the main orders and not the sub sales of HikaMarket.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MzcwOS1sYXJnZS1vcmRlcnMtZ2l2ZS1tZW1vcnktbGltaXQtZXhoYXVzdGVkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.075 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
