# Magento 2 .4.6 i have 50000 products when i added 10 products in add to cart usig jmeter that time elasticsearch is kill?

**URL:** <https://discuss.elastic.co/t/magento-2-4-6-i-have-50000-products-when-i-added-10-products-in-add-to-cart-usig-jmeter-that-time-elasticsearch-is-kill/374757>\
**Category:** Elastic Search\
**Tags:** elastic-site-search\
**Created:** [February 19, 2025, 11:35am UTC](https://discuss.elastic.co/t/magento-2-4-6-i-have-50000-products-when-i-added-10-products-in-add-to-cart-usig-jmeter-that-time-elasticsearch-is-kill/374757 "2025-02-19T11:35:58Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pratik\_Bhosale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pratik_bhosale/32/141489_2.png) [@Pratik\_Bhosale](https://discuss.elastic.co/u/Pratik_Bhosale)\
**Post date:** [February 19, 2025, 11:35am UTC](https://discuss.elastic.co/t/magento-2-4-6-i-have-50000-products-when-i-added-10-products-in-add-to-cart-usig-jmeter-that-time-elasticsearch-is-kill/374757/1 "2025-02-19T11:35:58Z")

</div>

![Elastic Search Status](https://us1.discourse-cdn.com/elastic/original/3X/1/9/1946ae8d5f1a8cf895ecfd14f9b3db30ef8c6393.png)

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 19, 2025, 12:34pm UTC](https://discuss.elastic.co/t/magento-2-4-6-i-have-50000-products-when-i-added-10-products-in-add-to-cart-usig-jmeter-that-time-elasticsearch-is-kill/374757/2 "2025-02-19T12:34:14Z")

</div>

Please do not post images of text as they can be very hard to read. Also elaborate on your setup and exactly what you are foung and what happens. Is there snything in the Elasticsearch logs? Why would you use Jmeter to add 10 products?

---

<div class="post-metadata">

**Author:** ![RainTown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raintown/32/140206_2.png) [@RainTown](https://discuss.elastic.co/u/RainTown)\
**Post date:** [February 19, 2025, 12:54pm UTC](https://discuss.elastic.co/t/magento-2-4-6-i-have-50000-products-when-i-added-10-products-in-add-to-cart-usig-jmeter-that-time-elasticsearch-is-kill/374757/3 "2025-02-19T12:54:41Z")

</div>

Whats the specs of the system(s) where elasticsearch is running? is anything else running on same system(s) ?

The pic shows the process was killed by OOM killer. That suggests, can be 101 other things too, the system might be too constrained.

Output (text please) of

```auto
journalctl -u elasticsearch.service

```

---

<div class="post-metadata">

**Author:** ![Pratik\_Bhosale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pratik_bhosale/32/141489_2.png) [@Pratik\_Bhosale](https://discuss.elastic.co/u/Pratik_Bhosale)\
**Post date:** [February 19, 2025, 1:44pm UTC](https://discuss.elastic.co/t/magento-2-4-6-i-have-50000-products-when-i-added-10-products-in-add-to-cart-usig-jmeter-that-time-elasticsearch-is-kill/374757/4 "2025-02-19T13:44:13Z")

</div>

Case: Concurrent users (registered users) performing sign in, add to cart where 10 users per second will perform Sign in and add to cart activity on website through JMeter.

JMeter Scrip Details  
No of Users : 6000  
Duration: : 600 Seconds

Enviornment: AWS  
B2C Server Memory: 32GB & Core 16  
JVM Memory Assign: 20GB

Actual Result: After completion of run, while analyzing the result, it was observed that 58.92% requests were rejected with  
502/Bad Gateway ,401/Unauthorized

Note:

1. Elasticsearch service was up and running through the run.

2. Same run was conducted with 1 user per second and 5 users per second performing Sign in and add to cart activity where run completed successfully with 99% request were passed.

3. Same set of issue occurs while same run was kept on On prim enviornment.

Memory CPU Details  
Elasticsearch : CPU=20% ,Memory=20GB (Peak=30GB)  
FPM: 3.9% 250 MB  
nginx: 0.2%4 MB

Note: same in local machine(onprem) working fine there was not getting any issue.

---

<div class="post-metadata">

**Author:** ![RainTown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raintown/32/140206_2.png) [@RainTown](https://discuss.elastic.co/u/RainTown)\
**Post date:** [February 19, 2025, 2:18pm UTC](https://discuss.elastic.co/t/magento-2-4-6-i-have-50000-products-when-i-added-10-products-in-add-to-cart-usig-jmeter-that-time-elasticsearch-is-kill/374757/5 "2025-02-19T14:18:35Z")

</div>

Thanks for added context.

So a 1-node Elasticsearch cluster, and your are doing some load testing, got it.

Can you paste output as requested above, it might help

```auto
journalctl -u elasticsearch.service

```

and confirm if there are other things running on same system as elasticsearch.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 19, 2025, 4:18pm UTC](https://discuss.elastic.co/t/magento-2-4-6-i-have-50000-products-when-i-added-10-products-in-add-to-cart-usig-jmeter-that-time-elasticsearch-is-kill/374757/6 "2025-02-19T16:18:46Z")

</div>

What type of instance are you using? Is it by any chance an instance type with CPU credits, e.g. a t3? What type and size of storage are you using?

Note that you should not set the heap size to more than 50% of the amount of RAM available to Elasticsearch as it also uses off- heap memory. If you have other components running on the host any memory used by these need to be excluded when calculating the Elasticsearch heap size.

---

<div class="post-metadata">

**Author:** ![Pratik\_Bhosale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pratik_bhosale/32/141489_2.png) [@Pratik\_Bhosale](https://discuss.elastic.co/u/Pratik_Bhosale)\
**Post date:** [February 20, 2025, 5:53am UTC](https://discuss.elastic.co/t/magento-2-4-6-i-have-50000-products-when-i-added-10-products-in-add-to-cart-usig-jmeter-that-time-elasticsearch-is-kill/374757/7 "2025-02-20T05:53:55Z")

</div>

Enviornment: AWS  
B2C Server Memory: 32GB & Core 16  
JVM Memory Assign: 20GB

Actual Result: After completion of run, while analyzing the result, it was observed that 58.92% requests were rejected with  
502/Bad Gateway ,401/Unauthorized

Note:

1. Elasticsearch service was up and running through the run.
2. Same run was conducted with 1 user per second and 5 users per second performing Sign in and add to cart activity where run completed successfully with 99% request were passed.
3. Same set of issue occurs while same run was kept on On prim enviornment.

Memory CPU Details  
Elasticsearch : CPU=20% ,Memory=20GB (Peak=30GB)  
FPM: 3.9% 250 MB  
nginx: 0.2%4 MB

Note: same in local machine(onprem) working fine there was not getting any issue.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 20, 2025, 8:30am UTC](https://discuss.elastic.co/t/magento-2-4-6-i-have-50000-products-when-i-added-10-products-in-add-to-cart-usig-jmeter-that-time-elasticsearch-is-kill/374757/8 "2025-02-20T08:30:52Z")

</div>

Why ate you reposting the same information without answering any of the questions asked?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 20, 2025, 8:31am UTC](https://discuss.elastic.co/t/magento-2-4-6-i-have-50000-products-when-i-added-10-products-in-add-to-cart-usig-jmeter-that-time-elasticsearch-is-kill/374757/9 "2025-03-20T08:31:46Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
