The sh script used to set java Xmx parameter in JAVA_OPTS doesn't take into account the container memory limitation.
The script set a Xmx value based on the docker engine memory.
Running the container with ot without memory limit give the same result.
$ docker run -it -e MEM_JAVA_PERCENT=100 elgalu/selenium /usr/bin/java-dynamic-memory-opts.sh
-Xmx32843292k
The expected value for the second test is :
-Xmx4294967k
Operating System
[x] I provided my operating system name and version, e.g. output of uname -a
Linux my-server 3.10.0-957.10.1.el7.x86_64 #1 SMP Mon Mar 18 15:06:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Image version
[x] I have latest version of this image. Upgrade with docker pull elgalu/selenium
[ ] If I don't have latest version of this image and can't upgrade, I will specify which one I'm using.
Docker version
[ ] I have latest version of docker and I will specify here the output of docker --version
[x] If I don't have latest version of docker I will specify which version with docker --version output
Docker version 18.09.0, build 4d60db4
Docker-Compose
(if using docker-compose)
[ ] I have latest version of docker-compose and I will specify here the output of docker-compose --version
[ ] If I don't have latest version of docker-compose I will specify which version with docker-compose --version output
The sh script used to set java Xmx parameter in JAVA_OPTS doesn't take into account the container memory limitation. The script set a Xmx value based on the docker engine memory.
Running the container with ot without memory limit give the same result.
The expected value for the second test is :
-Xmx4294967k
Operating System
uname -a
Linux my-server 3.10.0-957.10.1.el7.x86_64 #1 SMP Mon Mar 18 15:06:45 UTC 2019 x86_64 x86_64 x86_64 GNU/LinuxImage version
[x] I have latest version of this image. Upgrade with
docker pull elgalu/selenium
[ ] If I don't have latest version of this image and can't upgrade, I will specify which one I'm using.
Docker version
[ ] I have latest version of docker and I will specify here the output of
docker --version
[x] If I don't have latest version of docker I will specify which version with
docker --version
output Docker version 18.09.0, build 4d60db4Docker-Compose
(if using docker-compose)
[ ] I have latest version of docker-compose and I will specify here the output of
docker-compose --version
[ ] If I don't have latest version of docker-compose I will specify which version with
docker-compose --version
output