RT, I wrote a crawler to grab some json data and then wrote it into mongodb storage. The more than 30,000 pieces of data written earlier were all normal (I checked the database and the writing was successful), but suddenly the server-side cmd The window crashed. My thread setting is 10, my computer is equipped with i5 4210, and the memory is 8G. Is the configuration low? Or is there something wrong with my storage method and I need to use a connection pool?
ringa_lee2017-05-02 09:25:35
If you ask more effectively, you can provide the version information of MongoDB and pymongo and the log information of MongoDB.
If your mongodb and python programs are running in a CMD window, you can try running these two things in two different CMDs to see if you can avoid crashes.