Github copilot plugin version 1.5.29.7524 - extreme memory consumption when used in rocky/linux with IntelliJ IDEA 2024.2.4 - Build #JBC-242.23726.103, built on October 23, 2024

Hi,

 

Please be aware of the following discussion:

https://github.com/orgs/community/discussions/84695

 

In a linux environment, running the latest and greatest version of the plugin, the process “copilot-languag

goes completely out of control.

 

See:


top - 09:22:23 up 10 min,  0 users,  load average: 2.82, 12.13, 6.73
Tasks:  13 total,   1 running,  12 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.8 us,  0.3 sy,  0.0 ni, 98.8 id,  0.1 wa,  0.0 hi,  0.1 si,  0.0 st
MiB Mem :  28068.3 total,  10621.5 free,  11887.9 used,   5558.9 buff/cache
MiB Swap:   7168.0 total,   7168.0 free,      0.0 used.  15544.1 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                                                                                      3274 wildfly   20   0 9085344   4.0g   1.0g S   6.0  14.6   3:46.90 remote-dev-serv
 3517 wildfly   20   0  121.4g   6.0g  38960 S   0.3  21.8   2:22.33 copilot-languag   (completely out of control)
 3527 wildfly   20   0   11.7g 858536  40308 S   0.3   3.0   0:45.63 java

 

 

Details, plugin version:

1.5.29.7524

Details IntleliJ Gateway backend:

IntelliJ IDEA 2024.2.4
Build #JBC-242.23726.103, built on October 23, 2024
Licensed to ...
Runtime version: 21.0.4+13-b509.26 amd64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Controller in Remote Development

 

The interesting fact is that i have the exact same plugin version on my windows HOST, and there I do not notice any out of control memory consumption.

 

 

 

2

I have the same issue, using Fedora 40, when starting IntelliJ Ultimate 2024.3.1.1 (with github-copilot plugin v1.5.30-242) the “copilot-languag…” process takes an insane amount of memory and also a lot of CPU.

After the initialisation phase, CPU goes down but the amount of memory remains really high.

Here is my top of memory usage when the initialisation is done:

top - 12:17:24 up  4:24,  3 users,  load average: 0.62, 0.54, 1.07
Tasks: 453 total,   1 running, 452 sleeping,   0 stopped,   0 zombie
%Cpu(s):  1.6 us,  0.7 sy,  0.0 ni, 97.3 id,  0.0 wa,  0.2 hi,  0.1 si,  0.0 st 
MiB Mem :  31773.3 total,    462.2 free,  27701.8 used,   4989.4 buff/cache     
MiB Swap:  47104.0 total,  29968.1 free,  17135.9 used.   4071.5 avail Mem
   PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                                                                                                                                                                                                
173588 lamni     20   0  484.3g  15.5g  22636 S   0.0  49.9   8:53.95 copilot-languag                                                                                                                                                                                                                                        
173429 lamni     20   0   14.5g   4.2g 672500 S   6.0  13.4  10:08.19 idea

Edit: I want to mitigate a bit this issue; as it does not occur often (I usually have a more “normal” amount of memory used by copilot plugin - here 1.1GB) :

top - 14:15:07 up  5:53,  2 users,  load average: 0.39, 0.64, 0.42
Tasks: 471 total,   2 running, 469 sleeping,   0 stopped,   0 zombie
%Cpu(s):  2.3 us,  0.6 sy,  0.0 ni, 96.6 id,  0.0 wa,  0.3 hi,  0.1 si,  0.0 st 
MiB Mem :  31770.6 total,   5346.3 free,  14680.3 used,  13502.9 buff/cache     
MiB Swap:  47104.0 total,  47104.0 free,      0.0 used.  17090.3 avail Mem
   PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                                                                                                                                                                                                
 78480 lamni     20   0   14.9g   7.3g   1.6g S   6.0  23.6  42:07.59 idea                                                                                                                                                                                                                                                   
 78666 lamni     20   0   40.0g   1.1g  39756 S   0.0   3.5   0:14.70 copilot-languag 
1

请先登录再写评论。