- This topic has 5 replies, 3 voices, and was last updated 3 years, 7 months ago by atomz4peace.
-
AuthorPosts
-
atomz4peaceParticipantWe have a very old project that always gives a hang when clicking the F3/open selection on a JSF item. It usually will eventually open the backing bean method but often logs an eclipse error of UI Freeze, sometimes up to 14 seconds. It seems like the first time on a JSF it will hang, then work freely. If we open another, it will hang there as well first, and so on.
Any ideas what to look for or test? Log attached of a 2s and 7s freeze.
thank you
Attachments:
You must be logged in to view attached files.
support-swapnaModeratorHi,
Sorry that you are seeing this issue. I tried to replicate the issue with a sample project but do not see the lag.
1. Is the freeze happening only with this particular project? Any other project with JSF also exhibiting the same problem?
2. Can you please try turning off Tern and check if it helps? Please see this FAQ for more details : https://www.genuitec.com/forums/topic/troubleshooting-performance-issues-in-myeclipse-2015/
3. If the freeze persists, then please send us 3-4 thread dumps when MyEclipse freezes. It would help us figure out what process is running. To take a thread dump, you will need to run
jstack -l 9000 > dump1.txt
Please replace 9000 with the PID of the MyEclipse process, the jstack program can be found in the bin directory of any JDK installation. If you can generate 3-4 dumps (sent to different files, of course) during the period of freeze, and attach those files here, that could help a great deal.
4. Please also share the MyEclipse version details along with more details about the project, i.e approximate size, number of JSP files etc.Apologies for inconvenience caused.
–Swapna
Genuitec Support
atomz4peaceParticipantThank you. We were able to capture some samples.
Turned off tern completely.
we have one main project. it’s been around for 15 years so a lot of old-school stuff. The jsf side uses a faces-config file linking the backing bean. Probably about 50 xhtml files, 20 old school jsp files. No problem on the JSP, just the JSF/xhtml side. Project itself has 100s of other classes. When we open a new/small/sample project clean, it’s of course fine and fast. But this is a bigger and older project, hard to replicate the setup and volume of files.
ME Version: 2020.9.16
Build id: 16.0.0-20200916Attaching 4 dumps during a 20sec freeze. Seems like it’s mostly a one-time freeze/cache. The first time we have been in a xhtml file for a while, it has the hang. After that, any other F3 on other bean elements is fast.
Attachments:
You must be logged in to view attached files.
atomz4peaceParticipantand the main error log
Brian FernandesModeratorThank you for the thread dumps – at first glance, there’s nothing that explains what is causing the delay, unfortunately. As you state, it does look like a caching operation that appears to be initiated by the Java tooling. I do have a few follow up questions:
1) Is this delay something you are seeing only in 2020.9.16 or were you experiencing it in earlier versions of MyEclipse as well?
2) Is there anything different about the physical location at which this big project is stored? A different drive, network storage, anything like that?
3) Do other developers see the problem on their machine as well, or is it just you?
4) Is this a 100% reproducible problem – can you reproduce it without fail with every fresh session? Subsequently, what if you don’t use F3 and open the file yourself, using Open Type or from the package explorer for the first time. Does that make a difference?
5) Do you have Project > Build Automatically checked?Thanks!
atomz4peaceParticipantIt’s been there for years, just hoping there is something obvious to fix or rebuild an index or something. I didn’t know if it’s just too many files or something but it’s not really that big of a project. We use old-style spring beans for controllers, so no annotation. Everything JSF is in faces-config.xml
It’s on a local SSD and nearly always reproducible. But no delay when opening fresh and no problems on just java code. It’s only F3 from JSF file linking back to the bean.
Yes, build automatic is checked but I can test without for a while if that might be a factor.
-
AuthorPosts