Member-only story
The only way to do this is by changing etc/systemd/system.conf. Changing /systemd/user.conf will cause error as when run elasticsearch, they do not allow to run as root user.
sudo vim /etc/systemd/system.conf
Add the below line
DefaultLimitNOFILE=65535
That’s the trick.
Hope it helps
~~~