Windows 中的 Erlang - 进程增加?

发布于 2025-01-08 04:53:19 字数 134 浏览 0 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

久隐师 2025-01-15 04:53:19

在 Windows cmd 提示符 中,您可以通过在终端提示符上键入 erl 并按 Enter 来启动 erlang shell。但是,只有当您的 Windows $PATH 环境变量中有 erl.exe 完整路径时,这才有效。对于最新的 Erlang,这应该是我的计算机上的文件夹:C:\Program Files (x86)\erl5.8.5\bin。我相信您可以找到一种方法将其添加到环境 PATH 变量中,关闭所有终端并再次打开并尝试输入 erl 命令。

现在,这应该发生:

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
C:\Users\machine> erl Eshell V5.8.4 (abort with ^G) 1>

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 this

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
C:\Users\machine> erl +P 13421779 Eshell V5.8.4 (abort with ^G) 1>

However, 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 typing erl on the terminal prompt and hitting Enter. However, this will only work if, you have the erl.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 the erl command.

Now, this should happen:

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
C:\Users\machine> erl Eshell V5.8.4 (abort with ^G) 1>

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 this

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
C:\Users\machine> erl +P 13421779 Eshell V5.8.4 (abort with ^G) 1>

However, still, as you will realize later, even this maximum number has an upper limit. :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文