Skip to content

Host networking: High CPU and memory usage which eventually crashes docker. #10254

Open

Description

Original issue #214673 described similar behavior as mine.
These vscode-server/bin processes seem to be infinitely spinning up until OOM.

Screenshot 2024-06-12 at 15 26 00

Originally posted by @mliudev in microsoft/vscode#214673 (comment)

devcontainer.json

// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
{
    "name": "Node.js & TypeScript",
    // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
    "image": "mcr.microsoft.com/devcontainers/typescript-node:20",
    "runArgs": ["--network=host"],
    "postCreateCommand": "git config --global --add safe.directory /workspaces/Playground",
    "customizations": {
        "vscode": {
            "extensions": [
                "esbenp.prettier-vscode",
                "dbaeumer.vscode-eslint",
                "ionutvmi.path-autocomplete",
                "github.vscode-github-actions",
                "ms-azuretools.vscode-docker",
                "clinyong.vscode-css-modules",
                "eamodio.gitlens"
            ],
            "settings": {
                "typescript.tsdk": "node_modules/typescript/lib",
                "typescript.enablePromptUseWorkspaceTsdk": true,
                "typescriptreact.preferGoToSourceDefinition": true,
                "[scss]": {
                    "editor.defaultFormatter": "esbenp.prettier-vscode"
                },
                "remote.localPortHost": "allInterfaces",
                "cssModules.pathAlias": {
                    "@/common": "${workspaceFolder}/src/common",
                    "@/app/(app)": "${workspaceFolder}/src/app"
                },
                "search.exclude": {
                    "**/.git": true,
                    "**/.svn": true,
                    "**/.hg": true,
                    "**/CVS": true,
                    "**/.DS_Store": true,
                    "**/Thumbs.db": true,
                    ".next": true,
                    "node_modules": true
                }
            }
        }
    },
    "features": {
        "ghcr.io/devcontainers-contrib/features/firebase-cli:2": {}
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

containersIssue in vscode-remote containersinfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions