Spring Data + MongoDB is somehow very slow after upgrading to macOS Sierra

After switching to macOS Sierra, the connection between Spring Data and MongoDB is somehow extremely slow, mostly not used.

Specifically, the database interaction collection, which previously took ~ 100 ms, now takes ~ 10 minutes.

I use the latest stable driver versions and Spring data:

Java Driver MongoDB

<dependency>
    <groupId>org.mongodb</groupId>
    <artifactId>mongodb-driver</artifactId>
    <version>3.3.0</version>
</dependency>

Spring MongoDB Data

<dependency>
    <groupId>org.springframework.data</groupId>
    <artifactId>spring-data-mongodb</artifactId>
    <version>1.9.3.RELEASE</version>
</dependency>

In addition, I 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 am not sure how to solve this problem. Let me know if you think I should post it elsewhere, and I will.

Thank.

Update 1: the slowness problem still exists, after trying to run mongodb in a docker container, rather than running it on macOS Sierra.

Update 2: the demotion to El Capitan has ended.

+4
2

, fooobar.com/questions/82016/... , /etc/hosts localhost

+1

, , Docker macOS Sierra, Mongo. , , Vagrant Ubuntu , . VirtualBox VMWare Fusion, macOS. Docker Linux, OS X, Vagrant, , , .

0

Source: https://habr.com/ru/post/1655460/


All Articles