Unmanaged memory grows up - memory leak on Linux
-
- Posts: 15
- Joined: Mon Aug 31, 2020 9:19 am
Unmanaged memory grows up - memory leak on Linux
Hi all,
After updating from 2020.3.2 to 2021.3.2 we noticed that unmanaged memory grows up - about 100mb on every pdf-generation.
Unmanaged memory grows up permanently on every request and doesn't return. We made a memory dump via dotMemory.
Environment: Kubernets, Linux (debian), .Net Core 3.1, 2021.3.2, PDF
P.S. We are very sad. We can't to upgrade SDK for a year (since september last year). On every new engine's release we attempt to upgrade it but the new release contains too many troubles and bugs related to Linux hosting.
Do you perform the engine's testing on Linux? cos it is a big pain for us.
Sample of code Memory
After updating from 2020.3.2 to 2021.3.2 we noticed that unmanaged memory grows up - about 100mb on every pdf-generation.
Unmanaged memory grows up permanently on every request and doesn't return. We made a memory dump via dotMemory.
Environment: Kubernets, Linux (debian), .Net Core 3.1, 2021.3.2, PDF
P.S. We are very sad. We can't to upgrade SDK for a year (since september last year). On every new engine's release we attempt to upgrade it but the new release contains too many troubles and bugs related to Linux hosting.
Do you perform the engine's testing on Linux? cos it is a big pain for us.
Sample of code Memory
-
- Posts: 15
- Joined: Mon Aug 31, 2020 9:19 am
Re: Unmanaged memory grows up - memory leak on Linux
Also I get an error when I start two or more parallel requests and pod shuts down with 139 error
worker_1 | free(): invalid pointer
worker_1 | free(): invalid pointer
exited with code 139
worker_1 | free(): invalid pointer
worker_1 | free(): invalid pointer
exited with code 139
-
- Posts: 6245
- Joined: Tue Mar 20, 2018 5:34 am
Re: Unmanaged memory grows up - memory leak on Linux
Hello,
We need some additional time to investigate the issue, we will let you know about the result.
Thank you.
We need some additional time to investigate the issue, we will let you know about the result.
Thank you.
-
- Posts: 6245
- Joined: Tue Mar 20, 2018 5:34 am
Re: Unmanaged memory grows up - memory leak on Linux
Hello,
To test the memory consumption - we need a specific report with data on which to reproduce it all. And for a complete analysis, we need a sample project.
As for the code, we can already see that different static options are set here. Maybe somewhere else is set that we do not know about, but it affects it.
Thank you.
To test the memory consumption - we need a specific report with data on which to reproduce it all. And for a complete analysis, we need a sample project.
As for the code, we can already see that different static options are set here. Maybe somewhere else is set that we do not know about, but it affects it.
Thank you.
Re: Unmanaged memory grows up - memory leak on Linux
You can use this project with 2 routes. Multiple call /report or /report/parallel to reproduce memory leak in linux
- Attachments
-
- StimulMemoryTests.7z
- (5.92 KiB) Downloaded 111 times
-
- Posts: 6245
- Joined: Tue Mar 20, 2018 5:34 am
Re: Unmanaged memory grows up - memory leak on Linux
Hello,
We need some additional time to investigate the issue, we will let you know about the result.
Thank you.
We need some additional time to investigate the issue, we will let you know about the result.
Thank you.
-
- Posts: 15
- Joined: Mon Aug 31, 2020 9:19 am
Re: Unmanaged memory grows up - memory leak on Linux
Up
Lech Kulikowski wrote: ↑Mon Jun 14, 2021 6:54 am Hello,
We need some additional time to investigate the issue, we will let you know about the result.
Thank you.
-
- Posts: 6245
- Joined: Tue Mar 20, 2018 5:34 am
Re: Unmanaged memory grows up - memory leak on Linux
Hello,
We are still working on that issue, we will let you know about the result.
Thank you.
#4797
We are still working on that issue, we will let you know about the result.
Thank you.
#4797
-
- Posts: 15
- Joined: Mon Aug 31, 2020 9:19 am
Re: Unmanaged memory grows up - memory leak on Linux
Up((
Lech Kulikowski wrote: ↑Mon Aug 30, 2021 1:06 pm Hello,
We are still working on that issue, we will let you know about the result.
Thank you.
#4797
-
- Posts: 6245
- Joined: Tue Mar 20, 2018 5:34 am
Re: Unmanaged memory grows up - memory leak on Linux
Hello,
We are still working on that issue, we will let you know about the result.
Thank you.
We are still working on that issue, we will let you know about the result.
Thank you.