[SERVER-4780] Improve Memory Leak Warning Message Created: 25/Jan/12  Updated: 11/Jul/16  Resolved: 06/Feb/12

Status: Closed
Project: Core Server
Component/s: Logging
Affects Version/s: 2.0.2
Fix Version/s: 2.0.3, 2.1.1

Type: Improvement Priority: Minor - P4
Reporter: Marc Bastien Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: logging
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-4282 clean up log messages Closed
is related to SERVER-4063 make leak warning take number of conn... Closed
Participants:

 Description   

The memory leak warning:
warning: virtual size (XXXXXXMB) - mapped size (YYYYYYMB) is large (XXXXXX-YYYYYYMB). could indicate a memory leak
was improved by https://jira.mongodb.org/browse/SERVER-4063 However, some customers are still seeing it occur over and over again in their logs. It has been determined that as long as the difference is not actively increasing, there is no danger. Is it possible for the warning to take into account the growth rate of this difference in addition to the number of connections?
As an alternative, is it possible to reduce the number of times this message is displayed? Presently it is called by mongos and also every time db.serverStatus() is run. Because MMS calls getServerStatus, this can generate a lot of noise in the log files.



 Comments   
Comment by Andrew Donarumo [ 23/Oct/12 ]

Also occurring now...

Tue Oct 23 14:34:21 [conn1595] end connection 10.240.81.54:54014
Tue Oct 23 14:34:21 [conn1607] query streaming_stories.streams ntoreturn:3 nscanned:25042 scanAndOrder:1 nreturned:3 reslen:24201 2247ms
Tue Oct 23 14:34:21 [initandlisten] connection accepted from 10.240.81.54:54091 #1609
Tue Oct 23 14:34:21 [conn1607] SocketException handling request, closing client connection: 9001 socket exception [2] server [10.240.81.55:47651]
Tue Oct 23 14:34:21 [initandlisten] connection accepted from 10.240.81.55:47719 #1610
Tue Oct 23 14:34:21 [initandlisten] connection accepted from 10.240.81.54:54100 #1611
Tue Oct 23 14:34:21 [initandlisten] connection accepted from 10.240.81.54:54107 #1612
Tue Oct 23 14:34:21 [conn1601] query streaming_stories.streams ntoreturn:10 nscanned:25024 scanAndOrder:1 nreturned:10 reslen:44837 2196ms
Tue Oct 23 14:34:21 [conn1601] SocketException handling request, closing client connection: 9001 socket exception [2] server [10.240.81.55:47631]

Comment by auto [ 06/Feb/12 ]

Author:

{u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: don't print out leak message more than once per minutes SERVER-4780
Branch: v2.0
https://github.com/mongodb/mongo/commit/d39bc96a0c15ee6714a53aee21e58f93a284c513

Comment by auto [ 06/Feb/12 ]

Author:

{u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: don't log memory leak warning so often SERVER-4780
Branch: master
https://github.com/mongodb/mongo/commit/f4bfa7195da14643865821aaa3b54cb44881eaff

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