permanently change limit value needs following steps:
sudo nano/etc/pam.d/su
add or uncomment
session required pam_limits.so
sudo nano /etc/security/limits.conf
add
* soft nofile 8000
* hard nofile 65000