[SERVER-3295] Too many open cursors leaking memory Created: 19/Jun/11  Updated: 29/Aug/11  Resolved: 20/Jun/11

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Will Shulman Assignee: Dwight Merriman
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

Over time I can see a steady growth of Virtual - Mapped on the server in a way that is uncorrelated with the number of connections. However, it looks like too many cursors are open. How do we fix that?

"cursors":

{ "totalOpen":677263, "clientCursors_size":677263, "timedOut":20 }

,



 Comments   
Comment by auto [ 21/Jun/11 ]

Author:

{u'login': u'dwight', u'name': u'dwight', u'email': u'dwight@10gen.com'}

Message: SERVER-3295 report more details on cursors in serverstatus to facilitate troubleshooting
Branch: master
https://github.com/mongodb/mongo/commit/e33be1a519b8a6345eb4cefacafa8952b0a3d632

Comment by Dwight Merriman [ 20/Jun/11 ]

be sure no one is using QueryOption_NoCursorTimeout option. perhaps this can be checked with mongosniff.

Comment by Dwight Merriman [ 20/Jun/11 ]

timedOut is virtually zero, which surprises me and makes me wonder what is up.

Comment by Eliot Horowitz (Inactive) [ 20/Jun/11 ]

cursors get closed when:

  • 10 minutes of inactivity
  • client consume all data
  • client closes once a user is done with it

Its impossible to give a generic answer to this, so the mailing list might be a better place to diagnose.

Generated at Thu Feb 08 03:02:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.