This message was deleted.
# caching
s
This message was deleted.
b
docker logs output:
Copy code
WARNING: Write access to the build cache is unrestricted (use --no-warn-anon-cache-write to suppress this message).
WARNING: Access to the configuration user interface is unrestricted (use --no-warn-anon-ui-access to suppress this message).
Starting Gradle Enterprise build cache node (13.1) ...

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ratpack-blocking-7-1"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ratpack-compute-6-1"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ratpack-blocking-7-2"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ratpack-compute-6-7"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ratpack-compute-6-2"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ratpack-compute-6-8"
I run docker image with this:
Copy code
docker run --detach \
    --user $UID \
    --volume /opt/build-cache-node:/data \
    --publish 80:5071 \
    --restart always \
    gradle/build-cache-node:13.1 \
    start
r
Hi @Bilgehan Kalkan, can you give it more memory? Memory usage will increase somewhat as the cache grows, so it's possible that due to more usage you now need more memory. How many entries do you have in your cache, and how much memory is being used (you can run
top
in the docker container to see what the
java
process is using)?
b
Interestingly that Ubuntu VM don't have
java
installed. Can I pass
-Xms4G -Xmx2G
arguments after
start
like below? VM have 64 GB of ram.
Copy code
docker run --detach \
    --user $UID \
    --volume /opt/build-cache-node:/data \
    --publish 80:5071 \
    --restart always \
    gradle/build-cache-node:13.1 \
    start -Xms4G -Xmx2G
r
You can't pass JVM args to the start command, but you can set
JAVA_OPTS
on the container to whatever JVM args you want it to use
b
Thank you, I was able to run by setting max heap memory size by 8 GB.
Copy code
docker run --detach \
    --user $UID \
    --volume /opt/build-cache-node:/data \
    --publish 80:5071 \
    --restart always \
    --env JAVA_OPTS=-Xmx8g \
    gradle/build-cache-node:13.1 \
    start