If you have changed limits.conf, the “nexus” in the examples is the OS user id. If you are running the application as some other user, you will need to make sure that user id matches what you have in limits.conf.
Also, note that if you are using systemd, the changes in limits.conf will not work. You will need to set the open file limit in the systemd config.