java - Spring Data + MongoDB somehow extremely slow after upgrade to macOS Sierra -
after upgrading macos sierra, communication between spring data , mongodb somehow extremely slow, not usable.
concretely, collection of interactions database took ~100 ms, takes ~10 minutes.
i'm using recent stable versions of driver , spring data:
mongodb java driver
<dependency> <groupid>org.mongodb</groupid> <artifactid>mongodb-driver</artifactid> <version>3.3.0</version> </dependency>
spring data mongodb
<dependency> <groupid>org.springframework.data</groupid> <artifactid>spring-data-mongodb</artifactid> <version>1.9.3.release</version> </dependency>
furthermore, have installed mongodb using homebrew.
mongod --version
:
db version v3.2.9 git version: 22ec9e93b40c85fc7cae7d56e7d6a02fd811088c openssl version: openssl 1.0.2h 3 may 2016 allocator: system modules: none build environment: distarch: x86_64 target_arch: x86_64
i not sure how resolve issue. let me know if think should post elsewhere, , will.
thanks.
update 1: problem of slowness still there, after trying run mongodb in docker container instead of running on macos sierra.
update 2: ended downgrading el capitan.
probably related https://stackoverflow.com/a/39698914/1469525 answer being modification /etc/hosts file localhost
Comments
Post a Comment