when use the heap dump of visualVm, there is an option to see all the instances of a specific class, but when the instances is to much, i got this error:
out of memory in heap walker: To avoid this error,increase the -Xmx value in the etc/netbeans.conf file in NetBeans IDE installation directory.
But the error should have nothing to do with the netbeans.conf, it should be something like a visualVM.conf file. And I also did not find the configuration file in my jdk. So how can i solve this error?
There are two solutions for this :
Option 1 is more convenient and recommended