# Debug.log size limit

**URL:** <https://forum.katalon.com/t/debug-log-size-limit/41728>\
**Category:** Integrations\
**Tags:** reports, integrations, katalon-studio\
**Created:** [March 31, 2020, 4:40pm UTC](https://forum.katalon.com/t/debug-log-size-limit/41728 "2020-03-31T16:40:24Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![joao.alves](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@joao.alves](https://forum.katalon.com/u/joao.alves)\
**Post date:** [March 31, 2020, 4:40pm UTC](https://forum.katalon.com/t/debug-log-size-limit/41728/1 "2020-03-31T16:40:24Z")

</div>

Hi all,

I am doing a massive number of tests with Katalon Studio and noticed that the debug.log of the project in-use is becoming HUGE, with 700 MB already.

My question:  
**Is there anyway to put a size limit to the logs, debug.log specifically?**

Thanks in advance.  
Best Regards

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [March 31, 2020, 4:42pm UTC](https://forum.katalon.com/t/debug-log-size-limit/41728/2 "2020-03-31T16:42:06Z")

</div>

Take a look at these settings:

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/2/20bdb561f590f91f1bcddf8bf8caad2ba482523e.png)

And read this help topic:

[https://docs.katalon.com/katalon-studio/docs/working-with-execution-log.html#logs-configuration](https://docs.katalon.com/katalon-studio/docs/working-with-execution-log.html#logs-configuration)

---

<div class="post-metadata">

**Author:** ![joao.alves](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@joao.alves](https://forum.katalon.com/u/joao.alves)\
**Post date:** [April 1, 2020, 10:41pm UTC](https://forum.katalon.com/t/debug-log-size-limit/41728/3 "2020-04-01T22:41:30Z")

</div>

Hi @Russ_Thomas,

I’ve already looked into it but sincerely, it didn’t help because I want to keep the log configurations as it is right now.  
What I want to confirm if there is any other way to limit log file sizes, either via prompt, menu config or in log.properties parameters.

Are you able to confirm this?

Thanks in advance.  
Best Regards

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [April 1, 2020, 10:44pm UTC](https://forum.katalon.com/t/debug-log-size-limit/41728/4 "2020-04-01T22:44:22Z")

</div>

> [@joao.alves](#):
>
> Are you able to confirm this?

Actually, I don’t think I understand the issue. Let’s try these guys…

@ThanhTo @duyluong @Brandon_Hein @kazurayam

---

<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:** [April 1, 2020, 11:11pm UTC](https://forum.katalon.com/t/debug-log-size-limit/41728/5 "2020-04-01T23:11:23Z")

</div>

You can significantly decrease the size of the log by disabling logging executed steps.

[https://docs.katalon.com/katalon-studio/docs/working-with-execution-log.html](https://docs.katalon.com/katalon-studio/docs/working-with-execution-log.html)

> Log executed test steps  
> Starting from **Katalon Studio version 7.0** , an option to disable _Log executed test steps_ is available in **Project Settings \> Executions**. By enabling or disabling this option, you can decide whether the logs include executed test steps or not.  
> By disabling logging executed step, you should be able to decrease the size of the log overall.

However, … see [Project Settings \> Executions \> Enable/Disable logging executed steps; is it deprecated?](http://forum.katalon.com/t/project-settings-executions-enable-disable-logging-executed-steps-is-it-deprecated/41799)

---

<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:** [April 1, 2020, 11:32pm UTC](https://forum.katalon.com/t/debug-log-size-limit/41728/6 "2020-04-01T23:32:59Z")

</div>

@joao.alves

> [@joao.alves](#):
>
> What I want to confirm if there is any other way to limit log file sizes,

I think there is no way to set that digit.

How do you want Katalon Studio to behave when the log file size comes up to the limit you set? Do you want Katalon Studio intentionally crash? Or do you want Katalon Studio continue running without logging any longer? To me, both look undesirable.

I think you should try to make the log less verbose and decrease the size of log by configuring logs by some methods proposed in  
[https://docs.katalon.com/katalon-studio/docs/working-with-execution-log.html](https://docs.katalon.com/katalon-studio/docs/working-with-execution-log.html)

---

<div class="post-metadata">

**Author:** ![Brandon\_Hein](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/brandon_hein/32/1092_2.png) [@Brandon\_Hein](https://forum.katalon.com/u/Brandon_Hein)\
**Post date:** [April 2, 2020, 12:04am UTC](https://forum.katalon.com/t/debug-log-size-limit/41728/7 "2020-04-02T00:04:37Z")

</div>

I think this would need to be handled in the KS application code. The log.properties just exposes _some_ settings publicly, but not all.

KS uses slf4j from what I can tell. One way to do this in slf4j is to create “rolling” logs, where you define a max file size, and the logs “roll” within that size (i.e. a FIFO configuration). This is done by using the RollingFileAppender instead of the usual FileAppender. See this discussion:

> <https://stackoverflow.com/questions/35259646/how-to-keep-rolling-log-file-as-per-file-size>

Long story short, I don’t believe this is something you can configure yourself.

I’m more curious about what could be blowing those logs up so much… Can you give us a snippet of the debug.log file? We have a relatively large project as well, but our debug.log is sitting at ~100k.

---

<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:** [April 2, 2020, 12:23pm UTC](https://forum.katalon.com/t/debug-log-size-limit/41728/8 "2020-04-02T12:23:47Z")

</div>

Hold on !

> [@joao.alves](#):
>
> I am doing a massive number of tests with Katalon Studio and noticed that the debug.log of the project in-use is becoming HUGE, with 700 MB already.

What is **`debug.log`** here?

I am confused. I have never seen a file named `debug.log` in any of Katalon Studio projects. I use Katalon Studio version 7.2.1 now.

If the `debug.log` is something your script creates for itself = Katalon Studio has nothing to do with it, then all the comments I wrote above are completely out of the point.

Or `debug.log` is something newly introduced by newer Katalon Studio than version 7.2.1?

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [April 2, 2020, 2:58pm UTC](https://forum.katalon.com/t/debug-log-size-limit/41728/9 "2020-04-02T14:58:50Z")

</div>

> [@kazurayam](#):
>
> What is **`debug.log`** here?

Agreed. I assume we’re talking about the regular `.log` file.

Unless something else is specified here?

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/d/d3ccc44d2b47ed81b5b25f9555bc8095a7d59ec7.png)

---

<div class="post-metadata">

**Author:** ![Brandon\_Hein](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/brandon_hein/32/1092_2.png) [@Brandon\_Hein](https://forum.katalon.com/u/Brandon_Hein)\
**Post date:** [April 2, 2020, 3:16pm UTC](https://forum.katalon.com/t/debug-log-size-limit/41728/10 "2020-04-02T15:16:46Z")

</div>

Mine appears in the project directory:

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/7/7cb356525bdee4b7323b7ce8ccecf37984b764ce.png)

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [April 2, 2020, 3:30pm UTC](https://forum.katalon.com/t/debug-log-size-limit/41728/11 "2020-04-02T15:30:35Z")

</div>

What triggers it?

---

<div class="post-metadata">

**Author:** ![Brandon\_Hein](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/brandon_hein/32/1092_2.png) [@Brandon\_Hein](https://forum.katalon.com/u/Brandon_Hein)\
**Post date:** [April 2, 2020, 3:36pm UTC](https://forum.katalon.com/t/debug-log-size-limit/41728/12 "2020-04-02T15:36:43Z")

</div>

That I’m not sure, maybe @ThanhTo can clarify. I honestly never look at this file. Here’s an example of what’s logged there in mine:

```
[1010/174038.520:ERROR:process_memory_win.cc(73)] ReadMemory at 0x4e5c000 of 560 bytes failed: Only part of a ReadProcessMemory or WriteProcessMemory request was completed. (0x12B)
[1010/174038.932:ERROR:process_snapshot_win.cc(389)] ReadMemory PEB
[1010/174038.932:ERROR:process_memory_win.cc(73)] ReadMemory at 0xc0000 of 64 bytes failed: Only part of a ReadProcessMemory or WriteProcessMemory request was completed. (0x12B)
[1010/174038.932:WARNING:pe_image_reader.cc(340)] could not read dos header from C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[1010/174038.932:ERROR:process_memory_win.cc(73)] ReadMemory at 0xc0000 of 64 bytes failed: Only part of a ReadProcessMemory or WriteProcessMemory request was completed. (0x12B)
[1010/174038.932:WARNING:pe_image_reader.cc(340)] could not read dos header from C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[1010/174038.932:ERROR:process_memory_win.cc(73)] ReadMemory at 0x77560000 of 64 bytes failed: Only part of a ReadProcessMemory or WriteProcessMemory request was completed. (0x12B)
[1010/174038.932:WARNING:pe_image_reader.cc(340)] could not read dos header from C:\Windows\SYSTEM32\ntdll.dll
[1010/174038.932:ERROR:process_memory_win.cc(73)] ReadMemory at 0x77560000 of 64 bytes failed: Only part of a ReadProcessMemory or WriteProcessMemory request was completed. (0x12B)
[1010/174038.932:WARNING:pe_image_reader.cc(340)] could not read dos header from C:\Windows\SYSTEM32\ntdll.dll
[1010/174038.933:ERROR:process_memory_win.cc(73)] ReadMemory at 0x76370000 of 64 bytes failed: Only part of a ReadProcessMemory or WriteProcessMemory request was completed. (0x12B)
[1010/174038.933:WARNING:pe_image_reader.cc(340)] could not read dos header from C:\Windows\System32\KERNEL32.DLL
[1010/174038.933:ERROR:process_memory_win.cc(73)] ReadMemory at 0x76370000 of 64 bytes failed: Only part of a ReadProcessMemory or WriteProcessMemory request was completed. (0x12B)
[1010/174038.933:WARNING:pe_image_reader.cc(340)] could not read dos header from C:\Windows\System32\KERNEL32.DLL
[1010/174038.933:ERROR:process_memory_win.cc(73)] ReadMemory at 0x75880000 of 64 bytes failed: Only part of a ReadProcessMemory or WriteProcessMemory request was completed. (0x12B)
[1010/174038.933:WARNING:pe_image_reader.cc(340)] could not read dos header from C:\Windows\System32\KERNELBASE.dll
[1010/174038.933:ERROR:process_memory_win.cc(73)] ReadMemory at 0x75880000 of 64 bytes failed: Only part of a ReadProcessMemory or WriteProcessMemory request was completed. (0x12B)
[1010/174038.933:WARNING:pe_image_reader.cc(340)] could not read dos header from C:\Windows\System32\KERNELBASE.dll
```

---

<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:** [April 2, 2020, 10:17pm UTC](https://forum.katalon.com/t/debug-log-size-limit/41728/14 "2020-04-02T22:17:36Z")

</div>

Googling with keywords “chrome debug.log” showed me some URL which talks about `debug.log`.

---

<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:** [April 2, 2020, 10:20pm UTC](https://forum.katalon.com/t/debug-log-size-limit/41728/15 "2020-04-02T22:20:15Z")

</div>

One of the post I happened to find:

> <https://stackoverflow.com/questions/38558587/chrome-auto-create-debug-log-how-to-stop-it>

tells that `debug.log` is created by Google Chrome browser, is a internal debug logging. Some particular version of Chrome emits huge amount of debug prints. Upgrading Chrome to newer version may stop it.

---

<div class="post-metadata">

**Author:** ![joao.alves](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@joao.alves](https://forum.katalon.com/u/joao.alves)\
**Post date:** [April 3, 2020, 4:25pm UTC](https://forum.katalon.com/t/debug-log-size-limit/41728/16 "2020-04-03T16:25:13Z")

</div>

Hi guys,

Sorry for the late response and thanks for all the inputs!

In fact, I am managing a Katalon project (in the 6.3.3 app version) that was not originally created by me.  
Nevertheless, I am not aware how Chrome can be related with debug.log creation since I don’t use the browser in the machine where I have Katalon installed.

debug.log as shown above, it reflects at least all the execution log. Not user what triggers it, if it is every call within the run process or not (it seems so).  
Regarding the log.properties, there is nothing declared in there.  
I even restarted the app several times and the debug.log does not have any kind of housekeeping. Thus, it is never reset or archived.

Hope it helps you to help me understand.

Best Regards

---

<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:** [April 3, 2020, 9:11pm UTC](https://forum.katalon.com/t/debug-log-size-limit/41728/17 "2020-04-03T21:11:29Z")

</div>

As I mentioned,

> [@kazurayam](#):
>
> Upgrading Chrome to newer version may stop it.

[https://docs.katalon.com/katalon-studio/docs/handle-webdrivers.html#update-a-webdriver](https://docs.katalon.com/katalon-studio/docs/handle-webdrivers.html#update-a-webdriver)

---

<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:** [April 3, 2020, 9:20pm UTC](https://forum.katalon.com/t/debug-log-size-limit/41728/18 "2020-04-03T21:20:47Z")

</div>

Brandon\_Hein showed his debug.log file. In there we could see a few lines of

```auto
[1010/174038.932:WARNING:pe_image_reader.cc(340)] could not read dos header from 
    C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

```

This line indicates that his debug.log is related to chrome.exe. This is the reason why I started talking about Chrome browser.

> [@joao.alves](#):
>
> Nevertheless, I am not aware how Chrome can be related with debug.log creation since I don’t use the browser in the machine where I have Katalon installed.

Have you read the content of debug.log file? Could you copy && and paste here the top 100 lines of your debug.log file?
