2

私のRailsアプリケーションでは、リクエストごとにオブジェクトの総数が増えています。GCの実行後、オブジェクトは解放されません。Rails3.2.3とruby1.9.3を使用しています。

誰かが私を正しい方向に向けることができますか?どこから始めれば?

利用可能なツールは何ですか?

私が試したツール。ObjectSpaceは、これらのオブジェクトが作成された行を参照していません。Memprofはruby1.9.3では動作しません。Oinkは、これらのオブジェクトが作成された行を参照していません。

4

1 に答える 1

0

perftools.rb has the ability to mention what methods create how many objects:

CPUPROFILE_OBJECTS=1

Profile object allocations instead of cpu/wall time. Each sample represents one object created inside that function.

However, that's profiling all objects, not merely un-garbage-collected objects. Also, it segfaults on me some of the time.

于 2012-07-12T03:12:38.203 に答える