Thanks for the recommendation. Are you running this on Intel or ARM64? We’ve 
mostly moved to ARM64. —wunder

> On Dec 12, 2023, at 9:55 AM, Shawn Heisey <apa...@elyograg.org.INVALID> wrote:
> 
> Java 11 is a good solid choice.  Java 17 seems to perform a little better 
> than 11 on Solr 9.x, but I haven't actually measured it.  Java 8, 11, 17, and 
> 21 are the current LTS releases.
> 
> https://en.wikipedia.org/wiki/Java_version_history
> 
> I personally wouldn't trust Solr 8.x with Java 17, as that's a jump of 9 
> major Java versions ... but others have done it and I haven't seen reports of 
> problems.  I use Java 17 with Solr 9.x on Ubuntu.
> 
> With Java 11 or later, I think it would be a good idea to switch garbage 
> collection to ZGC.  I have this in my /etc/default/solr.in.sh:
> 
> GC_TUNE=" \
>  -XX:+UnlockExperimentalVMOptions \
>  -XX:+UseZGC \
>  -XX:+ParallelRefProcEnabled \
>  -XX:+ExplicitGCInvokesConcurrent \
>  -XX:+AlwaysPreTouch \
>  -XX:+UseNUMA \
> "

Reply via email to