[
https://issues.apache.org/jira/browse/SOLR-8803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17742116#comment-17742116
]
Shawn Heisey commented on SOLR-8803:
------------------------------------
It has been my experience that OOME is not an ephemeral problem. Unless
something unusual happened that won't be repeated, it recurs until the resource
issue is addressed.
I found some very good news. With ExitOnOutOfMemoryError is on the
commandline, the OOME cause is logged in the console log:
{code:java}
Terminating due to java.lang.OutOfMemoryError: Java heap space{code}
I will have a new patch uploaded very soon.
> Generalize OOME handling to work for any OS
> -------------------------------------------
>
> Key: SOLR-8803
> URL: https://issues.apache.org/jira/browse/SOLR-8803
> Project: Solr
> Issue Type: Improvement
> Affects Versions: 9.0
> Reporter: Binoy Dalal
> Assignee: Shawn Heisey
> Priority: Minor
> Labels: OOM, oom
> Fix For: main (10.0), 9.2
>
> Attachments: SOLR-8803-1.patch, SOLR-8803-10.patch,
> SOLR-8803-2.patch, SOLR-8803-3.patch, SOLR-8803-4.patch, SOLR-8803-5.patch,
> SOLR-8803-6.patch, SOLR-8803-7.patch, SOLR-8803-8.patch, SOLR-8803-9.patch,
> SOLR-8803.patch, image-2023-07-11-11-38-58-247.png, oom_win.cmd,
> solr-8803-build-transcript.txt
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Solr on windows does not currently have a script to kill the process on OOM
> errors.
> The idea is to write a batch script that works like the OOM kill script for
> Linux and kills the solr process on OOM errors while creating an OOM log file
> like the one on Linux systems.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]