Bug 541844 - Not showing compilation errors/Slowness issues in Eclipse 4.8 with E-Git
Summary: Not showing compilation errors/Slowness issues in Eclipse 4.8 with E-Git
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.8   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2018-12-03 08:08 EST by Anjali Jain CLA
Modified: 2018-12-19 09:29 EST (History)
4 users (show)

See Also:


Attachments
Thread dumps when did changes in file to see compilation error (28.86 KB, application/octet-stream)
2018-12-11 08:49 EST, Anjali Jain CLA
no flags Details
Thread dumps when did changes in file to remove compilation error (29.22 KB, application/octet-stream)
2018-12-11 08:51 EST, Anjali Jain CLA
no flags Details
Thread dumps when did changes in file to see compilation error (26.54 KB, application/octet-stream)
2018-12-13 03:36 EST, Anjali Jain CLA
no flags Details
Thread dumps when did changes in file to remove compilation error-1 (24.08 KB, application/octet-stream)
2018-12-13 03:37 EST, Anjali Jain CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anjali Jain CLA 2018-12-03 08:08:15 EST
We are facing below issues when using Eclipse Mars with E-Git,we have around 70 packages in our project and around 1000 files.

1) Slowness issue while working when switch between the files or use any shortcut key like Ctrl+O.
2) Sometimes work space got hanged while working and need to kill process through Task Manger.
3)The Major issue is when we save data and it does not show compilation issues.It shows errors after building worksapce.

Is these issues are specific with Eclipse Mars or problem is with E-Git or any other?

Please provide any suggestions.
Comment 1 Andrey Loskutov CLA 2018-12-03 08:11:32 EST
4.5.2 is not supported anymore. Please try latest official 4.9 release or check for commercial help.
Comment 2 Lars Vogel CLA 2018-12-03 08:18:14 EST
Eclipse 2018-09 will be much faster. Please reopen if that is still reproducible.
Comment 3 Anjali Jain CLA 2018-12-06 04:47:01 EST
Thanks for the response.Now we are using Eclipse Photon Release(4.8.0) and having better experience but still slowness issue is there and it is taking some time around 10-12 seconds to show compilation errors.
Is there any settings in eclipse ,we can do to avoid these issue and speed up Eclipse?
Comment 4 Andrey Loskutov CLA 2018-12-06 04:48:33 EST
(In reply to Anjali Jain from comment #3)
> Thanks for the response.Now we are using Eclipse Photon Release(4.8.0) and
> having better experience but still slowness issue is there and it is taking
> some time around 10-12 seconds to show compilation errors.
> Is there any settings in eclipse ,we can do to avoid these issue and speed
> up Eclipse?

I could give it to you if you would provide few jstack dumps at time Eclipse is "slow". Deal?
Comment 5 Andrey Loskutov CLA 2018-12-06 04:49:52 EST
Please also consider to switch to 4.9.0, 4.8.0 is not supported anymore. Also please check if 4.10 RC1 is faster for you, we had few fixes there too.
Comment 7 Anjali Jain CLA 2018-12-11 08:49:36 EST
Created attachment 276902 [details]
Thread dumps when did changes in file to see compilation error

I did some changes in java file so that compilation will generate and at the same time captured Thread dumps using Java visualVM to see why its taking time to show compilation error in Eclipse.
Comment 8 Anjali Jain CLA 2018-12-11 08:51:13 EST
Created attachment 276903 [details]
Thread dumps when did changes in file to remove compilation error

I did some changes in java file so that compilation error will remove and at the same time captured Thread dumps using Java visualVM to see why its taking time to show that compilation error got removed in Eclipse.
Comment 9 Anjali Jain CLA 2018-12-11 08:53:17 EST
Attached Thread dumps as suggested, not sure they are helpful or not.Please have a look and let me know if some thing else is required.
Thanks.
Comment 10 Anjali Jain CLA 2018-12-12 06:40:10 EST
(In reply to Andrey Loskutov from comment #4)
> (In reply to Anjali Jain from comment #3)
> > Thanks for the response.Now we are using Eclipse Photon Release(4.8.0) and
> > having better experience but still slowness issue is there and it is taking
> > some time around 10-12 seconds to show compilation errors.
> > Is there any settings in eclipse ,we can do to avoid these issue and speed
> > up Eclipse?
> 
> I could give it to you if you would provide few jstack dumps at time Eclipse
> is "slow". Deal?

Hi,
I have attached some thread dumps when eclipse was slow and not showing compilation error.Can you please have a look.
Comment 11 Anjali Jain CLA 2018-12-12 08:53:21 EST
One more information, its working five with small files.its taking time to show compilation errors with large files.
Comment 12 Andrey Loskutov CLA 2018-12-12 09:06:51 EST
(In reply to Anjali Jain from comment #10)
> Hi,
> I have attached some thread dumps when eclipse was slow and not showing
> compilation error.Can you please have a look.

The UI thread idling in your dumps. I see nothing suspicious. Either those dumps are too late, or you've created them for a different Eclipse process (if you have many Eclipse running).
Comment 13 Anjali Jain CLA 2018-12-13 03:35:08 EST
(In reply to Andrey Loskutov from comment #12)
> (In reply to Anjali Jain from comment #10)
> > Hi,
> > I have attached some thread dumps when eclipse was slow and not showing
> > compilation error.Can you please have a look.
> 
> The UI thread idling in your dumps. I see nothing suspicious. Either those
> dumps are too late, or you've created them for a different Eclipse process
> (if you have many Eclipse running).

Thanks.I tried one more time to capture dumps, May be this time they will be helpful. Attached the same.
Comment 14 Anjali Jain CLA 2018-12-13 03:36:08 EST
Created attachment 276919 [details]
Thread dumps when did changes in file to see compilation error

Thread dumps when did changes in file to see compilation error
Comment 15 Anjali Jain CLA 2018-12-13 03:37:03 EST
Created attachment 276920 [details]
Thread dumps when did changes in file to remove compilation error-1

Thread dumps when did changes in file to remove compilation error
Comment 16 Dani Megert CLA 2018-12-14 10:39:47 EST
Am I correct that you have the issue with the editor and not with the error reporting on e.g. the Package Explorer?
Comment 17 Anjali Jain CLA 2018-12-17 01:52:53 EST
(In reply to Dani Megert from comment #16)
> Am I correct that you have the issue with the editor and not with the error
> reporting on e.g. the Package Explorer?

Yes.You are correct.
Comment 18 Dani Megert CLA 2018-12-17 06:13:02 EST
Looks like CompilationUnit.reconcile takes long.

We would need to have a test case to investigate the issue.
Comment 19 Anjali Jain CLA 2018-12-17 08:50:21 EST
(In reply to Dani Megert from comment #18)
> Looks like CompilationUnit.reconcile takes long.
> 
> We would need to have a test case to investigate the issue.

Thanks.Please let me know what type of information should i share for that.
Comment 20 Dani Megert CLA 2018-12-17 08:54:55 EST
(In reply to Anjali Jain from comment #19)
> (In reply to Dani Megert from comment #18)
> > Looks like CompilationUnit.reconcile takes long.
> > 
> > We would need to have a test case to investigate the issue.
> 
> Thanks.Please let me know what type of information should i share for that.

Either a workspace that allows to reproduce or steps starting with a fresh workspace.

Do you always see the delay or just with some files?
Comment 21 Anjali Jain CLA 2018-12-18 08:58:12 EST
(In reply to Dani Megert from comment #20)
> (In reply to Anjali Jain from comment #19)
> > (In reply to Dani Megert from comment #18)
> > > Looks like CompilationUnit.reconcile takes long.
> > > 
> > > We would need to have a test case to investigate the issue.
> > 
> > Thanks.Please let me know what type of information should i share for that.
> 
> Either a workspace that allows to reproduce or steps starting with a fresh
> workspace.
> 
> Do you always see the delay or just with some files?

Yes,Its not for all files.For example the Bean files which have only setter and getter methods and the files in which only constants are declared, they are showing errors immediately.I think this problem is with the files which have heavy logic in it like interaction with other system(Database,webservicecall etc).
Comment 22 Dani Megert CLA 2018-12-18 09:32:02 EST
(In reply to Anjali Jain from comment #21)
> > Do you always see the delay or just with some files?
> 
> Yes,Its not for all files.For example the Bean files which have only setter
> and getter methods and the files in which only constants are declared, they
> are showing errors immediately.I think this problem is with the files which
> have heavy logic in it like interaction with other
> system(Database,webservicecall etc).

That's what I presumed. We can't help without any test case.
Comment 23 Anjali Jain CLA 2018-12-19 08:51:40 EST
(In reply to Dani Megert from comment #22)
> (In reply to Anjali Jain from comment #21)
> > > Do you always see the delay or just with some files?
> > 
> > Yes,Its not for all files.For example the Bean files which have only setter
> > and getter methods and the files in which only constants are declared, they
> > are showing errors immediately.I think this problem is with the files which
> > have heavy logic in it like interaction with other
> > system(Database,webservicecall etc).
> 
> That's what I presumed. We can't help without any test case.

Ok. Actually due to some privacy, we can not share our workspace and its very big in size also.Not sure , but can we have a live interaction session with join me or skype, so that i can show the actual scenario?Is this possible?
Comment 24 Dani Megert CLA 2018-12-19 09:29:13 EST
(In reply to Anjali Jain from comment #23)
> Ok. Actually due to some privacy, we can not share our workspace and its
> very big in size also.Not sure , but can we have a live interaction session
> with join me or skype, so that i can show the actual scenario?Is this
> possible?

I'm not sure this helps much. I believe that you see the problem.

Maybe you can try to reproduce with a similar sized Java file and send us an obfuscated version?