[ 
https://issues.apache.org/jira/browse/SOLR-12874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16651912#comment-16651912
 ] 

Tim Underwood commented on SOLR-12874:
--------------------------------------

According to the #openjdk IRC channel the JEP 158 Documentation is wrong and 
20M is expected to work:
{noformat}
[08:08] <tpunder> Anybody know anything about the JEP 158 (Unified JVM Logging) 
"filesize" argument?  JEP 158 says that value is in KB and uses "filesize=1024" 
as an example for 1MB gc log file sizes.  However on both Linux and OS X 
"filesize=1024" gives me gc log files that are 1024 bytes in length.
[08:11] <shade1> I think JEP grammar is incorrect, and UL accepts the usual 
suffixes (K, M, G), and no-suffix is bytes
[08:13] <Maldivia_> tpunder: java -Xlog:help gives this as an example:  
-Xlog:gc=trace:file=gctrace.txt:uptimemillis,pids:filecount=5,filesize=1m
[08:14] <tpunder> Yes, filesize=1M does work.  Just wondering why the JEP says 
it should be KB.
[08:15] <shade1> it think it was drafted before implementation and tests
[08:15] <shade1> so, mistake (or rather, optimistic typo) in grammar comment
[08:16] <tpunder> I specifically ran into a problem upgrading Apache Solr to 
Java 11 because the launch scripts were setup to use filesize=20000 (they meant 
wanted 20M) based on the JEP documentation.  Manually patching the launch 
script to filesize=20M works.
[08:16] <tpunder> Ok thanks for confirming.
{noformat}

> Java 9+ GC Log files are being rotated every 20KB instead of every 20MB
> -----------------------------------------------------------------------
>
>                 Key: SOLR-12874
>                 URL: https://issues.apache.org/jira/browse/SOLR-12874
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 7.5
>            Reporter: Tim Underwood
>            Assignee: Uwe Schindler
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The Java 9+ GC logging options in bin/solr and bin/solr.cmd specify a log 
> rotation file size of 20000 which according to JEP 158 
> ([https://openjdk.java.net/jeps/158]) should be the "file size in kb" however 
> when running Solr on Java 11 I'm seeing GC logs rotated every 20KB.
> Changing "filesize=20000" to "filesize=20M" fixes the problem for me under 
> Linux.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to