How to solve Memory Fragmentation

后端 未结 10 1993
天涯浪人
天涯浪人 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条回答
  •  时光说笑
    2020-11-29 17:45

    The problem does happen on Unix, although it's usually not as bad.

    The Low-framgmentation heap helped us, but my co-workers swear by Smart Heap (it's been used cross platform in a couple of our products for years). Unfortunately due to other circumstances we couldn't use Smart Heap this time.

    We also look at block/chunking allocating and trying to have scope-savvy pools/strategies, i.e., long term things here, whole request thing there, short term things over there, etc.

提交回复
热议问题