简体   繁体   English

Windows中的Erlang-进程增加了吗?

[英]Erlang in Windows - Process Increase?

I am using Erlang and have just got started with it. 我正在使用Erlang,并且刚刚开始使用。 I keep hitting a process_limit in Windows and can't figure out how to increase the process limit ? 我一直在Windows中达到process_limit,无法弄清楚如何增加进程限制?

I am using WERL.exe and would appreciate the commands to increase this ? 我正在使用WERL.exe并希望使用命令来增加此值?

Thanks 谢谢

In your windows cmd prompt , you can fire up an erlang shell by typing erl on the terminal prompt and hitting Enter . 在Windows cmd prompt ,可以通过在终端提示符下键入erl并按Enter来启动erlang shell。 However, this will only work if, you have the erl.exe full path in your windows $PATH environment variable. 但是,这仅在Windows $PATH环境变量中具有erl.exe完整路径的情况下才有效。 This should be the folder: C:\\Program Files (x86)\\erl5.8.5\\bin on my machine, for the latest Erlang. 这应该是以下文件夹:我机器上的C:\\Program Files (x86)\\erl5.8.5\\bin ,以获取最新的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. 我确信您可以找到一种方法,将其添加到环境PATH变量中,关闭所有终端,然后再次打开,然后尝试输入erl命令。

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: 现在,为了增加可能的进程数量,您可以添加一个Flag,如下所示:
erl +P [Maximum No. of Processes] eg If i want to be able to spawn 13421779 processes within the erlang instance then i can issue the command like this erl +P [Maximum No. of Processes]例如,如果我希望能够在erlang实例中生成13421779个进程,那么我可以发出这样的命令

\nMicrosoft Windows [Version 6.1.7600] Microsoft Windows [版本6.1.7600]\nCopyright (c) 2009 Microsoft Corporation. 版权所有(c)2009 Microsoft Corporation。 All rights reserved. 版权所有。 
\nC:\\Users\\machine> erl +P 13421779 C:\\ Users \\ machine>错误+ P 13421779\nEshell V5.8.4 (abort with ^G) Eshell V5.8.4(用^ G中止)\n1> 1> \n
However, still, as you will realize later, even this maximum number has an upper limit. 但是,正如您稍后将意识到的那样,即使这个最大数字也有上限。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM