gwuhaolin / chrome-pool Goto Github PK
View Code? Open in Web Editor NEWHeadless chrome tabs manage pool
Headless chrome tabs manage pool
chrome-remote-interface update to 0.24.0
我起了一个web服务,创建了一个chromepool对象,在访问web服务的时候,生成tab和protocle,然后完成请求后,release掉,当我频繁访问web服务的时候,会有很大的几率有not open报错,如果我不release,就一切正常,这儿有个类似的bug
cyrus-and/chrome-remote-interface#189
当我在centos7下面运行ChromePool.new()的时候,会报错:
(node:30838) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 101 chromeAlive listeners added. Use emitter.setMaxListeners() to increase limit
不管listenner数量设为多少,我发现listenner会一直增长直到报错,还有就是pool源代码里面执行到
chromePoll.chromeRunner = await launchChrome(Object.assign({}, chromeRunnerOptions, { port }));
就不执行了,看来是runner那边有bug
就是runner里面的一些参数 比如chromeFlags
chrome-remote-interface has update to 0.24.3, and only the newest version support capture clip screenshot.
A Node library which provides a high-level API to control headless Chrome over the DevTools Protocol made by google.
https://github.com/GoogleChrome/puppeteer
谷歌自己出了个
我之前从 https://chromedevtools.github.io/devtools-protocol/ 看到:
Simultaneous protocol clients
We currently do not support multiple clients connected to the protocol simultaneously. This includes opening DevTools while another client is connected. On the bug tracker, crbug.com/129539 follows the issue; you can star it for email updates.
我的理解是一个headless chrome只能支持一个web socket client接入,理论上不可能控制多tab?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.