Skip to content

Automatically adjust ulimit for Mac/Linux when running Code #2348

@jagreehal

Description

@jagreehal

On OSX (10.11.2) When I set externalConsole to false I encounter EMFILE errors.

By running

var exec = require('child_process').exec;
exec('ulimit -a', function (error, stdout, stderr) {
  console.log('stdout:', stdout);
});

It looks like the the limit for open files is 1024.

Everything is fine when when setting externalConsole to true as the size is what's specified in bash_profile (4096).

I'd really like to use the VSCode console so how can I set the ulimit?

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionalitylinuxIssues with VS Code on LinuxmacosIssues with VS Code on MAC/OS X

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions