タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

Pythonとpythonとdebugに関するiori_oのブックマーク (2)

  • Python の GC のデバッグ機能 - methaneのブログ

    Python のデーモン型のプログラム(具体的に言うと Loggerhead という bzr のリポジトリブラウザ)が大量(具体的に言うと100MB以上)メモリをっていたので、それを調べた時のメモ。 まず、当にそれだけのメモリを利用しているのかどうかを meliae というメモリプロファイラで調べたんだけど、18MBくらいしか使ってなかった。 meliae の使い方はまた今度に回すとして、今回はそんなにメモリを使うはずがないのにメモリを使ってしまっているケースについて。 この場合は、循環参照を大量に作ることによってメモリブロックがたくさん確保され、循環参照コレクタが実行された後も(メモリブロック内に1つでも生き残っているオブジェクトがいるなどの理由で)OSにメモリブロックが返されないという原因が考えられる。(循環参照以外の原因でメモリが大量に確保されてる可能性もあるんだけどね) 今日の

    Python の GC のデバッグ機能 - methaneのブログ
  • Getting Started - Amon Documentation

    Monitoring Agent¶ The Amon Agent is a small piece of software that runs on your hosts. Its job is to collect metrics and bring them to Amon so that you can do something useful with your monitoring and performance data. These pages describe how to configure and run the Amon agent Installing the agent Agent configuration Running the agent Testing the agent Manual install Plugins¶ These pages describ

  • 1