Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

high RAM usage of ols-web #582

Open
KonradHoeffner opened this issue Apr 20, 2022 · 2 comments
Open

high RAM usage of ols-web #582

KonradHoeffner opened this issue Apr 20, 2022 · 2 comments

Comments

@KonradHoeffner
Copy link

I would like to deploy OLS at our server but it doesn't have much RAM and it seems ols-web consumes more than 1.7 GB with the default configuration. Is there a way to reduce that?

$ docker stats
CONTAINER ID   NAME            CPU %     MEM USAGE / LIMIT     MEM %     NET I/O          BLOCK I/O         PIDS
a5a4ec1f2a0f   ols-ols-web-1   2.30%     1.764GiB / 15.41GiB   11.45%    289kB / 1.53MB   8.26MB / 34.7MB   46
dcbfa32575a6   ols-solr-1      0.09%     348.8MiB / 15.41GiB   2.21%     380MB / 462kB    6.6MB / 277MB     43
bb82da7a06bb   ols-mongo-1     0.48%     33.1MiB / 15.41GiB    0.21%     180kB / 256kB    1.9MB / 1.57MB    19
@KonradHoeffner KonradHoeffner changed the title high RAM usage of olsweb high RAM usage of ols-web Apr 20, 2022
@jamesamcl
Copy link
Member

Not sure. I expect this is probably the embedded Neo4j. There may be options to tweak it but we use a very old version.

@KonradHoeffner
Copy link
Author

-XX:+UseCompressedOops seems to help a little bit but maybe that is just random fluctuation:

$ docker stats
CONTAINER ID   NAME            CPU %     MEM USAGE / LIMIT     MEM %     NET I/O          BLOCK I/O         PIDS
bac47e22484e   ols-ols-web-1   2.64%     1.719GiB / 15.41GiB   11.16%    121kB / 539kB    4.93MB / 32.2MB   46
dcbfa32575a6   ols-solr-1      0.10%     205.9MiB / 15.41GiB   1.30%     8.51kB / 90B     32.6MB / 524kB    40
bb82da7a06bb   ols-mongo-1     0.58%     38.49MiB / 15.41GiB   0.24%     55.8kB / 118kB   7.85MB / 254kB    19

Or in the Dockerfile:

ENTRYPOINT ["java", "-XX:+UseCompressedOops", "-jar", "/opt/ols-boot.war"]

KonradHoeffner added a commit to KonradHoeffner/OLS that referenced this issue Apr 20, 2022
It doesn't change much though, maybe there are more savings to be had.
See EBISPOT#582.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants