JVisualVM profile analysis - finding the source of a large number of primitive types?

I am trying to reduce the memory size of my application. In JVisualVM heap environments, it is reported that the objects occupying the largest space are as follows:

  • char []
  • byte []
  • INT []

This is not particularly useful. How can I track these objects back to the parent classes that hold them?

thank

+3
source share
2 answers

VisualVM calculates the saved size. You have to add the column manually, the default view does not seem to have it.

+4
source

, , , String, char[]. " ", , -. , String , char[].

" " VisualVM. , .

, , YourKit . , VisualVM, , . , , .

+3

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


All Articles