What is 'JNI Global reference'
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using jProfiler to find memory leaks in a Java swing application. I have identified instances of a JFrame which keeps growing in count. This frame is opened, and then closed. Using jProfiler, and viewing the Paths to GC Root there is only one reference, 'JNI Global reference'. What does this mean? Why is it hanging on to each instance of the frame? 回答1: Wikipedia has a good overview of Java Native Interface , essentially it allows communication between Java and native operating system libraries writen in other languages. JNI global