Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Huge ram usage #4926

Closed
BhasherBEL opened this issue Dec 19, 2023 · 4 comments
Closed

Huge ram usage #4926

BhasherBEL opened this issue Dec 19, 2023 · 4 comments

Comments

@BhasherBEL
Copy link

BhasherBEL commented Dec 19, 2023

Description

Running an empty CouchDB on my laptop usage a lot of RAM (around 1.5GB), even without any specific configuration. On any other support I was able to test, it was way more small.

Steps to Reproduce

Dockerfile:

FROM couchdb:latest

ADD local.ini /opt/couchdb/etc

docker-compose:

services:
  db:
    build:
      context: .
    deploy:
      replicas: 1
      restart_policy:
        condition: on-failure

docker stats:

7ecf938cb065   src-scapp-history-db-1           0.06%     1.552GiB / 23.15GiB   6.70%     8.87kB / 715B     69.6kB / 8.19kB   42
73fd375e5930   src-scapp-cart-db-1              0.12%     1.559GiB / 23.15GiB   6.73%     9.08kB / 715B     81.9kB / 8.19kB   42
9742f9db97f6   src-scapp-recommendations-db-1   0.06%     1.55GiB / 23.15GiB    6.69%     4.8kB / 769B      69.6kB / 8.19kB   42
c08de0592197   src-scapp-products-db-1          0.08%     1.557GiB / 23.15GiB   6.73%     8.83kB / 715B     69.6kB / 8.19kB   42
45db3f937f1c   src-scapp-logging-db-1           0.10%     1.559GiB / 23.15GiB   6.73%     11.5kB / 5.84kB   164kB / 8.19kB    51

(in fact, I'm using 5 instances of couchDB, all with exactly the same Dockerfile and docker-compose. The only difference is the db name in docker-compose)

Expected Behaviour

I was expecting way smaller ram usage from each CouchDB instance.

Your Environment

{"couchdb":"Welcome","version":"3.3.3","git_sha":"40afbcfc7","uuid":"ef5f3f8a5617f9722e26959adb163522","features":["access-ready","partitioned","pluggable-storage-engines","reshard","scheduler"],"vendor":{"name":"The Apache Software Foundation"}}
  • CouchDB version used: 3.3.3
  • Browser name and version: Firefox 118.0.2 (64-bit)
  • Operating system and version: Linux 6.5.7-arch1-1 # 1 SMP PREEMPT_DYNAMIC Tue, 10 Oct 2023 21:10:21 +0000 x86_64 GNU/Linux

Additional Context

@big-r81
Copy link
Contributor

big-r81 commented Dec 19, 2023

Hey,

according to this, I would say that the output of this command is the memory usage of the container, not from couchdb.

@BhasherBEL
Copy link
Author

BhasherBEL commented Dec 19, 2023

Indeed, but it's the official CouchDB image, that only run CouchDB. In such cases, is there a way to extract the usage of CouchDB specifically, inside the CouchDB container ?

@big-r81
Copy link
Contributor

big-r81 commented Dec 20, 2023

Indeed, but it's the official CouchDB image, that only run CouchDB.

It is provided for convience for the user.

In such cases, is there a way to extract the usage of CouchDB specifically, inside the CouchDB container ?

I don't know what you mean. What are you trying to achive?

@big-r81
Copy link
Contributor

big-r81 commented Jan 27, 2024

I am closing this topic as there has been no response.

@big-r81 big-r81 closed this as completed Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants