Two things that have helped me in the past:
- close inactive projects
- close NB, delete the cache (on windows:
C:\Users\YOURNAME\AppData\Local\NetBeans\Cache\19, but the cache dir is
also shown on the startup screen ), restart NB
Tilman
On 13.02.2024 16:34, Blaine Heinfeld wrote:
I am trying to understand and resolve a severe performance issue with
NetBeans 19 running on Azul Java 11.0.13; OpenJDK 64-Bit Server VM
11.0.13+8-LTS.
My project consists of about 260 classes and has probably around
75,000 lines of total text, including some extensive HTML
documentation files. The project is still growing. and will probably
get 15-20% larger.
Simply opening the project and letting it complete all of the startup
scans takes about 20 minutes on an otherwise idle computer. When
opening a 100 line class file, the Navigator pane displaying method
names just took about 4 minutes to populate.
Double clicking on a method name in the Navigator pane gives me a
"Lengthy operation in progress" "Calculating declaration position"
message that stays on the screen for about a minute.
Even clicking on a menu can result in delays and a wait cursor for a
period of time. Everything in NetBeans seems very slow.
During all this, the computer hosting NetBeans shows no CPU, memory,
or network constraints. The project files are on a NAS which also
shows no performance issues.
And I'm not experiencing performance issues with other applications on
the same computer using the same NAS. The issue really seems
restricted to NetBeans.
When I started this project I didn't have these issues. But it does
appear they have gotten worse over time and as the project gets bigger.
Any ideas about what might be happening and how to fix it? My first
guess would be that NetBeans is memory constrained in some way, but
that would need to be some NetBeans setting. The computer shows over
8GB of free memory with NetBeans using under 600MB.
Blaine