I fear benchmarking this will be annoying

async-profiler[1] combined with flame graphs can be helpful to find bottlenecks of long running tasks (> few seconds).

very easy to use, low overhead, can be attached at runtime

$ ./profiler.sh -d 30 -f ./flamegraph.html 52218
Profiling for 30 seconds
Done

(might require setting some kernel flags and sometimes JVM flags to improve the output but the default is often useable)

its usually the first thing I do when I have to optimize something - before even looking at the code.

-mbien

[1] https://github.com/jvm-profiling-tools/async-profiler


On 25.05.22 18:01, Matthias Bläsing wrote:
Hi,

this might be related:

https://github.com/apache/netbeans/pull/3516

I also had the feeling, that performance suffered from it, but Dusan
neither reacted to a direct fix for things, that were broken by that
PR, nor to later requests for other performance fixes.

Might be worth trying to revert that and see if performance improves
(this might need revert too as it was the followup fix:
https://github.com/apache/netbeans/pull/3583)

If reverting the PR helps, we should consider that.

Greetings

Matthias

Am Mittwoch, dem 25.05.2022 um 15:25 +0000 schrieb Jean-Marc Borer:
Hello,

Since NB 13 and Java 17, I am experiencing again poor code indexing
performances as it used to be with older version of NB. 12.4 was running
fine.

I checked the IDE logs and see only entries like:
INFO [null]: Last record repeated again.
WARNING [org.netbeans.modules.maven.nodes.DependenciesNode]: Could not
determine module name for artifact null
WARNING [null]: Last record repeated 2 more times.
INFO [org.netbeans.ui.metrics.debugger]: Debugger session
crystal-position-application-acc-nimbus started at localhost for Java
INFO [org.netbeans.modules.git.status]: GitInterceptor.refreshTask:
Scanning in progress, trying again in 10?000ms
INFO [null]: Last record repeated again.
INFO [org.netbeans.modules.subversion.FileStatusCache]:
FileStatusCache.refreshTask: Scanning in progress, trying again in 10?000ms
INFO [org.netbeans.modules.git.status]: GitInterceptor.refreshTask:
Scanning in progress, trying again in 10?000ms
INFO [org.netbeans.modules.subversion.FileStatusCache]:
FileStatusCache.refreshTask: Scanning in progress, trying again in 10?000ms
INFO [org.netbeans.modules.git.status]: GitInterceptor.refreshTask:
Scanning in progress, trying again in 10?000ms
INFO [org.netbeans.modules.subversion.FileStatusCache]:
FileStatusCache.refreshTask: Scanning in progress, trying again in 10?000ms
INFO [org.netbeans.modules.git.status]: GitInterceptor.refreshTask:
Scanning in progress, trying again in 10?000ms
INFO [org.netbeans.modules.subversion.FileStatusCache]:
FileStatusCache.refreshTask: Scanning in progress, trying again in 10?000ms
INFO [org.netbeans.modules.git.status]: GitInterceptor.refreshTask:
Scanning in progress, trying again in 10?000ms
WARNING [org.netbeans.modules.java.source.parsing.VanillaPartialReparser]:
Javac returned startpos: 17?726 > endpos: -1
I
I have not idea what happens. Indeed I have a bunch of small JAXB generated
files with my projects, but I used not to be an issue.

I am running on a SSD disk.

*Product Version:* Apache NetBeans IDE 13

*Java:* 17.0.2; OpenJDK 64-Bit Server VM 17.0.2+8-LTS

*Runtime:* OpenJDK Runtime Environment 17.0.2+8-LTS

*System:* Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)

*User directory:* C:\Users\borerjc\AppData\Roaming\NetBeans\13

*Cache directory:* C:\projects\.netbeans\cache\13


Any help would be appreciated.


Cheers,


JMB

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists





---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to