Hello guys,

This isn't going to work with Java 16+ since Nashorn has been removed.

What is the real need of Solr on Nashorn?

Best regard,
Alex

Le mer. 9 févr. 2022 à 11:16, Bernd Fehling
<[email protected]> a écrit :
>
> The commandline tool "jjs --help" reports:
> "--no-deprecation-warning (Do not show nashorn deprecation warning.)
>          param: [true|false]   default: false"
>
> So I guess that there should be something like :
> "--no-deprecation-warning=true"
>
> Or in your case:
> -Dnashorn.args='--no-deprecation-warning=true'
>
> But just a guess.
>
> Regards Bernd
>
>
> Am 09.02.22 um 10:34 schrieb Scott Q.:
> > Does anyone know how to get rid of the warning message: Warning:
> > Nashorn engine is planned to be removed from a future JDK release
> >
> > it accumulates quickly in my solr-8983-console.log file - I usually
> > restart solr and remove that file once it reaches 2Gb in size.
> >
> > I tried adding -Dnashorn.args='--no-deprecation-warning' to SOLR_OPTS
> > and I see it on the command line of the running process, but it
> > doesn't stop the warning messages. My log level is set to WARN.
> >
> > /usr/local/openjdk11/bin/java -server -Xms16g -Xmx16g -XX:+UseG1GC
> > -XX:+PerfDisableSharedMem -XX:+ParallelRefProcEnabled
> > -XX:MaxGCPauseMillis=250 -XX:+UseLargePages -XX:+AlwaysPreTouch
> > -XX:+ExplicitGCInvokesConcurrent
> > -Xlog:gc*:file=/var/log/solr/solr_gc.log:time,uptime:filecount=9,filesize=20M
> > -Dsolr.jetty.inetaccess.includes= -Dsolr.jetty.inetaccess.excludes=
> > -DzkClientTimeout=15000
> > -DzkHost=192.168.1.4:2181,192.168.1.9:2181,192.168.1.10:2181,192.168.1.11:2181
> > -Dsolr.log.level=WARN -Dsolr.log.dir=/var/log/solr -Djetty.port=8983
> > -DSTOP.PORT=7983 -DSTOP.KEY=solrrocks -Duser.timezone=UTC
> > -XX:-OmitStackTraceInFastThrow -Djetty.home=/usr/local/solr/server
> > -Dsolr.solr.home=/var/db/solr -Dsolr.data [1].home=
> > -Dsolr.install.dir=/usr/local/solr
> > -Dsolr.default.confdir=/usr/local/solr/server/solr/configsets/_default/conf
> > -Djetty.host [2]=0.0.0.0 -Dlog4j2.formatMsgNoLookups=true
> > -Dnashorn.args='--no-deprecation-warning' -Xss256k
> > -Dsolr.jetty.https.port=8983 -Dsolr.log.muteconsole
> > -XX:OnOutOfMemoryError=/usr/local/solr/bin/oom_solr.sh [3] 8983
> > /var/log/solr -jar start.jar --module=http
> >
> > Thanks!
> >
> > Links:
> > ------
> > [1] http://Dsolr.data
> > [2] http://Djetty.host
> > [3] http://solr.sh
> >
> >

Reply via email to