laravel-idea / plugin

Laravel Idea plugin for PhpStorm
https://laravel-idea.com/
165 stars 7 forks source link

[Bug]: Excessive CPU usage #996

Closed innocente205 closed 3 weeks ago

innocente205 commented 3 months ago

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
adelf commented 3 months ago

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.

innocente205 commented 3 months ago

Will do. Thanks for the quick response.

adelf commented 1 month ago

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

image
innocente205 commented 1 month ago

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.