Editor slow, high cpu usage

I am using 13.1.2, build 135.690, on LInux Mint Release 14 (nadia) 64-bit

Machine specs: Processor: Intel® Core™ i7-2600 CPU @ 3.40GHz × 8, Memory: 15.7 GiB, ide system files are on ssd partition.

After continuous usage of ide, say 24 hours, left on overnight, the editor becomes very slow, one of its thread seems to be almost at 100% cpu utilization.

There is not much in the log, quite sparse, see below:




2014-05-21 00:41:34,502 [572779006]   INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.openapi.progress.impl.ProgressManagerImpl$1@771d5b4; elapsed time was 1322ms
2014-05-21 03:04:44,979 [581369483]   INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.util.Alarm$Request@2ca2eb32; elapsed time was 1405ms
2014-05-21 05:22:24,018 [589628522]   INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.util.Alarm$Request@2acd6d2f; elapsed time was 1333ms
2014-05-21 05:27:54,824 [589959328]   INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.openapi.progress.impl.ProgressManagerImpl$1@771d5b4; elapsed time was 1325ms
2014-05-21 06:36:43,428 [594087932]   INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.util.Alarm$Request@631d4d2b; elapsed time was 1328ms
2014-05-21 06:54:37,371 [595161875]   INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.util.Alarm$Request@12d324f2; elapsed time was 1406ms
2014-05-21 07:13:29,534 [596294038]   INFO - openapi.editor.impl.EditorImpl - Cache hits:69632, total requests:117294,file:///xxxxxxxxxxxxxxxxxx.java
2014-05-21 07:40:05,699 [597890203]   INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.util.Alarm$Request@529c69e8; elapsed time was 1403ms
2014-05-21 07:52:29,876 [598634380]   INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.openapi.progress.impl.ProgressManagerImpl$1@771d5b4; elapsed time was 1332ms
2014-05-21 08:18:38,404 [600202908]   INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.util.Alarm$Request@30e26e8a; elapsed time was 1326ms
2014-05-21 08:28:16,438 [600780942]   INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.openapi.progress.impl.ProgressManagerImpl$1@771d5b4; elapsed time was 1336ms
2014-05-21 08:54:04,574 [602329078]   INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.util.Alarm$Request@7783fb8e; elapsed time was 1326ms
2014-05-21 09:25:41,346 [604225850]   INFO - openapi.editor.impl.EditorImpl - Cache hits:12288, total requests:13080,file:///xxxxxxxxxxxxxxxxxxxxxxxxx.java
2014-05-21 09:28:11,958 [604376462]   INFO - openapi.editor.impl.EditorImpl - Cache hits:4096, total requests:6760,file:///xxxxxxxxxxxxxxxxxxxxxxxxxxxx.java

8 comments

Hi,

I see the same behavior on MacOS X 10.10.5 with IntelliJ 14.1.4:

2015-09-01 09:30:34,907 [59785242]   INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.openapi.progress.impl.CoreProgressManager$1@2b510fa0; elapsed time was 2716ms
2015-09-01 09:32:20,501 [59890836]   INFO - lij.tasks.impl.TaskManagerImpl - Updating issues cache (every 20 min)
2015-09-01 09:34:58,022 [60048357]   INFO - openapi.editor.impl.EditorImpl - Cache hits:49152, total requests:167347,file:///Users/hxxxxx/PrimarySeason.scala
2015-09-01 09:37:52,414 [60222749]   INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.openapi.progress.impl.CoreProgressManager$1@2b510fa0; elapsed time was 2550ms
2015-09-01 09:39:41,743 [60332078]   INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.diagnostic.MessagePool$MessageGrouper@77dd730; elapsed time was 2674ms
2015-09-01 09:45:53,101 [60703436]   INFO - openapi.editor.impl.EditorImpl - Cache hits:53248, total requests:181553,file:///Users/hxxxxx/PrimarySeason.scala
2015-09-01 09:48:27,657 [60857992]   INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.openapi.progress.impl.CoreProgressManager$1@2b510fa0; elapsed time was 2679ms
2015-09-01 09:49:08,335 [60898670]   INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.openapi.progress.impl.CoreProgressManager$1@2b510fa0; elapsed time was 2916ms
2015-09-01 09:52:21,723 [61092058]   INFO - lij.tasks.impl.TaskManagerImpl - Updating issues cache (every 20 min)
2015-09-01 09:52:31,461 [61101796]   INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.openapi.progress.impl.CoreProgressManager$1@2b510fa0; elapsed time was 54ms

Am currently testing to see whether removal of cache directory will resolve this sluggishness.

Anyone else?

Thanks,
Henry

0

I see the same behavior on Centos 6.6 with Intellij 14.1.4 as well.

0

Could you please take a CPU snapshot during the slowdown to help us to reproduce the issue?
Please see https://intellij-support.jetbrains.com/hc/en-us/articles/206827577-Reporting-performance-problems

0

I see the same behavior on Mac OSX 10.11, PhpStorm 9.0.2.

Been so aggrevating that I started migrating to Sublime. However, the Diff feature of IntelliJIdea/PhpStorm is a thousand times better than any Sublime diff plugin so I really want PhpStorm to work again without frequent periods of spinning beachballs interrupting work every 30-40 seconds for 5-15 seconds at a time.

Log contains output like:

2015-10-21 13:42:17,661 [ 171600]   INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.openapi.progress.impl.CoreProgressManager$1@560931d5; elapsed time was 59ms
2015-10-21 13:42:28,353 [ 182292]   INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.util.Alarm$Request@3fcc713a; elapsed time was 64ms
2015-10-21 13:42:52,366 [ 206305]   INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.openapi.progress.impl.CoreProgressManager$1@560931d5; elapsed time was 8449ms

Will be back with a CPU snapshot next time it happens.

0

Over here it helps to just restart the ide. You could also tweak your idea64.vmoptions.

Here's what I use on my 32 Gb of ram machine:

-Xms128m
-Xmx2G
-XX:MaxPermSize=512m
-XX:ReservedCodeCacheSize=512m
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Djsse.enableSNIExtension=false
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-Dawt.useSystemAAFontSettings=lcd
-Dswing.aatext=true
-XX:+TieredCompilation


I still have to restart approximately once a week when most actions become very sluggish. Occasionally I would also invalidate caches.
1

Will crank it as I've got 32Gb as well and have not yet opened the throttle:

-Xms512m
-Xmx1500m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=225m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Dawt.useSystemAAFontSettings=lcd


Thanks!
0

I suspect it can be mitigated by playing with the vmoptions as we depict in threads below. However, I don't see how to titrate this other than by trial
and error.

0

Exactly. Been doing that for like 10 years now.

It does helps to have higher physical specs, ssd partition for idea cache etc. However, only yesterday I got a 2-3 minutes absolute freeze, only one thread was working 100% on what looked like reformatting the 200 lines of xml I was pasting. I am careful to use CTRL+ALT+SHIFT+V (simple paste) whenever I can, just thought a relatively small paste wouldn't cause my idea to do that. Guess can't be careful enough..:)

0

Please sign in to leave a comment.