-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dotnet core v3.1/3.0 Process.Start execute shell command Memory Leak #3989
Comments
|
I have find the same issue. |
|
any response ?? |
|
Please Pay Attention !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ex: public static List RunTaskAndReturnStdout(string fileName, string arguments, string workingDirectory = "") |
|
We have the exact same problem. Is there any progress on this or at least a known workaround? |
|
I'm currently investigating an out of memory problem on our linux device (arm32) and came accross this issue. Every minute we start a process to collect dhcp information which over time seems to allocate/consume more and more memory in the process which does the I did a test run using the modified sample code from @lychee-ui in which i start the cli tool Every 100th call i logged the memory consumption of the running process using After 69500 calls of |
|
FYI: Mono project had a similar issue. |
|
@BagJo i looked into the code of |
|
Can confirm the Memory Leak. Anybody knows a fix or workaround ? |
|
@ThomasBoettcherHolschen my workaround for the moment is a self implemented interop assembly which starts the process i need frequently by execv. I do not pass the arguments from managed code which the .net code does. But that's not an ideal solution. |
|
It's disappointing that Microsoft has left such a serious bug alone for a year |
|
A leak in |
|
I verified the fix with a quick test using .NET Core 3.1.9 using the sample code. The memory leak is gone. |
|
Thanks a lot! Great news! |
How to install 3.1.9 in CentOS 7 ? Anyone any Suggest |
|
@irac-ding you download the latest version from here https://dotnet.microsoft.com/download/dotnet-core/3.1 |
|
This should be closed as resolved in both .net core 3.1.7 and .net core 5, no? |
|
@stephentoub @danmoseley can you let us know if this issue was already resolved? Trying to close some old issues. |
|
I believe so. |
dotnet core v3.1/3.0 Process.Start execute shell command Memory Leak
System: Ubuntu 18.04 / CentOS 7.6 / SUSE 15
SDK: 3.1.100
ex:
The text was updated successfully, but these errors were encountered: