# SUSE 11 Memory Leak

**URL:** <https://forums.suse.com/t/suse-11-memory-leak/41484>\
**Category:** SUSE Linux Enterprise Server\
**Created:** [September 11, 2023, 6:07pm UTC](https://forums.suse.com/t/suse-11-memory-leak/41484 "2023-09-11T18:07:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohan\_Khanna](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rohan_khanna/32/10497_2.png) [@Rohan\_Khanna](https://forums.suse.com/u/Rohan_Khanna)\
**Post date:** [September 11, 2023, 6:07pm UTC](https://forums.suse.com/t/suse-11-memory-leak/41484/1 "2023-09-11T18:07:24Z")

</div>

Hey folks,

Was hoping if anyone could assist - i am experiencing Memory Leak on our SUSE 11 physical box - we’ve executed supportconfig - but unable to gather any helpful insight on it.

Any suggestions or direction would be helpful.

Regards,

---

<div class="post-metadata">

**Author:** ![malcolmlewis1](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis1/32/10022_2.png) [@malcolmlewis1](https://forums.suse.com/u/malcolmlewis1)\
**Post date:** [September 11, 2023, 9:04pm UTC](https://forums.suse.com/t/suse-11-memory-leak/41484/2 "2023-09-11T21:04:51Z")

</div>

@Rohan_Khanna Hi and welcome to the Forum 😄

Sounds like you might have to run valgrind, or do you know the misbehaving application/service?

Does the system have ECC RAM, if so do you run rasdaemon to check for errors?

---

<div class="post-metadata">

**Author:** ![Rohan\_Khanna](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rohan_khanna/32/10497_2.png) [@Rohan\_Khanna](https://forums.suse.com/u/Rohan_Khanna)\
**Post date:** [September 12, 2023, 4:05pm UTC](https://forums.suse.com/t/suse-11-memory-leak/41484/3 "2023-09-12T16:05:37Z")

</div>

Thank you @malcolmlewis1!

We haven’t used valgrind yet - we were trying to use supportconfig - which is the advised tool from SUSE - do you believe valgrind can help us get more insight on Memory Leak?

We don’t know which application is responsible for this but we have a reason to believe that it could be OS related processes

We don’t have ECC RAM.

Let me know if you believe i can share supportconfig logs here which might help get better insight?

Regards

---

<div class="post-metadata">

**Author:** ![malcolmlewis1](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis1/32/10022_2.png) [@malcolmlewis1](https://forums.suse.com/u/malcolmlewis1)\
**Post date:** [September 12, 2023, 4:35pm UTC](https://forums.suse.com/t/suse-11-memory-leak/41484/4 "2023-09-12T16:35:42Z")

</div>

@Rohan_Khanna You probably need to run `top` to monitor, also watch `/proc/meminfo` if not sure what application it is…

Is it over a long period of time, or fairly quickly?

What sort of services are running?

---

<div class="post-metadata">

**Author:** ![Rohan\_Khanna](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rohan_khanna/32/10497_2.png) [@Rohan\_Khanna](https://forums.suse.com/u/Rohan_Khanna)\
**Post date:** [September 12, 2023, 4:47pm UTC](https://forums.suse.com/t/suse-11-memory-leak/41484/5 "2023-09-12T16:47:15Z")

</div>

Hi @malcolmlewis1,

So here’s the interesting part - when we run “top” command we don’t see that memory add up - for example when our memory consumption on SUSE is showing “60 GBs” - when we run top command we only see processes which are contributing to 30 GBs - remaining 30 GBs we don’t know where that is coming from.

We have tools like Dynatrace - it shows the remaining memory consumption is happening thru “Other Processes” when we connected with Dynatrace Support they indicated its not an Application process but most likely OS process.

not sure if its related but we identified “tmpfs” had an allocated space of 32 GBs - however, its used memory was only in KBs so we are still not sure what’s contributing to that 30 GBs of memory

---

<div class="post-metadata">

**Author:** ![malcolmlewis1](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis1/32/10022_2.png) [@malcolmlewis1](https://forums.suse.com/u/malcolmlewis1)\
**Post date:** [September 12, 2023, 4:56pm UTC](https://forums.suse.com/t/suse-11-memory-leak/41484/6 "2023-09-12T16:56:06Z")

</div>

@Rohan_Khanna Sure it’s not just cached? The `cat /proc/meminfo` should show where.

If cached, then does it change when you run `/usr/bin/echo 3 > /proc/sys/vm/drop_caches`?

For example;

```auto
free -h
               total used free shared buff/cache available
Mem: 125Gi 10Gi 89Gi 395Mi 26Gi 114Gi

/usr/bin/echo 3 > /proc/sys/vm/drop_caches

free -h
               total used free shared buff/cache available
Mem: 125Gi 10Gi 115Gi 395Mi 1.7Gi 115Gi

```

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [September 12, 2023, 5:10pm UTC](https://forums.suse.com/t/suse-11-memory-leak/41484/7 "2023-09-12T17:10:36Z")

</div>

@Rohan_Khanna You said “SUSE 11” but SUSE is the company so presumably you mean SLES11 but which SP?

---

<div class="post-metadata">

**Author:** ![Rohan\_Khanna](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rohan_khanna/32/10497_2.png) [@Rohan\_Khanna](https://forums.suse.com/u/Rohan_Khanna)\
**Post date:** [September 12, 2023, 5:14pm UTC](https://forums.suse.com/t/suse-11-memory-leak/41484/8 "2023-09-12T17:14:37Z")

</div>

Apologies should’ve mentioned this before but its SUSE 11 SP4

---

<div class="post-metadata">

**Author:** ![Rohan\_Khanna](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rohan_khanna/32/10497_2.png) [@Rohan\_Khanna](https://forums.suse.com/u/Rohan_Khanna)\
**Post date:** [September 12, 2023, 5:19pm UTC](https://forums.suse.com/t/suse-11-memory-leak/41484/9 "2023-09-12T17:19:00Z")

</div>

Hi @malcolmlewis1 ,

Sure will execute this and will share an update shortly - btw its a gradual increase in memory consumption does not happen overnight, could take about couple of weeks or a month to consume that much memory.

---

<div class="post-metadata">

**Author:** ![Rohan\_Khanna](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rohan_khanna/32/10497_2.png) [@Rohan\_Khanna](https://forums.suse.com/u/Rohan_Khanna)\
**Post date:** [September 12, 2023, 6:02pm UTC](https://forums.suse.com/t/suse-11-memory-leak/41484/10 "2023-09-12T18:02:08Z")

</div>

Hi @malcolmlewis1 ,

Apologies it is ECC RAM - but we are unable to install rasdaemon - it says “No Provider available”

as for cache command please find details below - yes we do see a change there:

Before:  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/f/fd14b9ee68e25d0fb14a531bc6ade25e66982d07.png)

---

<div class="post-metadata">

**Author:** ![Rohan\_Khanna](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rohan_khanna/32/10497_2.png) [@Rohan\_Khanna](https://forums.suse.com/u/Rohan_Khanna)\
**Post date:** [September 12, 2023, 6:02pm UTC](https://forums.suse.com/t/suse-11-memory-leak/41484/11 "2023-09-12T18:02:45Z")

</div>

After Execution of Command

![image](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/2/24783246a8d11e7591df419b9cb5e85e3e7aa237.png)

Let me know your thoughts.

---

<div class="post-metadata">

**Author:** ![malcolmlewis1](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis1/32/10022_2.png) [@malcolmlewis1](https://forums.suse.com/u/malcolmlewis1)\
**Post date:** [September 12, 2023, 7:19pm UTC](https://forums.suse.com/t/suse-11-memory-leak/41484/12 "2023-09-12T19:19:58Z")

</div>

@Rohan_Khanna So that recovered 10G by the looks? I suggest you capture the output of the meminfo, wait some time and then do another capture to see what has been consumed.

Maybe some sysctl tweaks are needed…?

So the actual applications you have running all look normal for their memory consumption?

---

<div class="post-metadata">

**Author:** ![Rohan\_Khanna](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rohan_khanna/32/10497_2.png) [@Rohan\_Khanna](https://forums.suse.com/u/Rohan_Khanna)\
**Post date:** [September 13, 2023, 5:25pm UTC](https://forums.suse.com/t/suse-11-memory-leak/41484/13 "2023-09-13T17:25:46Z")

</div>

hi @malcolmlewis1 ,

So it seems meminfo came back to its original state after we executed the command - what tweaks of sysctl are you thinking of?

All Applications look normal we’ve not come across any app which shows memory consumption.

Any other suggestions you have in mind around this?

Regards,

---

<div class="post-metadata">

**Author:** ![malcolmlewis1](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis1/32/10022_2.png) [@malcolmlewis1](https://forums.suse.com/u/malcolmlewis1)\
**Post date:** [September 13, 2023, 6:11pm UTC](https://forums.suse.com/t/suse-11-memory-leak/41484/14 "2023-09-13T18:11:18Z")

</div>

@Rohan_Khanna So running the command sufficed to clean things up? So not a memory leak as such?

AFAIK the kernel (Newer kernels do) should take care of it when it hits it’s limits.

You shouldn’t need any tweaks hopefully now.

---

<div class="post-metadata">

**Author:** ![Rohan\_Khanna](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rohan_khanna/32/10497_2.png) [@Rohan\_Khanna](https://forums.suse.com/u/Rohan_Khanna)\
**Post date:** [September 15, 2023, 3:25pm UTC](https://forums.suse.com/t/suse-11-memory-leak/41484/15 "2023-09-15T15:25:41Z")

</div>

Hi @malcolmlewis1 ,

Memory was consumed again after few seconds of executing that command and this point our memory consumption continue to increase gradually no change in that - still suspect there is some memory leak happening.

Tried to run SupportConfig - but it has too much information not sure how to read through it easily to identify issue, any suggestions?

---

<div class="post-metadata">

**Author:** ![malcolmlewis1](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis1/32/10022_2.png) [@malcolmlewis1](https://forums.suse.com/u/malcolmlewis1)\
**Post date:** [September 15, 2023, 4:14pm UTC](https://forums.suse.com/t/suse-11-memory-leak/41484/16 "2023-09-15T16:14:38Z")

</div>

@Rohan_Khanna so I would run `/usr/bin/echo 3 > /proc/sys/vm/drop_caches && cat /proc/meminfo > pre-clean.txt` then wait a bit for the memory to be consumed and then run `cat /proc/meminfo > post-clean.txt` and compare the changes…

---

<div class="post-metadata">

**Author:** ![Rohan\_Khanna](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rohan_khanna/32/10497_2.png) [@Rohan\_Khanna](https://forums.suse.com/u/Rohan_Khanna)\
**Post date:** [October 24, 2023, 1:36pm UTC](https://forums.suse.com/t/suse-11-memory-leak/41484/17 "2023-10-24T13:36:20Z")

</div>

Hey apologies @malcolmlewis1,

Was unavailable last few days - this issue is back to haunt us.

Now based on your suggestion i tried the steps it seems the memory consumption starts increasing eventually.

Is there any tool which you would suggest that we can execute in order to identify which process it would be?

Regards

---

<div class="post-metadata">

**Author:** ![malcolmlewis1](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis1/32/10022_2.png) [@malcolmlewis1](https://forums.suse.com/u/malcolmlewis1)\
**Post date:** [October 24, 2023, 2:48pm UTC](https://forums.suse.com/t/suse-11-memory-leak/41484/18 "2023-10-24T14:48:32Z")

</div>

@Rohan_Khanna Hi, I would suggest setting up sar to monitor, perhaps `ps aux --sort=-%mem | head` or `ps -e -o pid,vsz,comm= | sort -n -k 2` then there is always the `top` command and press `m` to sort and monitor…

---

<div class="post-metadata">

**Author:** ![Rohan\_Khanna](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rohan_khanna/32/10497_2.png) [@Rohan\_Khanna](https://forums.suse.com/u/Rohan_Khanna)\
**Post date:** [October 24, 2023, 8:25pm UTC](https://forums.suse.com/t/suse-11-memory-leak/41484/19 "2023-10-24T20:25:15Z")

</div>

> [@malcolmlewis1](#):
>
> `ps aux --sort=-%mem | head` or `ps -e -o pid,vsz,comm= | sort -n -k 2`

Thanks , let me try this - will keep you posted.

---

<div class="post-metadata">

**Author:** ![Rohan\_Khanna](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rohan_khanna/32/10497_2.png) [@Rohan\_Khanna](https://forums.suse.com/u/Rohan_Khanna)\
**Post date:** [November 16, 2023, 4:03am UTC](https://forums.suse.com/t/suse-11-memory-leak/41484/20 "2023-11-16T04:03:40Z")

</div>

Hi @malcolmlewis1,

Monitoring using both was of no use to conclude which process is contributing towards this consumption.

Any other suggestion you have in mind?

Regards,

[Next page](https://forums.suse.com/t/suse-11-memory-leak/41484.md?page=2)
