java - Is it possible to check heap memory usage by pool? -


i've been working on optimizing program having lot of issues memory leaks. leaks gone now, occasional runs of major gc still put dent in ps old gen. know can check basic overall memory information through runtime, possible check usage in ps eden, ps survivor, , ps old within program?

this article can out

you can write custom code analyze memory & output in form

collection time: 82037 collection count: 116 ps survivor space: init = 1703936(1664k) used = 65536(64k) committed = 32047104(31296k) max = 32047104(31296k) ps eden space: init = 10551296(10304k) used = 0(0k) committed = 69795840(68160k) max = 113049600(110400k) ps old gen: init = 27983872(27328k) used = 239432344(233820k) committed = 357957632(349568k) max = 357957632(349568k) code cache: init = 2555904(2496k) used = 19949568(19482k) committed = 20185088(19712k) max = 50331648(49152k) ps perm gen: init = 21757952(21248k) used = 148450536(144971k) committed = 155058176(151424k) max = 268435456(262144k) 

good read


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -