5

nodejs プログラムのメモリ リークの問題を webkit-devtools-agent ( https://github.com/c4milo/node-webkit-agent ) で調査しようとしています。

ヒープのスナップショットを取得すると、ヒープ サイズが増加し続けていることがわかります。しかし、私のコードの構造が複雑なためです。これらのオブジェクトを生成するコードを掘り下げるのは簡単ではないようです。

プロフィールページには、次のようなものしか表示されません。

(Array)
[] @28631
[] @31853
(map descriptors)[] @44687
function NativeModule() @35997

それらのオブジェクトの内容とそれらのオブジェクトを生成するソースを見つける方法はありますか?

node.js のデバッグに関する記事を読みました ( http://dtrace.org/blogs/bmc/2012/05/05/debugging-node-js-memory-leaks/ )。それは非常に驚くべきことです。残念ながら、Linuxサーバーでは利用できないと思います。

ありがとう!

4

1 に答える 1

2

You could always try node-inspector. Lucky for you I slapped together an install .gif for node-inspector yesterday to answer a different SO question.

PS - node-inspector runs on all platforms and uses the webkit debugger.

于 2014-01-24T07:02:05.603 に答える