netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

NetBeans slows down on debugging

Open ananyahk opened this issue 3 years ago • 2 comments

Apache NetBeans version

Apache NetBeans 15

What happened

When I started remote debugging on NetBeans, on clicking on attach debugger, NetBeans froze for 15 or more minutes and was taking enormous time to execute the line where the breakpoint was placed. It then threw the issue saying: OutOfSpace Memory- Java Heap. It threw this exception: 2022-09-19T08:12:53 1663589573578 353 global 1000 46

C:\Users\ananyahk\AppData\Roaming\NetBeans\12.6\var\log\heapdump.hprof java.lang.OutOfMemoryError: Java heap space java.util.concurrent.locks.ReentrantLock$Sync newCondition 190 jrt:/java.base/java/util/concurrent/locks/ReentrantLock$Sync.class java.util.concurrent.locks.ReentrantLock newCondition 537 jrt:/java.base/java/util/concurrent/locks/ReentrantLock.class javax.swing.TimerQueue run 195 jrt:/java.desktop/javax/swing/TimerQueue.class java.lang.Thread run 833 jrt:/java.base/java/lang/Thread.class 2022-09-19T09:49:24 1663595364268 91 700 31 UI_USER_CONFIGURATION UI_USER_CONFIGURATION org.netbeans.modules.uihandler.Bundle Windows 10, 10.0, amd64 Java HotSpot(TM) 64-Bit Server VM, 18.0.1.1+2-6, Java(TM) SE Runtime Environment, 18.0.1.1+2-6 Apache NetBeans IDE 12.6 OutOfMemoryError: Java heap space <Please provide a description of the problem or the steps to reproduce> ********* [NetBeansIssue.txt](https://github.com/apache/netbeans/files/9599746/NetBeansIssue.txt)

How to reproduce

No response

Did this work correctly in an earlier version?

No / Don't know

Operating System

Windows 10

JDK

18

Apache NetBeans packaging

Apache NetBeans platform

Anything else

No response

Are you willing to submit a pull request?

Yes

Code of Conduct

Yes

ananyahk avatar Sep 19 '22 14:09 ananyahk

Please attach some self performance snapshot.

lkishalmi avatar Sep 20 '22 06:09 lkishalmi

Try to delete all your breakpoints and repeat test. It's must be faster

6PATyCb avatar Oct 09 '22 14:10 6PATyCb