IntelliJBehave
IntelliJBehave copied to clipboard
Jbehave support plugin 1.6 version is causing that IntelliJ consumes 500%+ CPU time on my mac
Jbehave support plugin 1.6 version is causing that IntelliJ 2023.1 consumes 500%+ CPU time on my m1 2021 mac. I am using Jbehave 4.3.4
@pilac96 Unfortunately, I don't have a mac to test this out, but that is interesting because there weren't much change in 1.6.
There is a gradle plugin called gradle-intellij-plugin used for building the plugin. The only thing that changed in 1.6 (if it's indeed 1.6 that's causing the problem) is bumped the version of that gradle plugin. I will have to check what changes have happened in it to know more.
All issues started with the new IntelliJ and new Jbehave Support plugin. I returned to the older versions of IntelliJ and plugin, and the situation is the same. So to be honest, I am not sure what can be the reason. I contacted IntelliJ, and they told me that the issue should be on the side of the plugin.
On Fri, May 19, 2023 at 10:45 PM Tamás Balog @.***> wrote:
@pilac96 https://github.com/pilac96 Unfortunately, I don't have a mac to test this out, but that is interesting because there weren't much change in 1.6.
There is a gradle plugin called gradle-intellij-plugin used for building the plugin. The only thing that changed in 1.6 (if it's indeed 1.6 that's causing the problem) is bumped the version of that gradle plugin. I will have to check what changes have happened in it to know more.
— Reply to this email directly, view it on GitHub https://github.com/witspirit/IntelliJBehave/issues/81#issuecomment-1555229161, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIMFB4QPOXEBWW4BEZ5A3DTXG7LX7ANCNFSM6AAAAAAYCLDRBI . You are receiving this because you were mentioned.Message ID: @.***>
Hello) I have the same problem in Windows. I use Intellij IDEA 2024.1.1 with the JBehave Support plugin 1.63.0. IDEA freezes and CPU is high when I use this plugin. Tried deleting it and everything worked fine.
@ShokunYanina
Sometime next week, I'll dedicate some time to implement some code improvements that might help mitigate the issue. I say 'might' because I don't know the cause of the problem, I haven't been able to reproduce it, but I see some places where the performance could be improved, at least slightly.
Meanwhile, for when you encounter the problem, could you please attach a thread dump and the relevant IDE logs? There may be some useful info in them to analyze the issue.
- Thread dump can be taken via the
Help
menu >Diagnostic Tools
>Dump Threads
. - IDE logs can be located via the
Help
menu >Show Log in Files/Editor/etc
.
Before attaching them, please check that they don't contain package/class/etc. names or similar information of IDE plugins or tools made for internal use.
@picimako Thanks for support! I hope you find the problem and fix it) idea.log threadDump-20240520-090902.txt
@ShokunYanina Thank you, the thread dump did help to identify some places that could be improved.
I've just released a new version (1.64.0) with several improvements. Please report back if the IDE freezes are still happening, and if they still do, I'll see if I can find more places to improve.
@picimako Hi!
I'm also experiencing this high CPU load when opening step implementations ~120 steps. Could this be the culprit? Let me know if you need more information to investigate.
Apple M3 Pro 11 cores, 36gb ram. macOS Sonoma 14.5 IntelliJ IDEA Ult. 2024.1.2 JBehave plugin 1.64.0
Hi @robahl!
Thanks for the feedback. It might be, but I'll have to look into it. I've already added some caching on that part but I'll revisit it.
And just so that I understand the circumstances correctly, by opening step implementations ~120 steps do you mean navigating from a story file to a Java step def class with around 120 step def methods, via Ctrl/Cmd+Click?
Edit: Meanwhile I implemented some extra caching. Could you please install and check the plugin build I attached, both performance and functionalitywise during general usage?
@picimako
I tried with the attached build, however the same issue remains. I can cook eggs on my laptop :)
I'll try to debug and profile to see what is going on, will get back to you.
I'm having the same issue whenever I ctr+click into a step from a .story file the cpu maxes out within a min or so and the ide freezes up. Windows 10 IntelliJ: 2024.1 JBehave Support plugin: 1.64.0
I have released v1.65.0 with some additional caching, please let me know if the situation has improved.
Since there haven't been a feedback about the IDE freezes, I consider this ticket completed/fixed. If it is still occuring, please open a new issue.