[SERVER-3016] out of memory when doing $where clause within eval Created: 28/Apr/11  Updated: 21/Sep/17  Resolved: 12/Oct/11

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

Type: Bug Priority: Major - P3
Reporter: Antoine Girbal Assignee: Antoine Girbal
Resolution: Duplicate Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
Operating System: ALL
Participants:
Case:

 Description   

info at SUPPORT-117
Found a workaround for user, but still we should investigate mem leak.



 Comments   
Comment by Antoine Girbal [ 12/Oct/11 ]

most likely duplicate of SERVER-3528

Comment by Marcel Lanz [ 22/May/11 ]

I can provide time and logs at any time to resolve this issue, or:

  • do you plan to fix it using V8 ?
  • should I buy a license
Comment by Marcel Lanz [ 09/May/11 ]

do one have to null-out/GC a variable explicitly after assigning a collection to it ? (and as I do in my queries); because the heap should not grow if one uses constant size collections and assign them to a JS variable ?

Comment by Antoine Girbal [ 09/May/11 ]

It looks like either there are some large mem leaks with SM, or the JS heap limit is too low.
If I try to use the pure JS M/R with SM I get an OOM fairly quickly, which does not happen with v8.

Comment by Marcel Lanz [ 05/May/11 ]

after a few days more we got the OOM again.

May 5 18:40:54 [conn140] query A3.reduced.chunks ntoreturn:1 reslen:16486 nscanned:1

{ files_id: ObjectId('4db7039c7cb3eb3ef05ad674'), n: 0 }

nreturned:1 151ms
Thu May 5 18:40:54 [conn142] query A3.reduced.chunks ntoreturn:1 reslen:16486 nscanned:1

{ files_id: ObjectId('4db702967cb3eb3ef05ac0d0'), n: 0 }

nreturned:1 156ms
Thu May 5 18:40:54 [conn137] query A3.reduced.chunks ntoreturn:1 reslen:16486 nscanned:1

{ files_id: ObjectId('4db704387cb3eb3ef05ae31c'), n: 0 }

nreturned:1 162ms
Thu May 5 18:41:34 [dur] lsn set 248202973
Thu May 5 18:42:34 [dur] lsn set 248262113
Thu May 5 18:43:34 [dur] lsn set 248321193
Thu May 5 18:44:34 [dur] lsn set 248380313
Thu May 5 18:45:29 [conn140] query A3.reduced.chunks ntoreturn:1 reslen:16486 nscanned:1

{ files_id: ObjectId('4dbfb06a7e56d0276b0140ec'), n: 0 }

nreturned:1 157ms
Thu May 5 18:45:29 [conn137] query A3.reduced.chunks ntoreturn:1 reslen:16486 nscanned:1

{ files_id: ObjectId('4dbfb1207e56d0276b01520a'), n: 0 }

nreturned:1 151ms
Thu May 5 18:45:34 [dur] lsn set 248439413
Thu May 5 18:46:20 [conn139] query A3.reduced.chunks ntoreturn:1 reslen:8294 nscanned:1

{ files_id: ObjectId('4dbdc2457cb3658faebf2d60'), n: 0 }

nreturned:1 241ms
Thu May 5 18:46:20 [conn142] query A3.reduced.chunks ntoreturn:1 reslen:16486 nscanned:1

{ files_id: ObjectId('4dbdc4817cb3658faebf642b'), n: 0 }

nreturned:1 294ms
Thu May 5 18:46:34 [dur] lsn set 248498673
Thu May 5 18:47:34 [dur] lsn set 248557923
Thu May 5 18:48:34 [dur] lsn set 248617173
Thu May 5 18:49:23 [conn138] JS Error: out of memory
Thu May 5 18:49:23 [conn138] query A3.$cmd ntoreturn:1 command: { $eval: "var result_1304614162962_267 = db.ch.<hidden>.customizing....", args: {} } reslen:105 273ms
Thu May 5 18:49:23 [conn139] query A3.$cmd ntoreturn:1 command: { count: "reduced.files", query: {} } reslen:64 217ms
Thu May 5 18:49:23 [conn138] CMD: drop A3.result_1304614162962_267
Thu May 5 18:49:23 [conn138] JS Error: out of memory
Thu May 5 18:49:23 [conn138] query A3.$cmd ntoreturn:1 command: { $eval: "var result_1304614163504_267 = db.ch.<hidden>.customizing....", args: {} } reslen:105 273ms
Thu May 5 18:49:23 [conn137] query A3.$cmd ntoreturn:1 command: { count: "reduced.files", query: {} } reslen:64 207ms
Thu May 5 18:49:23 [conn138] CMD: drop A3.result_1304614163504_267
Thu May 5 18:49:24 [conn138] JS Error: out of memory
Thu May 5 18:49:24 [conn138] query A3.$cmd ntoreturn:1 command: { $eval: "var result_1304614164144_267 = db.ch.<hidden>.customizing....", args: {} } reslen:105 274ms
Thu May 5 18:49:24 [conn137] query A3.$cmd ntoreturn:1 command: { count: "reduced.files", query: {} } reslen:64 175ms
Thu May 5 18:49:24 [conn139] query A3.$cmd ntoreturn:1 command: { count: "reduced.files", query: {} } reslen:64 171ms
Thu May 5 18:49:24 [conn138] CMD: drop A3.result_1304614164144_267
Thu May 5 18:49:25 [conn138] JS Error: out of memory
Thu May 5 18:49:25 [conn138] query A3.$cmd ntoreturn:1 command: { $eval: "var result_1304614164996_267 = db.ch.<hidden>.customizing....", args: {} } reslen:105 278ms
Thu May 5 18:49:25 [conn138] CMD: drop A3.result_1304614164996_267
Thu May 5 18:49:25 [conn152] getmore local.oplog.$main cid:9071713290800334570 getMore: { ts:

{ $gte: new Date(5603151735213260801) }

} bytes:20 nreturned:0 3207ms
Thu May 5 18:49:30 [conn137] JS Error: out of memory
Thu May 5 18:49:30 [conn137] query A3.$cmd ntoreturn:1 command: { $eval: "var result_1304614169801_258 = db.ch.<hidden>.customizing....", args: {} } reslen:105 268ms
Thu May 5 18:49:30 [conn137] CMD: drop A3.result_1304614169801_258
Thu May 5 18:49:30 [conn137] JS Error: out of memory
Thu May 5 18:49:30 [conn137] query A3.$cmd ntoreturn:1 command: { $eval: "var result_1304614170232_262 = db.ch.<hidden>.customizing....", args: {} } reslen:105 274ms
Thu May 5 18:49:30 [conn137] CMD: drop A3.result_1304614170232_262
Thu May 5 18:49:34 [dur] lsn set 248676413

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