extremely slow operations on Mac OSX

188 views
Skip to first unread message

Daniel Doubrovkine

unread,
Apr 13, 2016, 11:06:56 AM4/13/16
to mongod...@googlegroups.com
I have a local setup where MongoDB is extremely slow. Basic commands like creating an index or dropping a collection take a long time.

2016-04-13T11:02:19.970-0400 I COMMAND  [conn30] command mongoid_collection_snapshot_test.custom_connection_snapshots command: insert { insert: "custom_connection_snapshots", documents: [ { _id: ObjectId('570e5f789b0b5842f3b5e516'), workspace_basename: "snapshot", _slugs: [ "snapshot" ], max_collection_snapshot_instances: 2, created_at: new Date(1460559739398) } ], ordered: true } ninserted:1 keyUpdates:0 writeConflicts:0 numYields:0 reslen:40 locks:{ Global: { acquireCount: { r: 2, w: 2 } }, Database: { acquireCount: { w: 1, W: 1 } }, Collection: { acquireCount: { w: 1, W: 1 } } } protocol:op_query 1128ms
2016-04-13T11:04:37.898-0400 I COMMAND  [conn39] command gravity_test_imports.artist_similarity_indices.output.snapshot command: drop { drop: "artist_similarity_indices.output.snapshot" } keyUpdates:0 writeConflicts:0 numYields:0 reslen:125 locks:{ Global: { acquireCount: { r: 1, w: 1 } }, Database: { acquireCount: { W: 1 } } } protocol:op_query 1077ms

I cannot figure out what's going on, everything else is fast on this box. It was also rebuilt from scratch just recently. Any suggestions of where to look?

$ uname -a
Darwin dblock-imac.local 15.4.0 Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64

Thanks,
dB.

--

Kevin Adistambha

unread,
Apr 29, 2016, 1:50:57 AM4/29/16
to mongodb-user

Hi,

I have a local setup where MongoDB is extremely slow. Basic commands like creating an index or dropping a collection take a long time.

I cannot figure out what’s going on, everything else is fast on this box. It was also rebuilt from scratch just recently. Any suggestions of where to look?

Other than the insert and drop commands taking more than 1 second, does the log show anything unusual, e.g. warnings, errors, etc? If you’re still having this issue, could you specify:

  • how did you install MongoDB, and what version
  • what is the hardware spec of the box
  • is the /data/db directory mounted locally, also how much space does it have available?
  • is there anything else running on this machine that may create a resource contention?
  • is there any process taking an unusual amount of resource shown in Activity Monitor?
  • what is the command line options passed into mongod (i.e. the output of db.serverCmdLineOpts().parsed)

Also, it’s probably worth trying to reinstall MongoDB and emptying the /data/db directory and see if the problem persists.

Best regards,
Kevin

Daniel Doubrovkine

unread,
Jun 2, 2016, 10:58:38 AM6/2/16
to mongod...@googlegroups.com
I narrowed it down to the wiredtiger storage engine, switching to mmapv1 makes things fast again. Disabling journaling didn't help. I opened https://jira.mongodb.org/browse/WT-2680, it's a totally vanilla installation without any data, this shouldn't be happening. Happy to help if someone wants to give me next steps.



--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: https://docs.mongodb.org/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/c25fe90d-d19c-4de9-b327-982282320200%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages