Hi,

I'm sorry the image attachments didn't get all the way through. I've
uploaded them to an external service.

To summarize, AWS and Solr do not agree on memory usage. It seems to me
that Solr is closed to reporting the values I'd expect than AWS.

Since the index is about 8GB in size, I'd expect Solr to use all memory
available (up to 8GB) since Solr has been configured with MMapDirectory.
The Solr index is 8GB.

I'm curious where Solr gets the metric from though, and how I can
calculate/get that number myself from the container.

*Solr w/8GB instance memory*
Solr: https://i.postimg.cc/6pjYX4c5/image.png
AWS : https://i.postimg.cc/d0g67Mgb/image.png

*Solr w/16GB instance memory*
Solr : https://i.postimg.cc/Gp68PbLj/image.png
AWS : https://i.postimg.cc/nLqZ5xK2/image.png

fre. 9. feb. 2024 kl. 12:55 skrev Jan Høydahl <jan....@cominvent.com>:

> Hi,
>
> You may want to upload those screenshots to some external service as they
> did not display on the list.
>
> Solr uses Java APIs to ask for system memory, and when running in a
> container which is resource limited, it will show the max limit allocated
> to that container.
>
> Jan
>
> 9. feb. 2024 kl. 12:02 skrev Stian Brattland <st...@octetnest.no>:
>
> Hello
>
> I'm running Solr as an AWS Fargate task. The Fargate task has 8GB memory
> to its availability.
>
> The Solr process has Xms=512 and Xmx=2048. The remaining memory should go
> to MMapDirectory for index caching.
>
> Solr reports a memory usage of nearly 100%. This, I believe, is good as
> that indicates full memory utilization by MMapDirectory.
>
> However, AWS Fargate reports that only ~22% of the task's available memory
> is used. This percentage "nearly" aligns with the Xmx set for the
> container, but not the full memory expected usage.
>
> I'm curious why Solr and AWS disagrees on the memory usage. It seems that
> AWS only reports the direct memory usage of the container process (being
> Solr), but I'm not sure.
>
> Does anyone know which system metric Solr takes the *Physical Memory* from,
> as shown in the top bar of the below picture?
>
> Kind regards,
> Stian Brattland
>
> *Solr :*
> [image: image.png]
> *AWS : *
> [image: image.png]
>
>
>

Reply via email to