is thrown because of an error in the title:
Message: Tried to run command without establishing a connection
interprets:
to start with my crawler architecture, I use firefox+selenium. The error above is caused by the fact that after the browser exits, the crawler needs the browser to execute some commands, so the error appears. The second problem comes:
Why does the
browser crash automatically?Generally speaking, it is because it is running out of resources. What resources?Memory resources, the browser is very occupied memory, and some crawlers in order to speed up the crawler will let the browser do cache,
this results in the browser taking up more memory
solution:
1. According to the resource occupied by the crawler, increase the memory
appropriately
2. Slow down the crawler speed and make the browser a little idle, especially in the crawler that starts multiple browsers
p>
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — the 2019-04-24 update — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — p>
the above statement is not wrong, but some is not taken into account, the browser will actually the main reason for the collapse because the browser memory leaks, that is to say, because the default browser is open caching function, p>
as the crawler runs, the cache of the browser will become larger and larger, which will eventually lead to the memory leak of the browser ( premise is that the browser does not restart the crawler, if the browser restarts after a period of time, there will be no problem ),
as for how to disable browser cache in crawlers, this is mentioned in my other blog, but not
reproduced in: https://www.cnblogs.com/gunduzi/p/10600152.html p>
Read More:
- Failed to decode response: zlib_decode(): data error
- The icon on the layui page is not displayed, and an error message is reported: Failed to decode downloaded font …..
- JS Ajax request is successful, the response displays “failed to load response data”
- Springmvc response. Senderror() custom message prompt
- Installation failed with message Failed to finalize session : INSTALL_FAILED_INVALID_APK
- Error message error response from daemon: RPC error: code = unavailable when deploying swarm cluster. Solution:
- springboot : Failed to decode downloaded font 和 OTS parsing error
- CSS Failed to decode downloaded font, OTS parsing error: Failed to convert WOFF 2.0 font to SFNT
- @Solution of error failed to get response from / Vue cli version marker
- Failed to load resource: net::ERR_ INSECURE_ Response problem solving record
- How to remove the message “Membership credential verification failed.” displayed in the Event Log
- Error response from daemon: failed to parse mydockerfile-centos: ENV must have two arguments
- VirtualBox problem solving set -[drm:vmw_host_log [vmwgfx]] *ERROR* Failed to send host log message
- JMeter running error response code: non HTTP response code: java.lang.illegalargumentexception find and solve
- PHP under linux uses pdo-dblib to connect to mssql to report an error solution. Error message: SQLSTATE[01002] Adaptive Server connection failed (severity 9)
- Solution to Vue cli · failed to download repo vuejs templates/webpack: connect etimeout followed by an IP digital error message
- Solution: DevTools failed to load SourceMap:… net::ERR_HTTP_RESPONSE_CODE_FAILURE problem
- How to Fix Gtk-Message: Failed to load module “canberra-gtk-module”
- failed: Error during WebSocket handshake: Unexpected response code: 400
- docker Error response from daemon: Bad response from Docker engine