标签: javascript node.js phantomjs
我使用node.js通过childProcess.exec生成多个phantomjs worker并将缓冲区输出写入DB。我想知道在节点崩溃之前可以通过节点生成的最大进程数。 Phantomjs脚本很复杂,包括登录和执行操作,并且需要接近5秒才能返回输出。 代码看起来像这样: childProcess.exec('./phantomsjs testScript.js', function(err, stdout, stderr){}
childProcess.exec('./phantomsjs testScript.js', function(err, stdout, stderr){}