# Out of memory while executing test suite collection

**URL:** <https://forum.katalon.com/t/out-of-memory-while-executing-test-suite-collection/121443>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [February 26, 2024, 4:25pm UTC](https://forum.katalon.com/t/out-of-memory-while-executing-test-suite-collection/121443 "2024-02-26T16:25:52Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![p.kayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/p.kayam/32/20464_2.png) [@p.kayam](https://forum.katalon.com/u/p.kayam)\
**Post date:** [February 26, 2024, 4:25pm UTC](https://forum.katalon.com/t/out-of-memory-while-executing-test-suite-collection/121443/1 "2024-02-26T16:25:52Z")

</div>

Hello @All,

While executing suite collection after 10 to 15 minutes facing out for memory issue in the crome session, Even tried to reduce the ‘max concurrent session’ to 2 still same issue

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/6/0/60956a83219ab377db8a5cea714ec9be2691f8eb.png)  
OS: Windows 11  
Chrome: Version 121.0.6167.185 (Official Build) (64-bit)

Can someone please help?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Dave\_Evers](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dave_evers/32/435_2.png) [@Dave\_Evers](https://forum.katalon.com/u/Dave_Evers)\
**Post date:** [February 26, 2024, 5:45pm UTC](https://forum.katalon.com/t/out-of-memory-while-executing-test-suite-collection/121443/2 "2024-02-26T17:45:04Z")

</div>

Hi @p.kayam, You need to provide more information…  
Open Katalon, click Help \> Error Log, then attach the .log file (you may need to rename the file to Error.log) to your ticket. Also this is not a Tip, please pick the correct category.  
Thanks Dave

 ![KatMemIssue](https://europe1.discourse-cdn.com/katalon/original/3X/b/2/b29d58adb8f138d9bbfb4ca56508eb3daa06934f.png)

---

<div class="post-metadata">

**Author:** ![grylion54](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/grylion54/32/16265_2.png) [@grylion54](https://forum.katalon.com/u/grylion54)\
**Post date:** [February 26, 2024, 9:30pm UTC](https://forum.katalon.com/t/out-of-memory-while-executing-test-suite-collection/121443/3 "2024-02-26T21:30:12Z")

</div>

Also take a look at this post to see if you have enough resources given to Java virtual machine for KS.

> [@How to assign more memory in JVM for Katalon Studio?](http://forum.katalon.com/t/how-to-assign-more-memory-in-jvm-for-katalon-studio/36328/5):
>
> edit your katalon.ini file (is in the installation folder) and increase the values for Xms and Xmx

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [February 26, 2024, 10:11pm UTC](https://forum.katalon.com/t/out-of-memory-while-executing-test-suite-collection/121443/4 "2024-02-26T22:11:02Z")

</div>

Same suggestion as @grylion54

You should try increasing the -Xmx value specified in the `katalon.ini` file

> [@KRE 9.3.0 any gain in execution time](http://forum.katalon.com/t/kre-9-3-0-any-gain-in-execution-time/120181/3):
>
> You should try allocating more memory to JVM. See Default: -Xmx2048m As far as I observe in the Performance Monitor of Mac OS, Katalon Studio v9.0 occupies at least 1.8GB runtime. So -Xmx2048m is tight; not sufficient. Try this: -Xmx4096m With more memory allocated, it is likely the process of your test cases run faster. I have no concrete idea about KRE performace, but I think that any software upgrades tend to consume more memory to implement new features. [Software is a gas](https://blog.codinghorror.com/software-its-a-gas/). Katalon…

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [February 26, 2024, 11:00pm UTC](https://forum.katalon.com/t/out-of-memory-while-executing-test-suite-collection/121443/5 "2024-02-26T23:00:52Z")

</div>

The screenshot below seems to be a window of some browser process (Chrome, possibly), not a window of Katalon Studio.

[https://europe1.discourse-cdn.com/katalon/uploads/default/uploads/default/original/3X/6/0/60956a83219ab377db8a5cea714ec9be2691f8eb.png](https://europe1.discourse-cdn.com/katalon/uploads/default/uploads/default/original/3X/6/0/60956a83219ab377db8a5cea714ec9be2691f8eb.png)

The idea of giving a larger memory size in `katlaon.ini` file will affect only to Katalon Studio and the child processes of your Test Cases forked by Katalon Studio. It might not affect to the browser processes.

Then, why the browser process(es) are getting out of memory? — very curious; I have no idea; only you, @p.kayam, can investigate it.

I have a guess. Possibly you have many zombie processes of Chrome unclosed. A horde of zombies will occupy the physical memory of your machine and cause a momory shortage. If you run so many test cases failing, then your test suite collection will result many unclosed browser windows.

In that case, you should improve your test case scripts to be more robust. You should not leave the failing test cases. That would be the first thing you should do.

---

<div class="post-metadata">

**Author:** ![anon46315158](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@anon46315158](https://forum.katalon.com/u/anon46315158)\
**Post date:** [February 27, 2024, 10:37am UTC](https://forum.katalon.com/t/out-of-memory-while-executing-test-suite-collection/121443/6 "2024-02-27T10:37:58Z")

</div>

> [@kazurayam](#):
>
> I doubt that possibly you have many zombie processes of Chrome unclosed. The zombies may occupy the physical memory of your machine and cause a momory shortage. In that case, you should tune your test case scripts to close all the browsers once you finished using them.

Could be that aventuall errors are not handled properly so the testcases / suites does not terminate the webdriver, leading to ‘zombies’.  
There is an option to force terminate the drivers in the project settings, may help:  
(not sure if it works properly but worth to try)

 ![terminate](https://europe1.discourse-cdn.com/katalon/original/3X/1/b/1b920e29dfb5822bcc62ebda758a08bac33b0133.png)

Anyway, if the drivers are instantiated by pure Selenium commands (not by Katalon keywords) may have no effect, so it depends also on the test-cases design.

---

<div class="post-metadata">

**Author:** ![p.kayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/p.kayam/32/20464_2.png) [@p.kayam](https://forum.katalon.com/u/p.kayam)\
**Post date:** [February 29, 2024, 5:19am UTC](https://forum.katalon.com/t/out-of-memory-while-executing-test-suite-collection/121443/7 "2024-02-29T05:19:23Z")

</div>

Hello @kazurayam @anon46315158 ,  
You are right, This issue is on the Chrome session, In the execution of the suite collection I have ‘max concurrent session’ to 4 so four sessions are executing parallelly. However, I tried to reduce this to ‘2’ still the same  
Also after the execution of each test suite driver is terminated as well.

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/7/4/749d464a0b0c4e259e9a5cab6ea12f4ccd07c46c.png)

---

<div class="post-metadata">

**Author:** ![Dave\_Evers](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dave_evers/32/435_2.png) [@Dave\_Evers](https://forum.katalon.com/u/Dave_Evers)\
**Post date:** [March 1, 2024, 8:10pm UTC](https://forum.katalon.com/t/out-of-memory-while-executing-test-suite-collection/121443/11 "2024-03-01T20:10:04Z")

</div>

Hello @p.kayam,

We also use the following as best practices for dealing with Katalon Studio/Browser memory/cache issues: Mostly works for us… We normally run this after several test cases/suites have been run.

Steps: Open Katalon UI

- Click Tools \> Terminate running WebDrivers \> Finish
- Click \> Project \> Close and Clean up
- Click \> File Clean up…
- We also clear Chrome’s Browser Cache by pressing ‘Ctrl + Shift + Delete’ from within Chrome.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [March 2, 2024, 1:56pm UTC](https://forum.katalon.com/t/out-of-memory-while-executing-test-suite-collection/121443/12 "2024-03-02T13:56:33Z")

</div>

@p.kayam

Which version of Katalon Studio did you use when the problem occured?

Are you aware that since 15 Feb anyone who used KS version older than v9.3.1 with Chrome browser experienced a lot of failing test cases. See

> **[Chrome failed to start: exited normally](https://forum.katalon.com/t/chrome-failed-to-start-exited-normally/119718/16)**
>
> I admit that the null as the param to WebUI.openBrowser(null) is not the cause of the problem. At the moment, I can not get the appropriate version of ChromeDriver as the following screenshot shows. Therefore on my machine any Katalon test...

Katalon released the host fix v9.3.1 on 29 Feb.

If you haven’t updated your Katalon to the v9.3.1, you should upgrade it.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [March 2, 2024, 2:01pm UTC](https://forum.katalon.com/t/out-of-memory-while-executing-test-suite-collection/121443/13 "2024-03-02T14:01:01Z")

</div>

> [@p.kayam](#):
>
> In the execution of the suite collection I have ‘max concurrent session’ to 4 so four sessions are executing parallelly.

Why do you use the Parallel mode of Test Suite Collection? What sort of benefit do you expect to have? **Do you expect that your test suite collection will run 4 times faster than the sequential execution?** Have you measured the speed using stopwatch?

I have studied the speed issue a few years ago. I concluded negative.

* * *

Katalon offers an alternative approach of parallelism:

> **[Run multiple test suites in parallel with Agents | Katalon Docs](https://docs.katalon.com/docs/katalon-platform/execute/test-execution-with-testops/local-test-environments/run-multiple-test-suites-in-parallel-with-agents)**
>
> Configure parallel executions

Possibly this offering would provide you faster test execution. Beware, you need to purchace enough number of KRE licences for the number of parallelism you want.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [March 3, 2024, 8:08am UTC](https://forum.katalon.com/t/out-of-memory-while-executing-test-suite-collection/121443/14 "2024-03-03T08:08:26Z")

</div>

I made another post just to express my idea:

[http://forum.katalon.com/t/parallel-mode-of-test-suite-collection-does-it-run-faster-than-the-sequential-mode/122336](http://forum.katalon.com/t/parallel-mode-of-test-suite-collection-does-it-run-faster-than-the-sequential-mode/122336)

---

<div class="post-metadata">

**Author:** ![p.kayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/p.kayam/32/20464_2.png) [@p.kayam](https://forum.katalon.com/u/p.kayam)\
**Post date:** [March 3, 2024, 5:08pm UTC](https://forum.katalon.com/t/out-of-memory-while-executing-test-suite-collection/121443/15 "2024-03-03T17:08:18Z")

</div>

> [@kazurayam](#):
>
> Do you expect that your test suite collection will run 4 times faster than the sequential execution?

I can run 4 suites parallelly, So for Ex: I have 8 suites that take 60 min to execute, If I enable Parallel execution with ‘max concurrent session’ to 4 then Katalon will run 4 suites parallelly and start the remaining suites once the previous suites are done, so in 30 minutes I can complete all 8 suites

---

<div class="post-metadata">

**Author:** ![p.kayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/p.kayam/32/20464_2.png) [@p.kayam](https://forum.katalon.com/u/p.kayam)\
**Post date:** [March 3, 2024, 5:12pm UTC](https://forum.katalon.com/t/out-of-memory-while-executing-test-suite-collection/121443/16 "2024-03-03T17:12:07Z")

</div>

> [@kazurayam](#):
>
> Which version of Katalon Studio did you use when the problem occured?

I was using 8.6.8 and now updated Katlaon to 9.3.1 Out of memory issue is solved.

Thanks all for the help!
