× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
samjacinto reported 2018-02-21T22:06:38Z  · nhilam last modified 2018-03-13T17:21:17Z

MongoDB does not limit results by count


Priority Major
Complexity Unknown
Component MongoSQL
Version 19.0

Extremely large collection in MongoDB 3.6.2, I set max rows to 5 and run db.collection_name.find() and it seems to run forever and fill up all available memory. I suspect it is not respecting that I only asked for 5 rows. 

I have the following Mongo setup:

[cid:image002.jpg@01D3AA5A.699494C0]

Notice the # of documents in each collection.
I opened a fresh ADS with a fresh datastudio.log. I then proceeded to issue a db.ica_activitylog_warus.find() in a new query window with a 5 record limit. Worked fine.
Then I opened a new query window and did the same on ica_activitylog_amit, also worked fine.
I then I opened a new query window and performed db.ica_activitylog.find() with a 5 record limit. The entire ADS eventually locked up, not responding, consuming all available memory. After many minutes of waiting at a blank screen with the app not responding, I finally got in the text window:
>[JS] Script lines: 1-3 -----------------------------
db.ica_activitylog.find();
________________________________
>[Error] Script lines: 1-3 --------------------------

java.lang.OutOfMemoryError: GC overhead limit exceeded
________________________________
0 record(s) affected
[Executed: 2/20/2018 2:42:56 PM] [Execution: 7m 3s]
 

The grid window was blank.
I then closed ADS and attached datastudio.log and startup.log.

John, each record is less than 1K. Please I've been trying to tell you that your code seems to be pulling in the entire dataset, then displaying the first X rows. I have a very large memory allocation: 


vmarg.2=-Xmx4096M
vmarg.3=-XX:MaxPermSize=192m

That query singlehandedly filled up all available memory.

5 attachments

Issue #15532

Verified
Fixed
Resolved 2018-03-13T17:21:17Z
 
 
Completion
No due date
Fixed Build v18.0.19-6, v18.5.0-11, v19.0.0-beta-51
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017