Home  >  Q&A  >  body text

nosql - mongodb运行了一会儿就自动闪退是什么情况?

RT,我写了一个爬虫抓取一些json数据然后写入mongodb存储,前面写了三万多条数据都正常(我检查过数据库里面,写入成功了),但是突然那个服务端的cmd窗口就闪退了。我线程设置的是10,电脑配置i5 4210,内存8G,是不是配置低了,还是我这种存储方式有问题,需要用到连接池?

習慣沉默習慣沉默2751 days ago744

reply all(1)I'll reply

  • ringa_lee

    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.

    reply
    0
  • Cancelreply