Finding memory leak

前端 未结 4 1384
情深已故
情深已故 2021-02-02 03:11

I have a web application that I wrote using a lot of different 3rd party components, a CMS and of course my code. For some reason I get out of memory exception.

4条回答
  •  故里飘歌
    2021-02-02 03:40

    Since it appears you can reproduce your issue, sometimes the simplest approach is to remove things you think might be the root cause, and test again (unless you need a lot of time to see if it grows a lot or not?)

    At some point the bug will stop happening, and you'll know what bit of code was responsible.

    However, depending on your code base, it's not always easy to remove code and still have something that you can test (i.e. without crashing the application).

提交回复
热议问题