Hello, I started onedev with docker, version 4.0.9. I want to add the JVM parameter when onedev starts to limit its maximum memory and control the proportion of its memory in the total memory of the server.
I tried to read the entrypoint.sh But we found that wrapper-linux-x86-64 was executed in the end, and then I found this in configFile /APP/conf/wrapper.conf
wrapper.java.maxmemory .percent=60
It seems that the default maximum value is 60% of the physical memory, but I don't know much about this startup mode, and I don't know how to change it when starting the image. I hope I can get some instructions, thank you!
您好,我是使用容器方式启动OneDev的,版本为4.0.9,我想在onedev启动时添加jvm参数用于限制其最大内存,控制其内存占服务器总内存的比重。 我尝试过去阅读镜像里的entrypoint.sh,但发现最后是执行了wrapper-linux-x86-64,然后在/app/conf/wrapper.conf下发现了
看上去是默认最大值为60%的物理内存,但这种启动方式我不是很了解,也不知道应该如何在启动镜像的时候改变它,希望可以得到前辈们的指点,谢谢!