[ 
https://issues.apache.org/jira/browse/NETBEANS-1269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16768705#comment-16768705
 ] 

Ciprian Bulboaca edited comment on NETBEANS-1269 at 2/14/19 8:54 PM:
---------------------------------------------------------------------

It's the same behavior. I tried JDK1.8, JDK1.9 and even OpenJDK11.

I was hoping this would be fixed under Netbeans 10.0 but unfortunately I get 
the same behavior. Netbeans 9/10.0 is just sitting for a long time (at times 2 
minutes or more) at "Initializing data" step and then at Usages progress bar.

+*In case this helps:*+
 * if I repeat the find usages scenario right from the start on the exact same 
method, it does the same thing, it's just sitting there for a long time. 
Eventually, it shows the results correctly but it's so slow that I lose my 
thread of thought until the results are coming up (e.g. I start doing something 
else while waiting for the results and then when I get them, I'm wondering why 
am I doing the find usages).
 * once the find usages results are shown, if I click on refresh button 
(tool-tip "Refresh the refactoring data"), Netbeans skips the "Initializing 
data" step and it goes to preparing usages view showing Usages progress bar at 
0% for about half the overall time it usually takes to show the results; when 
showing the results, there is no progress displayed, it just goes from 0% to 
showing the results so I can't even tell if it is completely hanging or doing 
something; this could be a side effect and not a problem in itself because 
there are other find usages scenarios where we see the progress as expected

Note that in our case, we have multiple products under a suite release. So we 
have about 12 medium to large Netbeans projects, all opened in Netbeans at once 
while we work on them. A few of the projects have other projects as 
dependencies along with many 3rd party libraries as dependencies. Maybe that is 
why nobody is hitting this behavior.

For testing purposes, I've tried repeating the find usages scenario just with 
one large project opened (without having any other project opened, not even the 
dependencies)
 * Netbeans 9/10 is still taking a considerable amount of time at "Initializing 
data" (and in previous Netbeans 8.0.2, we didn't even notice this step as it's 
so quick and you immediately start seeing the find usages progress bar along 
with the results)
 * once it is passed the "Initializing data" step, it goes into Usages progress 
bar but this time, we do get to see an accurate progress from 0% to 100% along 
with find usages results as expected

Could this be a setting somewhere in the new Netbeans? Could something be set 
in our case because we usually import all the settings from previous version 
when upgrading?

This is happening on all of our Windows 10 Pro development machines. I'm not 
sure why nobody else is hitting this behavior but it is a big problem for us in 
development and it's forcing us to use Netbeans 8.0.2 until this gets fixed.

Thanks in advance for your help!


was (Author: ciprianb):
It's the same behavior. I tried JDK1.8, JDK1.9 and even OpenJDK11.

I was hoping this would be fixed under Netbeans 10.0 but unfortunately I get 
the same behavior. Netbeans 9/10.0 is just sitting for a long time (at times 2 
minutes or more) at "Initializing data" step and then at Usages progress bar.

+*In case this helps:*+
 * if I repeat the find usages scenario right from the start on the exact same 
method, it does the same thing, it's just sitting there for a long time. 
Eventually, it shows the results correctly but it's so slow that I lose my 
thread of thought until the results are coming up (e.g. I start doing something 
else while waiting for the results and then when I get them, I'm wondering why 
am I doing the find usages).
 * once the find usages results are shown, if I click on refresh button 
(tool-tip "Refresh the refactoring data"), Netbeans skips the "Initializing 
data" step and it goes to preparing usages view showing Usages progress bar at 
0% for about half the overall time it usually takes to show the results; when 
showing the results, there is no progress displayed, it just goes from 0% to 
showing the results so I can't even tell if it is completely hanging or doing 
something; this could be a side effect and not a problem in itself because 
there are other find usages scenarios where we see the progress as expected

Note that in our case, we have multiple products under a suite release. So we 
have about 12 medium to large Netbeans projects, all opened in Netbeans at once 
while we work on them. A few of the projects have other projects as 
dependencies along with many 3rd party libraries as dependencies. Maybe that is 
why nobody is hitting this behavior.

For testing purposes, I've tried repeating the find usages scenario just with 
one large project opened (without having any other project opened, not even the 
dependencies):(
 * Netbeans 9/10 is still taking a considerable amount of time at "Initializing 
data" (and in previous Netbeans 8.0.2, we didn't even notice this step as it's 
so quick and you immediately start seeing the find usages progress bar along 
with the results)
 * once it is passed the "Initializing data" step, it goes into Usages progress 
bar but this time, we do get to see an accurate progress from 0% to 100% along 
with find usages results as expected

Could this be a setting somewhere in the new Netbeans? Could something be set 
in our case because we usually import all the settings from previous version 
when upgrading?

This is happening on all of our Windows 10 Pro development machines. I'm not 
sure why nobody else is hitting this behavior but it is a big problem for us in 
development and it's forcing us to use Netbeans 8.0.2 until this gets fixed.

Thanks in advance for your help!

> Find usages is very slow in Netbeans 9.0 & 10.0 and it sits a long time at 
> Initializing data and Usages progress bar, in some cases without showing any 
> progress at all
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: NETBEANS-1269
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1269
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 9.0, 10.0
>         Environment: Netbeans 9.0 based on jdk-10.0.1 on Windows 10 Pro
> Netbeans 10.0 based on OpenJDL11 on Windows 10 Pro
>            Reporter: Ciprian Bulboaca
>            Priority: Critical
>
> Find usages in Netbeans 9.0 is very slow (compared to Netbeans 8.0.2).
> For example, in our large modular project we have, doing a find usages on any 
> method in any class takes a very long time (4-5 minutes) in Netbeans 9.0. For 
> about half the time, Netbeans 9.0 is just sitting at "Initializing data" and 
> for the other half, it is just sitting at Usages progress bar always showing 
> 0% progress! Then, after a long period of waiting, it just shows the results 
> without even updating the progress bar (or at least you can't tell it is 
> updating the progress bar).
> This all behaves normally under Netbeans 8.0.2 where find usages is showing 
> results right away (as it's scanning) and the whole process takes only a few 
> seconds!
> We've tried bumping up the -J-Xmx setting to 1536m in netbeans.conf and 
> although we see the memory allocated is increasing (in Task Manager), 
> Netbeans 9.0 behaves the same way.
> I'm wondering if anybody else is experiencing this. Is there any workaround 
> for this issue? This affects our day to day work very significantly since we 
> rely on fast 'find usages' operations all the time in our analysis & coding 
> work.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to