I think -XX:OnOutOfMemoryError="kill -9 %p" will automatically detects the pid. Do we need to pass it explicitly or %p would be sufficient.
Regards, Gagan On Wed, May 15, 2013 at 11:37 PM, Aaron McCurry (JIRA) <[email protected]> wrote: > > [ > https://issues.apache.org/jira/browse/BLUR-85?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13658614#comment-13658614 > ] > > Aaron McCurry commented on BLUR-85: > ----------------------------------- > > Yep, that sounds right. We should also add to the BLUR_SHARD_JVM_OPTIONS. > We should issue a kill -9 on the process and you can get the pid from the > ./pids directory. Take a look at the startup/shutdown scripts to get the > exact file format. I think it's "shard-0.pid" for the first shard process on > the computer and "controller-0.pid" for the first controller and so on for > the 2nd and third processes (if any). Thanks! > > Aaron > >> Kill JVM on OutOfMemory Error >> ----------------------------- >> >> Key: BLUR-85 >> URL: https://issues.apache.org/jira/browse/BLUR-85 >> Project: Apache Blur >> Issue Type: Improvement >> Affects Versions: 0.1.5 >> Reporter: Aaron McCurry >> Fix For: 0.1.5 >> >> >> Most of the time if a Blur process runs out of memory it will likely hang >> and never recover. So on an OOM error we should use the >> -XX:OnOutOfMemoryError="<cmd args>; <cmd args>" JVM option to kill the >> process. > > -- > This message is automatically generated by JIRA. > If you think it was sent incorrectly, please contact your JIRA administrators > For more information on JIRA, see: http://www.atlassian.com/software/jira
