I am running Solr 8.6.2 under FreeBSD 12.3 inside a VM with 32GB of ram
Hypervisor: Origin = "VMwareVMware"
real memory = 34359738368 (32768 MB)
avail memory = 33370628096 (31824 MB)
Solr is installed from packages and I am limiting it's memory like so:
/usr/local/openjdk11/bin/java -server -Xms16g -Xmx16g -XX:+UseG1GC -XX:+PerfDisableSharedMem -XX:+ParallelRefProcEnabled
Despite this, the process ends up taking an increasing amount of memory, goes into swap, eventually exhausts swap and the box fails unless I monitor it and restart it every 2 weeks or so. But right now I'm stuck in monitoring hell, having to endure countless swap warning messages, etc.
I asked the Solr team about this, they claim it's a FreeBSD issue. That their process really only occupies 16Gb of memory.
top reports this and I'm at a loss as to what to do next...
28 processes: 1 running, 27 sleeping
CPU: 35.9% user, 0.0% nice, 2.7% system, 0.1% interrupt, 61.3% idle
Mem: 23G Active, 4132M Inact, 1777M Laundry, 2258M Wired, 1572M Buf, 682M Free
Swap: 4096M Total, 1947M Used, 2149M Free, 47% Inuse
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
82778 solr 284 52 0 252G 27G uwait 1 713:51 0.00% java
83076 zookeeper 56 52 0 9876M 1724M uwait 1 11:46 0.00% java
Hypervisor: Origin = "VMwareVMware"
real memory = 34359738368 (32768 MB)
avail memory = 33370628096 (31824 MB)
Solr is installed from packages and I am limiting it's memory like so:
/usr/local/openjdk11/bin/java -server -Xms16g -Xmx16g -XX:+UseG1GC -XX:+PerfDisableSharedMem -XX:+ParallelRefProcEnabled
Despite this, the process ends up taking an increasing amount of memory, goes into swap, eventually exhausts swap and the box fails unless I monitor it and restart it every 2 weeks or so. But right now I'm stuck in monitoring hell, having to endure countless swap warning messages, etc.
I asked the Solr team about this, they claim it's a FreeBSD issue. That their process really only occupies 16Gb of memory.
top reports this and I'm at a loss as to what to do next...
28 processes: 1 running, 27 sleeping
CPU: 35.9% user, 0.0% nice, 2.7% system, 0.1% interrupt, 61.3% idle
Mem: 23G Active, 4132M Inact, 1777M Laundry, 2258M Wired, 1572M Buf, 682M Free
Swap: 4096M Total, 1947M Used, 2149M Free, 47% Inuse
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
82778 solr 284 52 0 252G 27G uwait 1 713:51 0.00% java
83076 zookeeper 56 52 0 9876M 1724M uwait 1 11:46 0.00% java