plugin icon indicating copy to clipboard operation
plugin copied to clipboard

[Bug]: Excessive CPU usage

Open innocente205 opened this issue 1 year ago • 2 comments

Bug description

CPU usage increases when editing blade files, load average spikes at around 15. CPU usage decreases from 1700% to less than 300% on the phpstorm activity monitor when the plugin is disabled.

Screenshot from 2024-05-20 18-26-22

Screenshot from 2024-05-20 18-24-43

Plugin version

8.1.4.241

Operating system

Linux

Steps to reproduce

Enable the plugin and edit blade files.

Relevant log output

I have collected log files if you let me know where to upload them.
$ uname -a
Linux 6.8.4-zabbly+ #ubuntu22.04 SMP PREEMPT_DYNAMIC Fri Apr  5 19:25:12 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

$ free -h
               total        used        free      shared  buff/cache   available
Mem:            31Gi       5.6Gi        14Gi       2.5Gi        10Gi        22Gi

innocente205 avatar May 21 '24 11:05 innocente205

I analyzed it a bit and probably found a reason. I'll try to make an option to turn one feature off. And you could check if it was a reason. Thank you for posting.

adelf avatar May 21 '24 14:05 adelf

Will do. Thanks for the quick response.

innocente205 avatar May 22 '24 00:05 innocente205

If you still have this issue, could you please update to Laravel Idea 8.2, turn off this option and check again?

image

adelf avatar Jul 18 '24 14:07 adelf

Thanks. I've actually had the plugin deactivated since having that problem, and have only reactivated it in the past 2-3 days. Not seen the cpu usage spiking. Updated now and will keep you informed.

innocente205 avatar Jul 18 '24 17:07 innocente205