determining java memory usage

后端 未结 8 2457
说谎
说谎 2020-12-05 22:01

Hmmm. Is there a primer anywhere on memory usage in Java? I would have thought Sun or IBM would have had a good article on the subject but I can\'t find anything that looks

8条回答
  •  半阙折子戏
    2020-12-05 22:38

    If you are using a pre 1.5 VM - You can get the approx size of objects by using serialization. Be warned though.. this can require double the amount of memory for that object.

提交回复
热议问题