I am currently trying to run Opensearch component in Ubutu which is running as an application on Windows 10. However, I am getting below warnings while running the Opensearch.
[2022-09-12T16:15:28,192][WARN ][o.o.b.BootstrapChecks ] [node1] max file descriptors [4096] for opensearch process is too low, increase to at least [65535]
[2022-09-12T16:15:28,193][WARN ][o.o.b.BootstrapChecks ] [node1] max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
I have tried to increase the descriptors limit by modifying the file /etc/security/limits.conf file. However, after restarting the Ubutu session on Windows 10, I can see the the max file descriptor count is still 4096. I have used below command to check the max file descriptors count
curl -XGET "localhost:9200/_nodes/stats/process?filter_path=**.max_file_descriptors"
As per the details mentioned in link https://www.elastic.co/guide/en/elasticsearch/reference/current/setting-system-settings.html#systemd, it is required to enable the line
# session required pam_limits.so
in /etc/pam.d/su to enable the limits.conf file. I found that this line is already enabled, however, it is still not able to change it to 65535.
Requesting you to help me on this as I am stuck in the local environment setup.