WebService memory usage when hosted in CassiniDev after rebuild

I have got a WCF service which takes up quote some memory, around 1GB.

Its hosted locally in development asp.net hosting (CassiniDev).

When I make a change in code and hit build, server doesn't stop working. It actually starts to use updated code seamlessly, except for memory.

From what it appears it just doubles memory usage after rebuild, so I am not quite sure whats going on here. I have got rather little memory on my machine so sometimes this causes total system freeze.

I am wondering why doesn't it run some GC collect once it starts updating dlls for example, cause doubling memory size def sounds like something interesting is going on. And obviously after its rebuilt, there is no way to access previous version of service anymore, so it would make sense to me if it would not double memory usage, but use the same instead.

EDIT: I guess this could be generalized to memory management when we push an updated dll to service directory, for IIS hosted services and development too.

链接地址: http://www.djcxy.com/p/54936.html

上一篇: 托管的WCF服务以任何方式受限?

下一篇: 重建后托管在CassiniDev中的WebService内存使用情况