使用ps命令,每隔一段时间检查一次内存状态

使用top命令,shitf+M,按内存使用排序

静态分析:使用工具mtrace 动态分析:使用valgrind或者memwatch等工具

kasan工具: https://blog.csdn.net/SweeNeil/article/details/110404284

https://cloud.tencent.com/developer/article/1518011

https://zhuanlan.zhihu.com/p/523513468

https://www.povcfe.site/posts/kernel_kasan/

https://yoc.docs.t-head.cn/linuxbook/Chapter4/kasan.html

https://www.kernel.org/doc/html/v4.14/dev-tools/kasan.html

blog: https://www.povcfe.site/