📎 AI Summary:
The thread discusses how to limit the maximum RAM usage for memory-mapped files in Windows, specifically targeting Elasticsearch to prevent large garbage collection pauses caused by memory paging. The original poster questions whether Windows or individual processes can be constrained in this way, noting that Elasticsearch's JVM heap size settings do not control memory-mapped file usage. A responder suggests consulting Elasticsearch documentation or support, implying that memory-mapped file sizes are managed internally by the application itself. Overall, the conversation indicates that restricting memory-mapped files may require application-specific adjustments rather than system-wide configurations.

darthVader007

New Member
Member details
Joined
Mar 1, 2021
Messages
2
Thread Author #1
Is there any way to limit the maximum RAM that memory maps can use in Windows (for the whole os or a particular process (Elasticsearch)) so that we can keep a java application from being paged out due to lack of memory causing large garbage collection pauses?
 

darthVader007

New Member
Member details
Joined
Mar 1, 2021
Messages
2
Thread Author #3
The memory mapped files won't come under the heap. So, setting max heap for Elasticsearch doesn't help in restricting the memory mapped files memory.
 

Solution

Neemobeer

Windows Forum Team
Staff member
Member details
Joined
Jul 4, 2015
Messages
8,995
Pretty sure that size is managed by the program itself, so you may need to consult documentation or open a support ticket.