RT, I wrote a crawler to grab some json data and then write it into mongodb storage. More than 30,000 pieces of data were normal (I checked the database and the writing was successful), but suddenly the cmd window of that server flashed back. My thread setting is 10, the computer is configured with i5 4210 and 8G of memory, is the configuration low, or is there a problem with my storage method and connection pool is needed?
If you ask questions more effectively, you can provide version information of MongoDB and pymongo and 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 flashbacks.