Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我top用来检查我自己的程序的内存使用情况,它继续增加,直到我的交换空间开始被使用。
top
这不像是内存泄漏,因为当我关闭程序时,内存使用量会立即下降。
我应该如何找出问题所在?
谢谢 !
这很可能是内存泄漏。例如,使用 Valgrind 分析您的代码 (http://www.cprogramming.com/debugging/valgrind.html)。