VM nmap count limit

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):

Describe the issue:

Lucene tends to create huge number of nmaps with NMapDirectory configuration. ElasticSearch also suggests to configure vm.max_map_count to a very high value, ~2.5 million. Is there a way to control usage of nmaps usages. Which lucene component is responsible for high usage of nmaps ?

Configuration:

Relevant Logs or Screenshots: