Skip to main content
Post Closed as "Duplicate" by kenorb, grg
replaced http://apple.stackexchange.com/ with https://apple.stackexchange.com/
Source Link

I've seen other questions covering the topic of how to set the file limit on Leopard/Lion.

For example:

How to properly increase a `ulimit -n` limits?How to properly increase a `ulimit -n` limits?
Which command controls the open file limits?Which command controls the open file limits?

But after reading through those I'm still not clear on how I would set the open file limit for my instance of emacs. Can anyone explain that to me?

It seems to me that ulimit -n sets the limit for the current shell. That won't work for emacs, because emacs is not a shell. Also, apparently launching emacs from the shell would allow the ulimit -n value for the shell to apply to emacs. But I would like to not invoke emacs from a shell; I'd like to just click the pretty icon.

Also there are some other ways to modify the open file limit but I am not clear on exactly where those limits apply. At least one of the limits applies to "all open files on the operating system" and for my purposes that is much too broad a brush.

I want to know how to set the file limit for a specific app. Chrome, Emacs, or whatever. In my particular case, I am interested in emacs but I guess it would be a generic solution.

Thanks.

[I tried tagging this with ulimit but could not, because I am at 101 rep right now]

I've seen other questions covering the topic of how to set the file limit on Leopard/Lion.

For example:

How to properly increase a `ulimit -n` limits?
Which command controls the open file limits?

But after reading through those I'm still not clear on how I would set the open file limit for my instance of emacs. Can anyone explain that to me?

It seems to me that ulimit -n sets the limit for the current shell. That won't work for emacs, because emacs is not a shell. Also, apparently launching emacs from the shell would allow the ulimit -n value for the shell to apply to emacs. But I would like to not invoke emacs from a shell; I'd like to just click the pretty icon.

Also there are some other ways to modify the open file limit but I am not clear on exactly where those limits apply. At least one of the limits applies to "all open files on the operating system" and for my purposes that is much too broad a brush.

I want to know how to set the file limit for a specific app. Chrome, Emacs, or whatever. In my particular case, I am interested in emacs but I guess it would be a generic solution.

Thanks.

[I tried tagging this with ulimit but could not, because I am at 101 rep right now]

I've seen other questions covering the topic of how to set the file limit on Leopard/Lion.

For example:

How to properly increase a `ulimit -n` limits?
Which command controls the open file limits?

But after reading through those I'm still not clear on how I would set the open file limit for my instance of emacs. Can anyone explain that to me?

It seems to me that ulimit -n sets the limit for the current shell. That won't work for emacs, because emacs is not a shell. Also, apparently launching emacs from the shell would allow the ulimit -n value for the shell to apply to emacs. But I would like to not invoke emacs from a shell; I'd like to just click the pretty icon.

Also there are some other ways to modify the open file limit but I am not clear on exactly where those limits apply. At least one of the limits applies to "all open files on the operating system" and for my purposes that is much too broad a brush.

I want to know how to set the file limit for a specific app. Chrome, Emacs, or whatever. In my particular case, I am interested in emacs but I guess it would be a generic solution.

Thanks.

[I tried tagging this with ulimit but could not, because I am at 101 rep right now]

edited tags
Link
ephsmith
  • 2.3k
  • 17
  • 26
Source Link
Cheeso
  • 329
  • 2
  • 4
  • 14

"Too many open files" - how can I set the ulimit -n value for emacs on Lion?

I've seen other questions covering the topic of how to set the file limit on Leopard/Lion.

For example:

How to properly increase a `ulimit -n` limits?
Which command controls the open file limits?

But after reading through those I'm still not clear on how I would set the open file limit for my instance of emacs. Can anyone explain that to me?

It seems to me that ulimit -n sets the limit for the current shell. That won't work for emacs, because emacs is not a shell. Also, apparently launching emacs from the shell would allow the ulimit -n value for the shell to apply to emacs. But I would like to not invoke emacs from a shell; I'd like to just click the pretty icon.

Also there are some other ways to modify the open file limit but I am not clear on exactly where those limits apply. At least one of the limits applies to "all open files on the operating system" and for my purposes that is much too broad a brush.

I want to know how to set the file limit for a specific app. Chrome, Emacs, or whatever. In my particular case, I am interested in emacs but I guess it would be a generic solution.

Thanks.

[I tried tagging this with ulimit but could not, because I am at 101 rep right now]