New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"RefreshWorkspace" progress running constantly #15

Closed
mkurz opened this Issue Jun 20, 2016 · 17 comments

Comments

Projects
None yet
5 participants
@mkurz

mkurz commented Jun 20, 2016

Azure Toolkit for Eclipse

When having projects in Eclipse which are not Dynamic Web applications but just normal projects my eclipse is getting crazy. There are RefreshWorkspace tasks running all the time and which occupies a processor all the time.
When I remove the non dynamic web application projects everyhing is normal again.
I had to remove the Azure Toolkit for Eclipse everything is back to normal again.

@mkurz

This comment has been minimized.

Show comment
Hide comment
@mkurz

mkurz Jun 20, 2016

I tried in latest Eclipse in Ubuntu, as well in Windows 7 (both with completly fresh Eclipse installations)

mkurz commented Jun 20, 2016

I tried in latest Eclipse in Ubuntu, as well in Windows 7 (both with completly fresh Eclipse installations)

@duanewaninger

This comment has been minimized.

Show comment
Hide comment
@duanewaninger

duanewaninger Jul 12, 2016

I am experiencing the same issue. Eclipse is rendered completely useless in a matter of 15 seconds by the Refresh threads. I've attached a time lapse of thread dumps and it appears the plugin is spinning multiple concurrent refresh threads that are in contention. It also looks like threads are never actually terminated and just go into a wait state resulting in an ever increasing number of threads. I've see it get up to over 300. Eclipse becomes so useless waiting for the threads to complete that after 2.5 hours, I finally killed the Eclipse Windows process rather than waiting for these threads to stop.

ThreadDump1-10_30_44_AM.txt
ThreadDump2-10_32_41_AM.txt
ThreadDump3-10_33_35_AM.txt
ThreadDump4-10_36_37_AM.txt
ThreadDump5-10_47_18_AM.txt
ThreadDump6-11_07_36_AM.txt

I am experiencing the same issue. Eclipse is rendered completely useless in a matter of 15 seconds by the Refresh threads. I've attached a time lapse of thread dumps and it appears the plugin is spinning multiple concurrent refresh threads that are in contention. It also looks like threads are never actually terminated and just go into a wait state resulting in an ever increasing number of threads. I've see it get up to over 300. Eclipse becomes so useless waiting for the threads to complete that after 2.5 hours, I finally killed the Eclipse Windows process rather than waiting for these threads to stop.

ThreadDump1-10_30_44_AM.txt
ThreadDump2-10_32_41_AM.txt
ThreadDump3-10_33_35_AM.txt
ThreadDump4-10_36_37_AM.txt
ThreadDump5-10_47_18_AM.txt
ThreadDump6-11_07_36_AM.txt

@mkurz

This comment has been minimized.

Show comment
Hide comment
@mkurz

mkurz Jul 12, 2016

Thanks for providing the thread dumps @duanewaninger
Hopefully someone from Microsoft will have a look...

mkurz commented Jul 12, 2016

Thanks for providing the thread dumps @duanewaninger
Hopefully someone from Microsoft will have a look...

@pednekarprajakta

This comment has been minimized.

Show comment
Hide comment
@pednekarprajakta

pednekarprajakta Jul 12, 2016

Contributor

@mkurz and @duanewaninger, Thanks for reporting the issue. What exact steps did you perform using Azure Toolkit for Eclipse which caused “RefreshWorkspace” issue ?

@mkurz, Could you also provide thread dumps ? It will help us to debug the issue.

Contributor

pednekarprajakta commented Jul 12, 2016

@mkurz and @duanewaninger, Thanks for reporting the issue. What exact steps did you perform using Azure Toolkit for Eclipse which caused “RefreshWorkspace” issue ?

@mkurz, Could you also provide thread dumps ? It will help us to debug the issue.

@mkurz

This comment has been minimized.

Show comment
Hide comment
@mkurz

mkurz Jul 12, 2016

@pednekarprajakta Thanks for the response.
I don't have azure tools installed anymore. As far as I remember the problem was that if you have a project in eclipse that is not a dynamic web application then this issue appeared.

You could try to reproduce like this:

  1. Open eclipse and create a new dynamic web project
  2. Now import this dummy project into eclipse:
  • Goto "File" -> "Import..."
  • Choose "Existing Projects into Workspace"
  • Select the above project (just clone or download it)

After you imported the project the bug should appear.

Let me know if you could reproduce the problem.

mkurz commented Jul 12, 2016

@pednekarprajakta Thanks for the response.
I don't have azure tools installed anymore. As far as I remember the problem was that if you have a project in eclipse that is not a dynamic web application then this issue appeared.

You could try to reproduce like this:

  1. Open eclipse and create a new dynamic web project
  2. Now import this dummy project into eclipse:
  • Goto "File" -> "Import..."
  • Choose "Existing Projects into Workspace"
  • Select the above project (just clone or download it)

After you imported the project the bug should appear.

Let me know if you could reproduce the problem.

@mkurz

This comment has been minimized.

Show comment
Hide comment
@mkurz

mkurz Jul 13, 2016

@pednekarprajakta Can you reproduce the problem?

mkurz commented Jul 13, 2016

@pednekarprajakta Can you reproduce the problem?

@duanewaninger

This comment has been minimized.

Show comment
Hide comment
@duanewaninger

duanewaninger Jul 13, 2016

The issue starts the moment you install the plugin. I happen to be working with Dynamic Web Project, Maven Projects and Spring Maven Project, but it really doesn't seem to make a difference. The number of threads spun off by the plugin begins increasing as you move around Eclipse perform common tasks like compiling code, changing project properties, etc; basically anything that would cause Eclipse to trigger a Workspace Refresh.

I too had to uninstall the Plugin in order to move on with work. But the problem is easily reproducible.

The issue starts the moment you install the plugin. I happen to be working with Dynamic Web Project, Maven Projects and Spring Maven Project, but it really doesn't seem to make a difference. The number of threads spun off by the plugin begins increasing as you move around Eclipse perform common tasks like compiling code, changing project properties, etc; basically anything that would cause Eclipse to trigger a Workspace Refresh.

I too had to uninstall the Plugin in order to move on with work. But the problem is easily reproducible.

@duanewaninger

This comment has been minimized.

Show comment
Hide comment
@duanewaninger

duanewaninger Jul 13, 2016

I should add that I'm currently using the following Eclipse version on Windows:

Eclipse Java EE IDE for Web Developers.
Version: Mars.2 Release (4.5.2)
Build id: 20160218-0600

But, I've also tried Eclipse Kepler and Luna versions and Rational Application Developer 9.1 with the same result.

I should add that I'm currently using the following Eclipse version on Windows:

Eclipse Java EE IDE for Web Developers.
Version: Mars.2 Release (4.5.2)
Build id: 20160218-0600

But, I've also tried Eclipse Kepler and Luna versions and Rational Application Developer 9.1 with the same result.

@mkurz

This comment has been minimized.

Show comment
Hide comment
@mkurz

mkurz Jul 13, 2016

I tested on Windows 7 and Ubuntu 12.04 with Eclipse Mars. Also on both systems the problem occured immediately. Hard to believe someone is actually using this plugin...

mkurz commented Jul 13, 2016

I tested on Windows 7 and Ubuntu 12.04 with Eclipse Mars. Also on both systems the problem occured immediately. Hard to believe someone is actually using this plugin...

@pednekarprajakta

This comment has been minimized.

Show comment
Hide comment
@pednekarprajakta

pednekarprajakta Jul 13, 2016

Contributor

@mkurz I am not able to reproduce the issue using the provided sample dummy project. I did exactly same steps which you mentioned. I tested on Windows 8.

Contributor

pednekarprajakta commented Jul 13, 2016

@mkurz I am not able to reproduce the issue using the provided sample dummy project. I did exactly same steps which you mentioned. I tested on Windows 8.

@priand

This comment has been minimized.

Show comment
Hide comment
@priand

priand Jul 19, 2016

@pednekarprajakta FYI, I'm getting the same issue that makes Eclipse just unusable. My workspace contains a lot of projects: Java, J2EE, Android, RoboVM... all maven enabled The initialization never ends as it constantly refreshes the workspace. This happens right after installing 2.9.0 on Mars 4.5.2, Windows 64 bits. I already tried it twice with the same outcome.
I'll be happy to send you all the log files you need or even run a screen sharing session with you if it helps.

priand commented Jul 19, 2016

@pednekarprajakta FYI, I'm getting the same issue that makes Eclipse just unusable. My workspace contains a lot of projects: Java, J2EE, Android, RoboVM... all maven enabled The initialization never ends as it constantly refreshes the workspace. This happens right after installing 2.9.0 on Mars 4.5.2, Windows 64 bits. I already tried it twice with the same outcome.
I'll be happy to send you all the log files you need or even run a screen sharing session with you if it helps.

@duanewaninger

This comment has been minimized.

Show comment
Hide comment
@duanewaninger

duanewaninger Jul 26, 2016

Any updates from the Microsoft team on resolving this issue?

Any updates from the Microsoft team on resolving this issue?

@martinsawicki

This comment has been minimized.

Show comment
Hide comment
@martinsawicki

martinsawicki Aug 2, 2016

Contributor

we're still looking for a way to reproduce this issue as none of us are able to see this problem (Linux, Mac, Windows). I'm using Mars 4.5.2 with the Toolkit installed and a number of Maven projects, on Win 10 - no issues... So the main challenge right now is to figure out what is different about your environments.

Contributor

martinsawicki commented Aug 2, 2016

we're still looking for a way to reproduce this issue as none of us are able to see this problem (Linux, Mac, Windows). I'm using Mars 4.5.2 with the Toolkit installed and a number of Maven projects, on Win 10 - no issues... So the main challenge right now is to figure out what is different about your environments.

@priand

This comment has been minimized.

Show comment
Hide comment
@priand

priand Aug 31, 2016

@martinsawicki if you still cannot reproduce it, I can share my screen with you or give you access to the machine

priand commented Aug 31, 2016

@martinsawicki if you still cannot reproduce it, I can share my screen with you or give you access to the machine

@martinsawicki

This comment has been minimized.

Show comment
Hide comment
@martinsawicki

martinsawicki Sep 8, 2016

Contributor

we provided at attempt to fix this issue (though not being able to repro) -- fix shipped in the latest toolkit updates -- see if it helps.

Contributor

martinsawicki commented Sep 8, 2016

we provided at attempt to fix this issue (though not being able to repro) -- fix shipped in the latest toolkit updates -- see if it helps.

@priand

This comment has been minimized.

Show comment
Hide comment
@priand

priand Sep 19, 2016

@martinsawicki thanks a lot for fix, it seems that the issue disappeared with 2.9.5. I'll watch it in the next few weeks to validate this conclusion.
BTW, it now generates many errors in the error logs, while it seems to be some debug information (isOpenTrue, isNaturefalse, ...). All these entries are coming from WAEclipsePlugin

priand commented Sep 19, 2016

@martinsawicki thanks a lot for fix, it seems that the issue disappeared with 2.9.5. I'll watch it in the next few weeks to validate this conclusion.
BTW, it now generates many errors in the error logs, while it seems to be some debug information (isOpenTrue, isNaturefalse, ...). All these entries are coming from WAEclipsePlugin

@martinsawicki

This comment has been minimized.

Show comment
Hide comment
@martinsawicki

martinsawicki Oct 27, 2016

Contributor

thank you, if there is a specific new issue to file, please log as a new issue with repro steps. thanks for the feedback!

Contributor

martinsawicki commented Oct 27, 2016

thank you, if there is a specific new issue to file, please log as a new issue with repro steps. thanks for the feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment