we should actually fix the script to pass any args that being with -X
straight through to the JVM so we don't need the -a part, i.e.

bin/solr start -XX:+PerfDisableSharedMem vs. bin/solr start -a
"-XX:+PerfDisableSharedMem"


On Tue, Mar 31, 2015 at 6:43 AM, Erick Erickson <[email protected]> wrote:
> Yes and yes.
>
> the -a option for the bin/solr command passes stuff through, e.g.
>
> bin/solr start -c -z localhost:2181 -p 8981 -s
> example/cloud/node1/solr -a "-Xmx4G -Xms4G"
>
> and the like.
>
> It'd be useful I would guess to be able to specify a local file of
> options as well I should think.
>
> Erikc
>
> On Mon, Mar 30, 2015 at 11:49 PM, Shawn Heisey (JIRA) <[email protected]> wrote:
>>
>>     [ 
>> https://issues.apache.org/jira/browse/SOLR-7319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14388131#comment-14388131
>>  ]
>>
>> Shawn Heisey commented on SOLR-7319:
>> ------------------------------------
>>
>> Does the bin/solr script offer a way to send an option directly to the java 
>> commandline?  Should we have the ability to have a local user config script 
>> (similar to /etc/default/solr but contained within the solr download, with 
>> both shell and windows versions) to provide additional config?
>>
>>> Workaround the "Four Month Bug" causing GC pause problems
>>> ---------------------------------------------------------
>>>
>>>                 Key: SOLR-7319
>>>                 URL: https://issues.apache.org/jira/browse/SOLR-7319
>>>             Project: Solr
>>>          Issue Type: Bug
>>>          Components: scripts and tools
>>>    Affects Versions: 5.0
>>>            Reporter: Shawn Heisey
>>>            Assignee: Shawn Heisey
>>>             Fix For: 5.1
>>>
>>>         Attachments: SOLR-7319.patch, SOLR-7319.patch, SOLR-7319.patch
>>>
>>>
>>> A twitter engineer found a bug in the JVM that contributes to GC pause 
>>> problems:
>>> http://www.evanjones.ca/jvm-mmap-pause.html
>>> Problem summary (in case the blog post disappears):  The JVM calculates 
>>> statistics on things like garbage collection and writes them to a file in 
>>> the temp directory using MMAP.  If there is a lot of other MMAP write 
>>> activity, which is precisely how Lucene accomplishes indexing and merging, 
>>> it can result in a GC pause because the mmap write to the temp file is 
>>> delayed.
>>> We should implement the workaround in the solr start scripts (disable 
>>> creation of the mmap statistics tempfile) and document the impact in 
>>> CHANGES.txt.
>>
>>
>>
>> --
>> This message was sent by Atlassian JIRA
>> (v6.3.4#6332)
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to