MongoDB troubleshooting on Windows (C#) (What to do?)

╄→гoц情女王★ 提交于 2019-12-13 07:24:44

问题


I have trouble with MongoDB on Windows 7 (32 bit). I make some tests with adding/deleting data. So after some time (i do not know how much, maybe 10 minutes of non-stopping requests) MongoDB server still works but not answers! From console shell I tried command "show collections", but it stucks! The size of storage at this moment was only 160 MBs. This trouble was yesterday and it was before not always, but from time to time. And only after restarting MongoDB works fine before next such trouble. Help me please what to check, profile, etc. Finally MongoDB will work on 64 bit machines, but I am afraid, because I do not want to restart it every 10-60 minutes!!! I use official C# driver.

Thank you for advices!!!!!!!!!!!!!!!!!!!!

Closed


回答1:


You could watch some information about working mongodb on ip + 1000), so by default is http://localhost:28017.

Check amount of opened connections to mongo server.




回答2:


I don't know what is causing your problem, but the points that spring to mind are:

  1. are you using an older version of MongoDB? Try the latest release.
  2. are you using the latest version of the driver? If not, try that.
  3. running mongoDB on 32bit is not at all ideal. I would only run it on 64bit - and have done so for a few months now without any similar problems.
  4. is anything appearing the logs, any errors?
  5. if nothing above helps, best thing to do is post it on the MongoDB forums as you'll get more help there


来源:https://stackoverflow.com/questions/5350434/mongodb-troubleshooting-on-windows-c-what-to-do

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!