OLS icon indicating copy to clipboard operation
OLS copied to clipboard

high RAM usage of ols-web

Open KonradHoeffner opened this issue 3 years ago • 2 comments

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 avatar Apr 20 '22 14:04 KonradHoeffner

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

jamesamcl avatar Apr 20 '22 14:04 jamesamcl

-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 avatar Apr 20 '22 15:04 KonradHoeffner