On 2022-11-22, Mik J <[email protected]> wrote: > Hello, > Starting opensearch fails if memory is 4G or more.My VM has 12Gb memory > # sysctl -a... > hw.physmem=17161977856hw.usermem=17161961472 > > # vmstat > procs memory page disks traps cpu > r s avm fre flt re pi po fr sr sd0 cd0 int sys cs us sy id > 1 49 31M 14347M 6076 0 0 0 0 0 64 0 48 1738 1364 16 5 80 > > I also added in /etc/login.confopensearch:\ > :openfiles=65536:\ > :tc=daemon: > > /etc/opensearch/jvm.options...-Xms3g > -Xmx3g > Works > /etc/opensearch/jvm.options...-Xms4g > -Xmx4g > Works > Does anyone understand why I can get up to 4gb ?
You probably need to raise datasize limits in /etc/login.conf.d/opensearch too, otherwise it uses the default from /etc/login.conf. -- Please keep replies on the mailing list.

