Is the memory not reclaimed for Delphi apps running on Windows Server 2008 (sp1)?

后端 未结 8 1522
日久生厌
日久生厌 2021-01-03 10:13

We have a D2007 application whose memory footprint grows steadily when running on Windows Server 2008 (x64, sp1).
It behaves normally on Windows Server 2003 (x32 or x64)

8条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-03 10:35

    Are you referring to the Private Bytes, Virtual Size or the Working Set? Run Process Explorer from SysInternals to monitor the memory for a better idea of what is going on.

    I don't have any specific experience with this (although I am running 2008 x64 SP1, so could test it) but I am going to suggest you create a test application that allocates a bunch of memory and then free it. Run Process Explorer from SysInternals to monitor the memory.

    If you test application reproduces the same behavior then try creating some memory pressure by allocating memory in another process - so much that it will fail unless that previously freed memory in the first process is reclaimed.

    If that continues to fail, then try a different memory manager. Maybe it is FastMM that is doing it.

提交回复
热议问题