Skip to content

continue cli leaking lsof execs #9422

@winmutt

Description

@winmutt

Before submitting your bug report

Relevant environment info

- OS: linux
- Continue CLI version: 1.5.29
- config:
  

name: Local Config
version: 1.0.0
schema: v1
models:
  - name: Nomic Embed
    provider: ollama
    model: nomic-embed-text:latest
    roles:
      - embed
  - name: Qwen3 Next
    provider: ollama
    model: hf.co/Qwen/Qwen3-Next-80B-A3B-Thinking-GGUF:Q8_0
    apiBase: http://192.168.1.137:11434
    defaultCompletionOptions:
      maxTokens: 32767
      contextLength: 65535
    roles:
      - edit
      - apply
      - chat
    capabilities:
      - tool_use
  - name: Qwen3 Code
    provider: ollama
    model: hf.co/unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q8_K_XL
    apiBase: http://192.168.1.137:11434
    defaultCompletionOptions:
      maxTokens: 32767
      contextLength: 65535
    roles:
      - edit
      - apply
      - chat
    capabilities:
      - tool_use
  - name: Qwen3 VL
    provider: ollama
    model: hf.co/unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q8_K_XL
    apiBase: http://192.168.1.137:11434
    defaultCompletionOptions:
      maxTokens: 32767
      contextLength: 65535
    roles:
      - edit
      - apply
      - chat
    capabilities:
      - tool_use
  
  OR link to agent in Continue hub:

Description

Continue CLI appears to be leaking calls to lsof (which is terribly slow comparet to ss):


 ps fwaux|grep -C 3 lsof
winmutt     5177  0.2  0.6 890856 109164 ?       Sl   Jan04   6:06  |   \_ /usr/bin/python3 /usr/bin/terminator
winmutt     5192  0.0  0.0  11432  5788 pts/0    Ss   Jan04   0:00  |   |   \_ /bin/bash
winmutt    26796 14.3  2.0 22506492 329964 pts/0 Sl+  11:12   5:52  |   |   |   \_ /snap/node/10816/bin/node /usr/local/bin/cn --auto --verbose
winmutt    51764  0.6  0.0   2804  1884 pts/0    S+   11:53   0:00  |   |   |       \_ /bin/sh -c lsof -p 26796 | wc -l
winmutt    51765  2.7  0.0  11416  4148 pts/0    R+   11:53   0:00  |   |   |       |   \_ lsof -p 26796
winmutt    51767 75.5  0.0  10912   704 pts/0    S+   11:53   0:02  |   |   |       |   |   \_ lsof -p 26796
winmutt    51766  0.0  0.0   8312  2032 pts/0    S+   11:53   0:00  |   |   |       |   \_ wc -l
winmutt    51779  0.4  0.0   2804  1876 pts/0    S+   11:53   0:00  |   |   |       \_ /bin/sh -c lsof -p 26796 | wc -l
winmutt    51780  0.0  0.0  10912  3280 pts/0    S+   11:53   0:00  |   |   |       |   \_ lsof -p 26796
winmutt    51782 77.5  0.0  10912   652 pts/0    R+   11:53   0:01  |   |   |       |   |   \_ lsof -p 26796
winmutt    51781  0.0  0.0   8312  2036 pts/0    S+   11:53   0:00  |   |   |       |   \_ wc -l
winmutt    51783  1.0  0.0   2804  1880 pts/0    S+   11:53   0:00  |   |   |       \_ /bin/sh -c lsof -p 26796 | wc -l
winmutt    51784  0.0  0.0  10912  3280 pts/0    S+   11:53   0:00  |   |   |       |   \_ lsof -p 26796
winmutt    51786 69.5  0.0  10912   680 pts/0    R+   11:53   0:01  |   |   |       |   |   \_ lsof -p 26796
winmutt    51785  0.0  0.0   8312  2036 pts/0    S+   11:53   0:00  |   |   |       |   \_ wc -l
winmutt    51787  1.9  0.0   2804  1880 pts/0    S+   11:53   0:00  |   |   |       \_ /bin/sh -c lsof -p 26796 | wc -l
winmutt    51788  0.0  0.0  10912  3284 pts/0    S+   11:53   0:00  |   |   |       |   \_ lsof -p 26796
winmutt    51790 76.9  0.0  10912   648 pts/0    R+   11:53   0:00  |   |   |       |   |   \_ lsof -p 26796
winmutt    51789  0.0  0.0   8312  2036 pts/0    S+   11:53   0:00  |   |   |       |   \_ wc -l
winmutt    51802  3.0  0.0   2804  1880 pts/0    S+   11:53   0:00  |   |   |       \_ /bin/sh -c lsof -p 26796 | wc -l
winmutt    51803  0.0  0.0  10912  3276 pts/0    S+   11:53   0:00  |   |   |       |   \_ lsof -p 26796
winmutt    51805 78.5  0.0  10912   648 pts/0    R+   11:53   0:00  |   |   |       |   |   \_ lsof -p 26796
winmutt    51804  0.0  0.0   8312  2028 pts/0    S+   11:53   0:00  |   |   |       |   \_ wc -l
winmutt    51808  100  0.0   2804  1876 pts/0    S+   11:53   0:00  |   |   |       \_ /bin/sh -c lsof -p 26796 | wc -l


top - 11:34:01 up 2 days, 56 min,  1 user,  load average: 46.65, 21.80, 15.11
Tasks: 552 total,  67 running, 484 sleeping,   0 stopped,   1 zombie
%Cpu(s): 59.9 us, 40.1 sy,  0.0 ni,  0.0 id,  0.0 wa,  0.0 hi,  0.1 si,  0.0 st 
MiB Mem :  15859.8 total,   2387.9 free,   6058.8 used,   8371.6 buff/cache     
MiB Swap:   4096.0 total,   4095.7 free,      0.2 used.   9801.1 avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                                                                
  36547 winmutt   20   0   10912    640    324 R  20.2   0.0   0:01.00 lsof                                                                                                                   
  36501 winmutt   20   0   10912    648    324 R  11.7   0.0   0:01.22 lsof                                                                                                                   
  35732 winmutt   20   0 1409.6g 319988 138792 R   9.8   2.0   0:12.07 code                                                                                                                   
   2872 winmutt   20   0 4776708 319432 133460 S   9.5   2.0  20:34.65 gnome-shell                                                                                                            
  36526 winmutt   20   0   10912    676    348 R   9.3   0.0   0:00.80 lsof                                                                                                                   
  36412 winmutt   20   0   10912    672    344 R   8.8   0.0   0:02.09 lsof                                                                                                                   
  36542 winmutt   20   0   10912    700    376 R   8.0   0.0   0:00.55 lsof                                                                                                                   
  36566 winmutt   20   0   10912    668    356 R   8.0   0.0   0:00.43 lsof                                                                                                                   
  36577 winmutt   20   0   10912    680    364 R   7.7   0.0   0:00.46 lsof                                                                                                                   
  36470 winmutt   20   0   10912    672    348 R   7.2   0.0   0:01.42 lsof                                                                                                                   
  36556 winmutt   20   0   10912    660    348 R   6.9   0.0   0:00.46 lsof                                                                                                                   
  36458 winmutt   20   0   10912    660    332 R   6.6   0.0   0:01.82 lsof                                                                                                                   
  36497 winmutt   20   0   10912    684    368 R   6.4   0.0   0:01.87 lsof                                                                                                                   
  36416 winmutt   20   0   10912    680    364 R   6.1   0.0   0:01.83 lsof                                                                                                                   
  36515 winmutt   20   0   10912    672    356 R   6.1   0.0   0:00.97 lsof                                                                                                                   
  36371 winmutt   20   0   10912    660    332 R   5.8   0.0   0:02.27 lsof                                                                                                                   
  36445 winmutt   20   0   10912    688    364 R   5.8   0.0   0:01.75 lsof                                                                                                                   
  36487 winmutt   20   0   10912    704    380 R   5.8   0.0   0:01.21 lsof                                                                                                                   
  36493 winmutt   20   0   10912    696    380 R   5.8   0.0   0:01.22 lsof                                                                                                                   
  36528 winmutt   20   0   10912    700    372 R   5.8   0.0   0:00.66 lsof                                                                                                                   
  36532 winmutt   20   0   10912    640    332 R   5.8   0.0   0:00.66 lsof                                                                                                                   
  36573 winmutt   20   0   10912    700    384 R   5.8   0.0   0:00.25 lsof                                                                                                                   
  36384 winmutt   20   0   10912    652    340 R   5.6   0.0   0:02.17 lsof                                                                                                                   
  36405 winmutt   20   0   10912    676    348 R   5.6   0.0   0:02.02 lsof                                                                                                                   
  36418 winmutt   20   0   10912    672    348 R   5.6   0.0   0:01.90 lsof                                                                                                                   
  36439 winmutt   20   0   10912    688    364 R   5.6   0.0   0:01.80 lsof                                                                                                                   
  36473 winmutt   20   0   10912    684    372 R   5.6   0.0   0:01.50 lsof                                                                                                                   
  36477 winmutt   20   0   10912    648    332 R   5.6   0.0   0:01.39 lsof                                                                                                                   
  36519 winmutt   20   0   10912    656    344 R   5.6   0.0   0:00.83 lsof                                                                                                                   
  36548 winmutt   20   0   10912    660    332 R   5.6   0.0   0:00.90 lsof                                                                                                                   
  36375 winmutt   20   0   10912    648    332 R   5.3   0.0   0:02.23 lsof                                                                                                                   
  36404 winmutt   20   0   10912    692    384 R   5.3   0.0   0:01.96 lsof                                                                                                                   
  36409 winmutt   20   0   10912    660    344 R   5.3   0.0   0:02.03 lsof                                                                                                                   
  36423 winmutt   20   0   10912    700    372 R   5.3   0.0   0:01.82 lsof                                                                                                                   
  36427 winmutt   20   0   10912    660    336 R   5.3   0.0   0:01.75 lsof                                                                                                                   
  36435 winmutt   20   0   10912    680    356 R   5.3   0.0   0:01.63 lsof 

To reproduce

No response

Log output

Metadata

Metadata

Labels

area:toolsRelates to tool usagekind:bugIndicates an unexpected problem or unintended behavioros:linuxHappening specifically on Linux

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions