Python内存泄漏[关闭] - Python memory leaks [closed]

10/17 07:01
阅读数 0

问题:

Closed . 关闭 This question needs to be more focused . 这个问题需要更加集中 It is not currently accepting answers. 它目前不接受答案。

Want to improve this question?想改善这个问题吗? Update the question so it focuses on one problem only by editing this post .更新问题,使其仅通过编辑这篇文章来关注一个问题。

Closed 2 years ago . 2年前关闭。

I have a long-running script which, if let to run long enough, will consume all the memory on my system.我有一个长时间运行的脚本,如果让它运行足够长的时间,它将消耗我系统上的所有内存。

Without going into details about the script, I have two questions:在不详细介绍脚本的情况下,我有两个问题:

  1. Are there any "Best Practices" to follow, which will help prevent leaks from occurring?是否有任何“最佳实践”可以遵循,这将有助于防止发生泄漏?
  2. What techniques are there to debug memory leaks in Python?有哪些技术可以在 Python 中调试内存泄漏?

解决方案:

参考一: https://en.stackoom.com/question/61Pr
参考二: https://stackoom.com/question/61Pr
展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部