[SERVER-23801] Server Crash after error Created: 19/Apr/16 Updated: 22/Apr/16 Resolved: 22/Apr/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Admin |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Alexandre [X] | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Operating System: | ALL |
| Participants: |
| Description |
|
I don't know why my mongo server crash :
|
| Comments |
| Comment by Ramon Fernandez Marina [ 22/Apr/16 ] |
|
Ange7, WiredTiger needs at least two files per collection (one for the collection data and one for the _id index), plus one file per additional index in a collection. If your total count of collections and indexes is large you'll need to adjust your open files limit accordingly. I see it's now set to 500000 above, which should be sufficient for most deployments. Please make sure that you set a high value for this limit at the system level. I'm going to close this ticket, but if after increasing this limit the problem persists please let us know so we can investigate further. Thanks, |
| Comment by Alexandre [X] [ 20/Apr/16 ] |
|
Hi Thomas, In root (i think it's the user that runs MongoDb) : ulimit -a |
| Comment by Kelsey Schubert [ 20/Apr/16 ] |
|
Hi Ange7, Can you please provide output of ulimit -a as the user that runs MongoDB? Thank you, |
| Comment by Alexandre [X] [ 20/Apr/16 ] |
|
Hey Ramon. I'm using MongoDB 3.2.5 on Ubuntu Server LTS 14.04 I uploaded my log file and it's a repeating incident, i don't why my mongo server crash some times... (2-3 times / day) and i think i founded : « 2016-04-19T19:23:10.166+0200 I - [conn97] Invariant failure: ret resulted in status UnknownError: 24: Too many open files at src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.cpp 74 » Thank you |
| Comment by Ramon Fernandez Marina [ 19/Apr/16 ] |
|
Ange7, can you please upload the full logs from the last restart until you get the invariant failure above? Also, what version of MongoDB is this happening on? Is this an isolated incident or is it repeating? Thanks, |