I set the heap to 8g but this doesn't have any effect and the problem is still
the same.
~# ps -eaf | grep solr
solr 3176 1 0 08:50 ? 00:00:00 /lib/systemd/systemd --user
solr 3177 3176 0 08:50 ? 00:00:00 (sd-pam)
solr 3238 1 0 08:50 ? 00:00:06 java -server -Xms8g -Xmx8g
-XX:NewRatio=3 -XX:SurvivorRatio=4 -XX:TargetSurvivorRatio=90
-XX:MaxTenuringThreshold=8 -XX:ConcGCThreads=4 -XX:ParallelGCThreads=4
-XX:+CMSScavengeBeforeRemark -XX:PretenureSizeThreshold=64m
-XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=50
-XX:CMSMaxAbortablePrecleanTime=6000 -XX:+CMSParallelRemarkEnabled
-XX:+ParallelRefProcEnabled -verbose:gc
-Xlog:gc*:file=/var/solr/logs/solr_gc.log:time,uptime:filecount=9,filesize=20M
-Dsolr.log.dir=/var/solr/logs -Djetty.port=8983 -DSTOP.PORT=7983
-DSTOP.KEY=solrrocks -Duser.timezone=UTC -Djetty.home=/opt/solr/server
-Dsolr.solr.home=/var/solr/data -Dsolr.data.home=/var/solr/data
-Dsolr.install.dir=/opt/solr
-Dsolr.default.confdir=/opt/solr/server/solr/configsets/_default/conf
-Dlog4j.configurationFile=file:/var/solr/log4j.properties -Xss256k
-Dsolr.disable.configEdit=true -Xss256k -Dsolr.jetty.https.port=8983
-Dsolr.log.muteconsole -XX:OnOutOfMemoryError=/opt/solr/bin/oom_solr.sh 8983
/var/solr/logs -jar start.jar --module=http
~# free
total used free shared buff/cache
available
Mem: 16426388 627936 15034128 796 764324
15488956
Swap: 969960 0 969960
~#
Torsten
-----Ursprüngliche Nachricht-----
Von: Jörn Franke <[email protected]>
Gesendet: Donnerstag, 5. März 2020 17:31
An: [email protected]
Betreff: Re: Problem with Solr 7.7.2 after OOM
Just keep in mind that the total memory should be much more than the heap to
leverage Solr file caches. If you have 8 GB heap probably at least 16 gb total
memory make sense to be available on the machine .
> Am 05.03.2020 um 16:58 schrieb Walter Underwood
> <[email protected]<mailto:[email protected]>>:
>
>
>>
>> On Mar 5, 2020, at 4:29 AM, Bunde Torsten
>> <[email protected]<mailto:[email protected]>> wrote:
>>
>> -Xms512m -Xmx512m
>
> Your heap is too small. Set this to -Xms8g -Xmx8g
>
> In solr.in.sh, that looks like this:
>
> SOLR_HEAP=8g
>
> wunder
> Walter Underwood
> [email protected]<mailto:[email protected]>
> http://observer.wunderwood.org/ (my blog)
>