# Disable the oneagent core dump

**URL:** <https://community.dynatrace.com/t/disable-the-oneagent-core-dump/33067>\
**Category:** Open Q&A\
**Tags:** memory-dump, oneagent\
**Created:** [October 21, 2021, 6:12pm UTC](https://community.dynatrace.com/t/disable-the-oneagent-core-dump/33067 "2021-10-21T18:12:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vjrk83](https://avatars.discourse-cdn.com/v4/letter/v/e480ec/32.png) [@vjrk83](https://community.dynatrace.com/u/vjrk83)\
**Post date:** [October 21, 2021, 6:12pm UTC](https://community.dynatrace.com/t/disable-the-oneagent-core-dump/33067/1 "2021-10-21T18:12:25Z")

</div>

Hello Dyntrace Team

Is there a better way to disable the oneagent dumproc at the time of installation ?

I dont see any option listed as&nbsp;--set-orignal-coredump under oneagenctl --help .

Also is it advisable to disable the oneagent dumproc ? We’re seeing a agent dumping lots of core files and filling the disk space.

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![D\_Miller](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/d_miller/32/22229_2.png) [@D\_Miller](https://community.dynatrace.com/u/D_Miller)\
**Post date:** [October 25, 2021, 12:36pm UTC](https://community.dynatrace.com/t/disable-the-oneagent-core-dump/33067/2 "2021-10-25T12:36:40Z")

</div>

This is a known issue with the Log Analytics agent. We raised a support ticket for this. I would suggest you do the same.

In the mean time you can do the following steps to stop the Core Files being generated.

- backup&nbsp;/var/lib/dynatrace/oneagent/agent/config/loganalyticsagent.persistence
- remove the content of&nbsp;/var/lib/dynatrace/oneagent/agent/config/loganalyticsagent.persistence&nbsp;- file must exist, but it has to be empty (0 bytes)
- enable Log Monitoring and restart OA (./oneagentctl --set-app-log-content-access=true --restart-service&nbsp;)

---

<div class="post-metadata">

**Author:** ![The\_AM](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@The\_AM](https://community.dynatrace.com/u/The_AM)\
**Post date:** [October 26, 2021, 11:15pm UTC](https://community.dynatrace.com/t/disable-the-oneagent-core-dump/33067/3 "2021-10-26T23:15:35Z")

</div>

Hi [@vjrk83](https://community.dynatrace.com/user/45550) ,

I would suggest to open a [support ticket](https://one.dynatrace.com/hc/en-us) on this. The OneAgent simply inherits settings for your current CoreDump. You would need to change settings for your distribution for OneAgent to copy those settings upon installation time. Uninstalling OneAgent will restore the original core dump settings, this is all explained here: [https://www.dynatrace.com/support/help/shortlink/crash-analysis#operating-system-changes](https://www.dynatrace.com/support/help/shortlink/crash-analysis#operating-system-changes)

Also, the OneAgent will try to determine if it may actually be Dynatrace at fault here or not. I would suggest to work with [Support](https://support.dynatrace.com/) or [Dynatrace ONE](https://www.dynatrace.com/services-support/dynatrace-one/) (in-product chat) to determine the cause here and if any configuration changes may be required for your particular case to resolve it.

---

<div class="post-metadata">

**Author:** ![roman\_z](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@roman\_z](https://community.dynatrace.com/u/roman_z)\
**Post date:** [October 27, 2021, 11:01am UTC](https://community.dynatrace.com/t/disable-the-oneagent-core-dump/33067/4 "2021-10-27T11:01:49Z")

</div>

Hi,

if you don’t want to be core dumping handled by Dynatrace OneAgent on linux server

You could manually change content of file&nbsp;/proc/sys/kernel/core\_pattern

Original content (before installation of Dynatrace OneAgent) is backed up to&nbsp;/opt/dynatrace/oneagent/agent/conf/original\_core\_pattern

The file will be changed back during next OneAgent upgrade.

Ask dynatrace support If you want to disable it permanently. They can disable it permanently for specified hosts.

Best regards

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [October 28, 2021, 6:34am UTC](https://community.dynatrace.com/t/disable-the-oneagent-core-dump/33067/5 "2021-10-28T06:34:29Z")

</div>

Hi [@vjrk83](https://community.dynatrace.com/user/45550)&nbsp;,

Agree with&nbsp;[@The\_AM](https://community.dynatrace.com/user/21137),&nbsp;open ticket and support will add to your environment the ability to switch the dump off for hosts, and you will get a switch per host&nbsp; and host group to switch off/on the crash dump that OA is creating by default

Here is a screenshot from environment after dynatrace one switch the flag on.

 ![Yosi_Neuman_0-1635402670034.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/c/fcfe6d5b5d8ab73397b8f4e5a5e58df305896f36.png)

HTH

Yos
