Skip to content

VS Code VSIX: Large number of file watchers #277

@alzimmermsft

Description

@alzimmermsft

Extension created crazy number of file watchers - is that a bug?

sudo bash -c '
printf "%-8s %-6s %s\n" WATCHES PID CMD
for p in /proc/[0-9]*; do
  pid=${p#/proc/}
  sum=0
  for fi in "$p"/fdinfo/*; do
    [ -f "$fi" ] || continue
    c=$(grep -c "^inotify" "$fi" 2>/dev/null || true)
    sum=$((sum + c))
  done
  if [ "$sum" -gt 0 ]; then
    cmd=$(tr -d "\0" < "$p/cmdline" | head -c 120)
    printf "%-8s %-6s %s\n" "$sum" "$pid" "$cmd"
  fi
done 2>/dev/null | sort -nr | head
'

WATCHES PID CMD
517372 2384325 /home/xxx/.vscode-server/extensions/ms-azuretools.vscode-azure-mcp-server-0.5.3-linux-x64/server/azmcpserverstart

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Not Started

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions