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

Shawn Heisey commented on SOLR-16887:
-------------------------------------

Built it and ran it on Windows with SOLR_HEAP set to 32m.  This is the contents 
of the console log file:


{code:java}
CompileCommand: exclude 
com/github/benmanes/caffeine/cache/BoundedLocalCache.put bool exclude = true
2023-07-13 03:51:29.932 INFO  (main) [] o.e.j.s.Server jetty-10.0.15; built: 
2023-04-11T17:25:14.480Z; git: 68017dbd00236bb7e187330d7585a059610f661d; jvm 
17.0.6+10
2023-07-13 03:51:34.318 WARN  (main) [] o.e.j.u.DeprecationWarning Using 
@Deprecated Class org.eclipse.jetty.servlet.listener.ELContextCleaner
2023-07-13 03:51:34.443 INFO  (main) [] o.a.s.s.CoreContainerProvider Using 
logger factory org.apache.logging.slf4j.Log4jLoggerFactory
2023-07-13 03:51:34.475 INFO  (main) [] o.a.s.s.CoreContainerProvider  ___      
_       Welcome to Apache Solr™ version 10.0.0-SNAPSHOT 
5b801cb27b5e417211d765d6788984f01d6062b0 [snapshot build, details omitted]
2023-07-13 03:51:34.475 INFO  (main) [] o.a.s.s.CoreContainerProvider / __| 
___| |_ _   Starting in standalone mode on port 8983
2023-07-13 03:51:34.475 INFO  (main) [] o.a.s.s.CoreContainerProvider \__ \/ _ 
\ | '_|  Install dir: C:\Users\sheisey\git\solr\solr\packaging\build\dev
2023-07-13 03:51:34.475 INFO  (main) [] o.a.s.s.CoreContainerProvider 
|___/\___/_|_|    Start time: 2023-07-13T03:51:34.475958600Z
2023-07-13 03:51:34.491 INFO  (main) [] o.a.s.s.CoreContainerProvider If Solr 
crashes, the crash will be logged in this file: 
C:\Users\sheisey\git\solr\solr\packaging\build\dev\server\logs\jvm_crash_7676.log
2023-07-13 03:51:34.509 INFO  (main) [] o.a.s.s.CoreContainerProvider Solr 
started with "-XX:+ExitOnOutOfMemoryError" that will kill Solr on 
anyOutOfMemoryError exception. The cause of the OOME will be logged to the 
console.
Terminating due to java.lang.OutOfMemoryError: Java heap space
{code}
 

 

> The new "Crash On Out Of Memory Error" capability breaks auto-restart on the 
> docker container
> ---------------------------------------------------------------------------------------------
>
>                 Key: SOLR-16887
>                 URL: https://issues.apache.org/jira/browse/SOLR-16887
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: scripts and tools
>    Affects Versions: main (10.0), 9.2.0
>            Reporter: Shawn Heisey
>            Assignee: Shawn Heisey
>            Priority: Major
>         Attachments: SOLR-16887-1.patch, SOLR-16887-2.patch, SOLR-16887.patch
>
>
> In SOLR-8803 I changed OOME handling from a shell script to Java's 
> CrashOnOutOfMemoryError feature.
> It was revealed that this breaks automatic restarting of Solr inside the 
> docker container.
> This issue will change OOME handling from CrashOnOutOfMemoryError to 
> ExitOnOutOfMemoryError.  With that option, the cause of the OOME is logged by 
> Java to the console.  There were two primary motivations behind changing the 
> behavior in SOLR-8803:  1) Cross-platform OOME handling.  2) Always having 
> the cause of any OOME available.  This change will preserve both of those.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to