JVM Heap - is there a way to determine how much heap a single thread consumes?

Is there a way to programmatically (without using profilers, etc.) determine how much memory a heap consumes a single thread? Or is there a way to set a limit on the memory consumed by the stream?

(I think it might be possible in Java7, though)

+3
source share
1 answer
+1

Source: https://habr.com/ru/post/1788496/


All Articles