There are so many standby memory taken after running the app a while RRS feed

  • Question

  • Hello MSFT,

    We got a problem while running a .net application on Windows 10 16GB RAM with SuperFetch service turned off. After running the app for about 1-2 hours, there are about 12 GB Standby memory which makes the app very slow.

    After using RAMMap to check out, we found there are lot of memory taken by log files.

    We are using log4net to do logging.

    Any suggestion on this situation?



    • Moved by Fei Hu Tuesday, January 16, 2018 9:39 AM From C#
    Friday, January 12, 2018 6:49 AM

All replies

  • More details:

    The client app is a WPF and the backend Windows Service is implemented using WCF.

    Friday, January 12, 2018 6:54 AM
  • If the issue is with your logging then please report the issue to the log4net team. These forums are for MS products only. You should also run static analysis on your code to ensure you're not leaking resources.

    Michael Taylor http://www.michaeltaylorp3.net

    Friday, January 12, 2018 2:46 PM
  • Hi,

    This forum is discussing and asking questions about the C# programming language, IDE, libraries, samples, and tools.

    Your question is more related the third party source Please query your question on https://logging.apache.org/log4net/ .

    Your thread would be off-topic since your query is outside of this forum scope of support.

    Your understanding and cooperation will be grateful.



    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, January 16, 2018 9:37 AM
  • It's a C# problem. We found that the FileStream does not release the memory in-time, which makes the huge standby memory.

    So, we need a solution on this.

    Is it an known bug of Microsoft .NET Framework, please help!

    Friday, January 19, 2018 3:09 AM
  • Not aware of any bugs in FileStream. Can you post your code? Are you properly disposing of the streams?

    Michael Taylor http://www.michaeltaylorp3.net

    Friday, January 19, 2018 3:23 AM