Tag: phantomjs pm2

尝试缩放节点群集后,phantomjs节点崩溃

相关的GitHub问题: https : //github.com/sgentle/phantomjs-node/issues/280 我有一个简单的应用程序,执行以下操作: var phantom = require('phantom'), express = require('express'), serve = express(); serve.get('/foo', function (req, res) { try { phantom.create(function (ph) { console.log('Phantom browser created w/ pid: ', ph.process.pid); ph.onError = function (msg, trace) { var msgStack = ['PHANTOM ERROR: ' + msg]; if (trace && trace.length) { msgStack.push('TRACE:'); trace.forEach(function (t) { […]