When can a memory leak occur?

前端 未结 8 2099
野性不改
野性不改 2021-02-08 06:52

I don\'t know what to think here...

We have a component that runs as a service. It runs perfectly well on my local machine, but on some other machine (on both machine RA

相关标签:
8条回答
  • 2021-02-08 07:38

    Check the profile of other processes on the machine using Process Explorer from sysinternals - you will get bad_alloc if memory is short, even if it's not you that's causing memory pressure.

    Check your own memory usage using umdh to get snapshots and compare usage profile over time. You'll have to do this early in the cycle to avoid blowing up the tool, but if your process's behaviour is not degrading over time (ie. no sudden pathological behaviour) you should get accurate info on its memory usage at time T vs time T+t.

    0 讨论(0)
  • 2021-02-08 07:43
     ~className(){
    
     //delete stuff in here
    
    }
    
    0 讨论(0)
提交回复
热议问题