开发者

Growing in the "Virtual bytes" performance counter

开发者 https://www.devze.com 2022-12-19 11:09 出处:网络
I am suffering from an \"Out of memory\" exception in my Windows Service after running it for few hours under huge workload.

I am suffering from an "Out of memory" exception in my Windows Service after running it for few hours under huge workload. I used the following performance counters to detect memory leaks:

  • bytes in all heap

  • Private bytes
  • Virtual bytes

The first 2 counters are going up and down regularly ... I cant see anything wrong in them. but the 3rd one is growing very slowly by time, the counter is going up and down t开发者_运维知识库oo but at the end it is increasing by time. What does that mean?

My Win Service is .NET which is calling some functions from a C++ DLL and also using a 3rd party which have some unmanaged code in it.

Does this indicate a memory leak in the managed code / unmanaged code ? or simply this wont help?

Thanks


Take a look at the clr profiler so you can monitor your usage. If it only crashes under hudge load there may not be an error so much as a new design constraint to handle the load.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号