Mike,

No, it's not docker. it is just one solr node(service) which connects to
external zookeeper, the below is a JVM setting and memory usage.

There are 25  collections which have a few 2000 documents totally. I am
wondering why solr uses so much memory.

-XX:+AlwaysPreTouch-XX:+ExplicitGCInvokesConcurrent
-XX:+ParallelRefProcEnabled-XX:+PerfDisableSharedMem
-XX:+PrintGCApplicationStoppedTime-XX:+PrintGCDateStamps-XX:+PrintGCDetails
-XX:+PrintGCTimeStamps-XX:+PrintHeapAtGC-XX:+PrintTenuringDistribution
-XX:+UseG1GC-XX:+UseGCLogFileRotation-XX:+UseLargePages
-XX:-OmitStackTraceInFastThrow-XX:GCLogFileSize=20M-XX:MaxGCPauseMillis=250
-XX:NumberOfGCLogFiles=9-XX:OnOutOfMemoryError=/mnt/ume/software/solr-8.7.0-3/bin/oom_solr.sh
8983 /mnt/ume/logs/solr2-Xloggc:/mnt/ume/logs/solr2/solr_gc.log-Xms6g-Xmx10g
-Xss256k-verbose:gc
[image: image.png]

On Thu, Jan 28, 2021 at 4:40 AM Mike Drob <md...@mdrob.com> wrote:

> Are you running these in docker containers?
>
> Also, I’m assuming this is a typo but just in case the setting is Xmx :)
>
> Can you share the OOM stack trace? It’s not always running out of memory,
> sometimes Java throws OOM for file handles or threads.
>
> Mike
>
> On Wed, Jan 27, 2021 at 10:00 PM Luke <lucenew...@gmail.com> wrote:
>
> > Shawn,
> >
> > it's killed by OOME exception. The problem is that I just created empty
> > collections and the Solr JVM keeps growing and never goes down. there is
> no
> > data at all. at the beginning, I set Xxm=6G, then 10G, now 15G, Solr 8.7
> > always use all of them and it will be killed by oom.sh once jvm usage
> > reachs 100%.
> >
> > I have another solr 8.6.2 cloud(3 nodes) in separated environment , which
> > have over 100 collections, the Xxm = 6G , jvm is always 4-5G.
> >
> >
> >
> > On Thu, Jan 28, 2021 at 2:56 AM Shawn Heisey <apa...@elyograg.org>
> wrote:
> >
> > > On 1/27/2021 5:08 PM, Luke Oak wrote:
> > > > I just created a few collections and no data, memory keeps growing
> but
> > > never go down, until I got OOM and solr is killed
> > > >
> > > > Any reason?
> > >
> > > Was Solr killed by the operating system's oom killer or did the death
> > > start with a Java OutOfMemoryError exception?
> > >
> > > If it was the OS, then the entire system doesn't have enough memory for
> > > the demands that are made on it.  The problem might be Solr, or it
> might
> > > be something else.  You will need to either reduce the amount of memory
> > > used or increase the memory in the system.
> > >
> > > If it was a Java OOME exception that led to Solr being killed, then
> some
> > > resource (could be heap memory, but isn't always) will be too small and
> > > will need to be increased.  To figure out what resource, you need to
> see
> > > the exception text.  Such exceptions are not always recorded -- it may
> > > occur in a section of code that has no logging.
> > >
> > > Thanks,
> > > Shawn
> > >
> >
>

Reply via email to