# ASM out of memory XML/JSON processing

**URL:** <https://community.f5.com/t/asm-out-of-memory-xml-json-processing/31969>\
**Category:** Technical Forums\
**Tags:** availability, asm-advanced-waf, security\
**Created:** [January 28, 2015, 4:04pm UTC](https://community.f5.com/t/asm-out-of-memory-xml-json-processing/31969 "2015-01-28T16:04:22Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![MVA\_60288](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@MVA\_60288](https://community.f5.com/u/MVA_60288)\
**Post date:** [January 28, 2015, 4:04pm UTC](https://community.f5.com/t/asm-out-of-memory-xml-json-processing/31969/1 "2015-01-28T16:04:22Z")

</div>

Hi, anyone else run into this error while continuing to up the XML memory allocation? We’ve gone to 500mb to 700mb (SOL10803) and still having this error re-occur. I have a case open with F5, but curious if anyone has run into this and what your (hopefully) final solution was.

Full error “ASM out of memory error: event code X239 Exceeded maximum memory assigned for XML/JSON processing”

---

<div class="post-metadata">

**Author:** ![Torti](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@Torti](https://community.f5.com/u/Torti)\
**Post date:** [February 3, 2015, 3:08pm UTC](https://community.f5.com/t/asm-out-of-memory-xml-json-processing/31969/2 "2015-02-03T15:08:14Z")

</div>

it all depends on the total amount of RAM. use the search, there are some old discussions about that.

---

<div class="post-metadata">

**Author:** ![MVA](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@MVA](https://community.f5.com/u/MVA)\
**Post date:** [February 3, 2015, 3:26pm UTC](https://community.f5.com/t/asm-out-of-memory-xml-json-processing/31969/3 "2015-02-03T15:26:25Z")

</div>

We are at 900MB XML memory now and so far all is good. I understand from F5 support we can increase to a maximum of 2000MB. There is an enhancement request (ID380171) to provide tools to monitor memory used by XML parser - for now there is no visibility into XML memory use.

---

<div class="post-metadata">

**Author:** ![Torti](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@Torti](https://community.f5.com/u/Torti)\
**Post date:** [February 4, 2015, 11:41am UTC](https://community.f5.com/t/asm-out-of-memory-xml-json-processing/31969/4 "2015-02-04T11:41:17Z")

</div>

At the moment, we ar at 3GB 😉

Till 11.2.x, there was the possibility to see the usage in the bd log file. But they removed this with a later release.

---

<div class="post-metadata">

**Author:** ![MVA](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@MVA](https://community.f5.com/u/MVA)\
**Post date:** [February 4, 2015, 1:31pm UTC](https://community.f5.com/t/asm-out-of-memory-xml-json-processing/31969/5 "2015-02-04T13:31:35Z")

</div>

Wow, 3GB. I suspect the ceiling we’re given is due to our hardware. We are running on 3900 with 8GB RAM and have ASM/LTM, both provisioned as nominal. I understand we can gain more memory by re-provisioning LTM as minimal, as our current LTM usage is very light. If we run into this issue again we plan to jump to F5 recommended 2000MB.

---

<div class="post-metadata">

**Author:** ![Torti](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@Torti](https://community.f5.com/u/Torti)\
**Post date:** [February 5, 2015, 7:00am UTC](https://community.f5.com/t/asm-out-of-memory-xml-json-processing/31969/6 "2015-02-05T07:00:22Z")

</div>

oh yeah the 3900. We replaced it by a 5000s with 32gb memory, because of the memory problem. We are running a lot of webservices.

Im not shure, if it is a good idea to run LTM as minimal. F5 allways say, we have to run at nominal, although our LTM usage is very light.

With the 3900 the maximum xml memory was at 1.7GB. That was the limit, but it wasn’t enough and we had to restart the system after some time.

But the 1.7gb was only possible with a custom memory setting!

---

<div class="post-metadata">

**Author:** ![MVA](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@MVA](https://community.f5.com/u/MVA)\
**Post date:** [February 11, 2015, 1:19pm UTC](https://community.f5.com/t/asm-out-of-memory-xml-json-processing/31969/7 "2015-02-11T13:19:39Z")

</div>

I heard back from F5 support, they are suspecting a memory leak and have issued me an engineering HF. They identify the issue ID489705, memory leak in bd’s XML engine. We’re running good at 900MB XML memory, so staying put for now. I’m hoping this fix is included in the Ghost HF.

---

<div class="post-metadata">

**Author:** ![Torti](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@Torti](https://community.f5.com/u/Torti)\
**Post date:** [February 13, 2015, 9:02am UTC](https://community.f5.com/t/asm-out-of-memory-xml-json-processing/31969/8 "2015-02-13T09:02:05Z")

</div>

ah ok, a feature. Waht release version is running on your systems?

---

<div class="post-metadata">

**Author:** ![MVA](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@MVA](https://community.f5.com/u/MVA)\
**Post date:** [February 13, 2015, 12:55pm UTC](https://community.f5.com/t/asm-out-of-memory-xml-json-processing/31969/9 "2015-02-13T12:55:35Z")

</div>

Version 11.5.1

---

<div class="post-metadata">

**Author:** ![Torti](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@Torti](https://community.f5.com/u/Torti)\
**Post date:** [February 16, 2015, 7:17am UTC](https://community.f5.com/t/asm-out-of-memory-xml-json-processing/31969/10 "2015-02-16T07:17:39Z")

</div>

nice, we are running the same release on our new systems. Now its clear, why the bd process take 6.3gb ram 🙂

It sounds like they didn’t told you the fixed release for this bug?

---

<div class="post-metadata">

**Author:** ![swo0sh\_gt\_13163](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@swo0sh\_gt\_13163](https://community.f5.com/u/swo0sh_gt_13163)\
**Post date:** [June 29, 2015, 6:33am UTC](https://community.f5.com/t/asm-out-of-memory-xml-json-processing/31969/11 "2015-06-29T06:33:44Z")

</div>

Guys,

How did you see the memory utilization of BD? I need to verify the current Memory utilization of ASM. Hopefully this thread would be helpful.

I have used “top” command to see the BD process Memory utilization, however is there a way to filter any particular PID from the “top” result?

Cheers! Darshan

---

<div class="post-metadata">

**Author:** ![Torti](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@Torti](https://community.f5.com/u/Torti)\
**Post date:** [June 29, 2015, 9:04am UTC](https://community.f5.com/t/asm-out-of-memory-xml-json-processing/31969/12 "2015-06-29T09:04:58Z")

</div>

The PID will change after a restart of the process - i.e. with restart of the the device.

If you want to use a managemant tool with snmp, you have to poll 2 values

1. the names with a walk through 1.3.6.1.2.1.25.4.2.1.2 and look for ‘bd’

2. the memory 1.3.6.1.2.1.25.5.1.1.2.x - x is the result of 1

---

<div class="post-metadata">

**Author:** ![swo0sh\_gt\_13163](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@swo0sh\_gt\_13163](https://community.f5.com/u/swo0sh_gt_13163)\
**Post date:** [June 29, 2015, 1:10pm UTC](https://community.f5.com/t/asm-out-of-memory-xml-json-processing/31969/13 "2015-06-29T13:10:52Z")

</div>

Thanks Torti!

---

<div class="post-metadata">

**Author:** ![prt1969\_120570](https://avatars.discourse-cdn.com/v4/letter/p/a88e57/32.png) [@prt1969\_120570](https://community.f5.com/u/prt1969_120570)\
**Post date:** [December 13, 2017, 2:25pm UTC](https://community.f5.com/t/asm-out-of-memory-xml-json-processing/31969/14 "2017-12-13T14:25:39Z")

</div>

Stupid question, but I am assuming that if you run into this problem, there may be tcp streams that do not get processed by ASM and are just sent thru without being inspected?

---

<div class="post-metadata">

**Author:** ![MVA](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@MVA](https://community.f5.com/u/MVA)\
**Post date:** [December 13, 2017, 2:30pm UTC](https://community.f5.com/t/asm-out-of-memory-xml-json-processing/31969/15 "2017-12-13T14:30:20Z")

</div>

When this issue occurs traffic is blocked for that virtual server, I believe error is something like not enough memory to process XML request. It fails close.

---

<div class="post-metadata">

**Author:** ![gu3rr3ir0](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gu3rr3ir0](https://community.f5.com/u/gu3rr3ir0)\
**Post date:** [October 30, 2020, 3:04pm UTC](https://community.f5.com/t/asm-out-of-memory-xml-json-processing/31969/16 "2020-10-30T15:04:03Z")

</div>

Does anyone have a “final” solution for this. I have the exact same case, we up from 500 to 700 but still having issues with the out of memory logs still appearing.

The trial and error of updating the Total XML Memory according to the “excedeed memory allocated” is not a good option, because it seems the more memory you configure the more memory XML resources will consume.

At least the logs of exceeded memory allocated in bd.log should give us the correct value and not only 20, 30 or 40 Mb more than we have configured, and even if you configure more 200MB it still is giving the same messages.

---

<div class="post-metadata">

**Author:** ![Lidev](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/lidev/32/3447_2.png) [@Lidev](https://community.f5.com/u/Lidev)\
**Post date:** [October 30, 2020, 4:07pm UTC](https://community.f5.com/t/asm-out-of-memory-xml-json-processing/31969/17 "2020-10-30T16:07:10Z")

</div>

Hi [gu3rr3ir0,](https://devcentral.f5.com/s/profile/0051T000008ePj3QAE)

I have followed theses 2 KB below and by modify the values of **total\_xml\_memory (**max 1GB**)** and **additional\_xml\_memory\_in\_mb**. I have no longer an ASM out of memory XML error.

> **[myF5](https://my.f5.com/manage/s/article/K64422353)**

> **[myF5](https://my.f5.com/manage/s/article/K10803)**

Regards
