Hallo,
what is the right way to increase the memory for java.
ps ax shows me default values and I try to configure memiory using a parameter.
Thanks
Ralf
docker run -d --restart=unless-stopped -e JAVA_OPTS=’-Xms2048m -Xmx12288m’ -e http_proxy=192.168.246.232:8080 -e https_proxy=IP:8080 -p 80:8080 rancher/server:v1.6.30 --db-host IP --db-port 3306 --db-user user --db-pass pwd --db-name cattle4
docker run -d --restart=unless-stopped -e JAVA_OPTS=’-Xms2048m -Xmx12288m’ -e http_proxy=192.168.246.232:8080 -e https_proxy=192.168.246.232:8080 -p 80:8080 rancher/server:v1.6.30 --db-host 192.168.241.92 --db-port 3306 --db-user root --db-pass Comline2017! --db-name cattle4
[root@srvrancher02 docker]# ps ax|grep java
8364 ? Ssl 2:57 java -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Xms128m -Xmx4g -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/lib/cattle/logs -Dlogback.bootstrap.level=WARN -Dhttp.proxyHost=192.168.246.232 -Dhttp.proxyPort=8080 -Dhttps.proxyHost=192.168.246.232 -Dhttps.proxyPort=8080 -Xms2048m -Xmx12288m -cp /usr/share/cattle/db1e9f3e4aa651d6bc3ab31fbcc3d43c:/usr/share/cattle/db1e9f3e4aa651d6bc3ab31fbcc3d43c/etc/cattle io.cattle.platform.launcher.Main
10923 pts/0 S+ 0:00 grep --color=auto java
[root@srvrancher02 docker]#