Windows 中的 Erlang - 进程增加?
我正在使用 Erlang 并且刚刚开始使用它。我在 Windows 中不断遇到 process_limit 并且不知道如何增加进程限制?
我正在使用WERL.exe
并且希望有命令来增加这个?
谢谢
I am using Erlang and have just got started with it. I keep hitting a process_limit in Windows and can't figure out how to increase the process limit ?
I am using WERL.exe
and would appreciate the commands to increase this ?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 Windows
cmd 提示符
中,您可以通过在终端提示符上键入erl
并按Enter
来启动 erlang shell。但是,只有当您的 Windows$PATH
环境变量中有erl.exe
完整路径时,这才有效。对于最新的 Erlang,这应该是我的计算机上的文件夹:C:\Program Files (x86)\erl5.8.5\bin
。我相信您可以找到一种方法将其添加到环境 PATH 变量中,关闭所有终端并再次打开并尝试输入 erl 命令。现在,这应该发生:
Now, to increase the possible number of processes, you add a Flag like this:
erl +P [Maximum No. of Processes]
e.g. If i want to be able to spawn 13421779 processes within the erlang instance then i can issue the command like thisHowever, still, as you will realize later, even this maximum number has an upper limit. :)
In your windows
cmd prompt
, you can fire up an erlang shell by typingerl
on the terminal prompt and hittingEnter
. However, this will only work if, you have theerl.exe
full path in your windows$PATH
environment variable. This should be the folder:C:\Program Files (x86)\erl5.8.5\bin
on my machine, for the latest Erlang. I am sure you can find a way to add this to your environment PATH variable, close all terminals and open again and try entering theerl
command.Now, this should happen:
Now, to increase the possible number of processes, you add a Flag like this:
erl +P [Maximum No. of Processes]
e.g. If i want to be able to spawn 13421779 processes within the erlang instance then i can issue the command like thisHowever, still, as you will realize later, even this maximum number has an upper limit. :)