As a JProfiler beginner, I encountered an error while testing my program. When I clicked on the button in the "recorded objects" view of the Telemetries tab, the program threw an exception: "java.lang.StackOverflowError thrown from the UncaughtExceptionHandler in thread "main"". This caused the connection between JProfiler and IDEA to break, and JProfiler displayed an "overhead warning". Why is this error occurring, and what steps can I take to use this feature properly? my program is:
public class MemoryAnalyse {
public static void main(String[] args) throws InterruptedException {
int pid = 0;
while(pid < 1000000){
Person person = new Person(pid,"person_" + pid );
pid++;
Thread.sleep(100);
System.out.println("person = " + person);
}
}
}
when I clicked the recorded Objects button, it asked me to record allocation to view data. I followed the hint but error occured.enter image description here enter image description hereenter image description here How can I resolve this issue?