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.
私を助けてください。VisualVM でヒープ ダンプを分析します。
値 == "0" のすべての文字列の量を取得するにはどうすればよいですか? 次のクエリがあります。
select count(s) from java.lang.String s where s.toString().equals("0");
しかし、うまくいきません。「0」の値を持つすべての文字列の量と、可能であればメモリ内のサイズを受け取りたいです。
それは私の問題を解決しました
select count(heap.objects('java.lang.String'), "it.toString().equals('0')")