Did any one encountered a scenario where application under high memory allocation load performed second generation collection every 100 seconds ?
We using 64-bit server with 8-16 GB of physical memory.
Application has several GB of data what is stored in cache and can’t be cleaned from it because it’s actually used by application. In addition it receives a lot of request that allocate GEN 0 object during processing.
What it’s odd to me is the fact what GEN 2 collection performed evey 100 seconds like a clock. I was thinking it shuld be less predictable
If you are under high memory load, and using a lot of objects, then yes: GC will get busy… if it is hitting gen-2, then it sounds like you’ve got a lot of mid/long-life objects hanging around…
I’m assuming that memory usage is fairly stable? The above could indicate some kind of pseudo-leak (perhaps holding onto too many objects via static events, etc), or could just mean that you have a high memory usage!
How much memory are you using? Could you consider x64 and a ton of memory? Alternatively, would the 3gb switch (x86) buy you a few more bytes?