我更新以下值:
sysctl kern.maxfiles kern.maxfiles:
524288
sysctl kern.maxfilesperproc kern.maxfilesperproc:
64000
ulimit -n
64000
launchctl limit maxfiles
maxfiles 64000 524288
但是我的弹性搜索节点信息仍然显示10240
curl -X GET "localhost:9200/_nodes/stats/process?filter_path=**.max_file_descriptors"
{"nodes":{"B-vbs3ToSaOkRDS_f-0WMQ":{"process":{"max_file_descriptors":10240}}}}