开发者

How much memory does my java thread take?

开发者 https://www.devze.com 2023-02-03 11:10 出处:网络
Is there a way to find out how much memory my java thread 开发者_高级运维is taking in the VM? For example, using stack trace dump, or some other means.

Is there a way to find out how much memory my java thread 开发者_高级运维is taking in the VM?

For example, using stack trace dump, or some other means.

Thanks


Java threads use the heap as shared memory. Individual threads have their stack (the size of which you can set via the -Xss command line option, default is 512KB), but all other memory (the heap) does not belong to specific threads, and asking how much of it one specific thread uses simply does not make sense.

0

精彩评论

暂无评论...
验证码 换一张
取 消