You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "mbien (via GitHub)" <gi...@apache.org> on 2024/08/12 00:01:40 UTC
[I] GraalVM Debugging Suppoert module can reduce debugging performance [netbeans]
mbien opened a new issue, #7663:
URL: https://github.com/apache/netbeans/issues/7663
### Body
while debugging a problem I noticed a performance anomaly while debugging NB 23 with NB 22.
benchmark:
- clear the test userdir (nbbuild/testuserdir/)
- start debugging a NB module
- create a new maven project using the dev build ide, measure the time between pressing finish and project open
results:
```
NB run1 run2 run3
22 42s 6:33
21 46s 7:04 38s
20 1:10
19 1:05 18s
```
The first observation is that the time is vastly different between runs. But even the faster runs are surprisingly slow. This is also no recent regression since I tested even NB 19.
The second observation is that the number of JarClassLoader warnings correlated with how long it took, example warning:
```
WARNING [org.netbeans.JarClassLoader]: Opening /home/mbien/NetBeansProjects/netbeans/nbbuild/netbeans/ide/modules/ext/truffle-api-24.0.0.jar took 651 ms
```
(there can be a lot of repeating warnings)
async profiler flamegraph showed that a most of the time time is spent in `org.graalvm.polyglot.*` codepaths.
[truffle_debug.html.zip](https://github.com/user-attachments/files/16576462/truffle_debug.html.zip)
[GraalEnginesProvider#enumarateLanguages](https://github.com/apache/netbeans/blob/f6e767325d4c98363794065ba60e559424ae1c2a/ide/libs.graalsdk/src/org/netbeans/libs/graalsdk/impl/GraalEnginesProvider.java#L149) specifically.
to verify this I uninstalled `GraalVM Debugging Support` and tested again:
```
NB run1 run2
22 2s 3s
```
(don't uninstall the module in your "production" IDE)
(debugging did still work)
This is going to need some more investigations.
### Committer
- [X] I acknowledge that I am a maintainer/committer in the Apache NetBeans project.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] GraalVM Debugging Support module can reduce debugging performance [netbeans]
Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net commented on issue #7663:
URL: https://github.com/apache/netbeans/issues/7663#issuecomment-3143926161
Thanks for pointing me at this issue. This is a consistent annoyance when testing. I have on occasion noticed it lock up completely and require force quit too.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] GraalVM Debugging Support module can reduce debugging performance [netbeans]
Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on issue #7663:
URL: https://github.com/apache/netbeans/issues/7663#issuecomment-3144017043
another workaround (outside of uninstalling GraalVM Debugging Support) is to temporarily disable breakpoints until you need them. Although this isn't always feasible. (breakpoint window has a button for that)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists