How To Adjust Search Engine Service Memory Allocation
REMEMBER TO ALWAYS
Set the minimum and maximum to the same value
Only ever set it to half of the available system memory
When you are running OpenSearch as a service, and you want to change the java heap size, editing the jvm.options file in the opensearch\config\jvm.options file has no effect.
The way to change it when running as a service to run the following from an administrative command prompt from the bin directory of the OpenSearch install.opensearch-service-mgr.exe //ES//shinydocs-search-engine
(or if it is a default install, you can run "C:\Program Files\Shinydocs Professional\SearchEngine\bin\opensearch-service-mgr.exe" //ES//shinydocs-search-engine
This will pop up a window, and then you can edit the options near the bottom of the Java tab.

Memory set to 4 GB (4096 MB)

Memory set to 8 GB (8192 MB)