Hello I created an issue for this https://issues.apache.org/jira/browse/SOLR-15410 and I've created a PR. Details are on the issue.
Colvin On Mon, 15 Mar 2021 at 23:41, Elizaveta Golova <[email protected]> wrote: > Hi, > > Yes Chris, Open J9 have an issue on their backlog for this: > https://github.com/eclipse/openj9/issues/8195 > > This is related to the GC_LOG_OPTS in solr.cmd. > Unfortunately, this can't be set in solr.in.cmd due to: > "For Java 9 or higher: GC_LOG_OPTS is currently not supported. If you set > it, the startup script will exit with failure." > > As the -verbose:gc option works, we've found that having the OpenJ9 java > set the pre Java 9 GC_LOG_OPTS in solr.cmd appears to work, and doesn't > change how HotSpot options are set. > > if !JAVA_MAJOR_VERSION! GEQ 9 IF "%JAVA_VENDOR%" IF NOT "IBM J9" ( > REM instead of: if !JAVA_MAJOR_VERSION! GEQ 9 IF "%JAVA_VENDOR%"( > IF NOT "%GC_LOG_OPTS%"=="" ( > echo ERROR: On Java 9 you cannot set GC_LOG_OPTS, only default GC > logging is available. Exiting > GOTO :eof > ) > set > GC_LOG_OPTS="-Xlog:gc*:file=\"!SOLR_LOGS_DIR!\solr_gc.log\":time,uptime:filecount=9,filesize=20M" > ) else ( > IF "%GC_LOG_OPTS%"=="" ( > rem Set defaults for Java 8 > set GC_LOG_OPTS=-verbose:gc ^ > -XX:+PrintHeapAtGC ^ > -XX:+PrintGCDetails ^ > -XX:+PrintGCDateStamps ^ > -XX:+PrintGCTimeStamps ^ > -XX:+PrintTenuringDistribution ^ > -XX:+PrintGCApplicationStoppedTime > ) > if "%JAVA_VENDOR%" == "IBM J9" ( > set GC_LOG_OPTS=!GC_LOG_OPTS! > "-Xverbosegclog:!SOLR_LOGS_DIR!\solr_gc.log" -XX:+UseGCLogFileRotation > -XX:NumberOfGCLogFiles=9 -XX:GCLogFileSize=20M > ) else ( > set GC_LOG_OPTS=!GC_LOG_OPTS! "-Xloggc:!SOLR_LOGS_DIR!\solr_gc.log" > -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=9 -XX:GCLogFileSize=20M > ) > ) > > > Any chance that something like this can be put in a patch/future release? > > Lisa > > > > ----- Original message ----- > From: Chris Hostetter <[email protected]> > To: [email protected] > Cc: > Subject: [EXTERNAL] Re: Unrecognized command line option when starting > Solr 8.7 with Java 11 Open J9 > Date: Mon, Mar 15, 2021 7:54 PM > > I know nothing about Open J9, but some quick googling suggests that OpenJ9 > changed their -Xlog parsing rules at some point -- the current docs don't > mention anything about some of the options you are using (other then > 'file') > > https://www.eclipse.org/openj9/docs/xlog/ > https://www.eclipse.org/openj9/docs/xxlegacyxlogoption/ > > > > > > : Date: Mon, 15 Mar 2021 13:38:45 -0500 > : From: dmitri maziuk <[email protected]> > : Reply-To: [email protected] > : To: [email protected] > : Subject: Re: Unrecognized command line option when starting Solr 8.7 > with Java > : 11 Open J9 > : > : On 2021-03-15 12:32 PM, Subhajit Das wrote: > : > : > JVMJ9VM007W Command-line option unrecognised: > : > > -Xlog:gc*:file="C:\solr\server\logs\solr_gc.log":time,uptime:filecount=9,filesize=20M > : > : Windows to unix path translation's weird. Things like > : '\\c\\solr\\server\\logs\\solr_gc.log' work in some cases. > : > : Dima > : > : > > -Hoss > > https://urldefense.proofpoint.com/v2/url?u=http-3A__www.lucidworks.com_&d=DwIBAg&c=jf_iaSHvJObTbx-siA1ZOg&r=hYWjY91INT8BxCM7Yo3LAY4kHcOGUOO3miRla3QTVdo&m=IH4OUN74q1a6xeNFAz2UNGMRTt5UOZWmEuKTpWtOSLU&s=9D1evYvViDo924rRr4WPjFEFi5lZmfDF84MxZ-7Iuzk&e= > > Unless stated otherwise above: > IBM United Kingdom Limited - Registered in England and Wales with number > 741598. > Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU > >
