How to solve Memory Fragmentation

后端 未结 10 1996
天涯浪人
天涯浪人 2020-11-29 16:57

We\'ve occasionally been getting problems whereby our long-running server processes (running on Windows Server 2003) have thrown an exception due to a memory allocation fail

10条回答
  •  猫巷女王i
    2020-11-29 17:40

    The simple, quick and dirty, solution is to split the application into several process, you should get fresh HEAP each time you create the process.

    Your memory and speed might suffer a bit (swapping) but fast hardware and big RAM should be able to help.

    This was old UNIX trick with daemons, when threads did not existed yet.

提交回复
热议问题