In order to change the hard limit, you need to change the setting in following file
The syntax of the lines is as follows:
[domain] [type] [item] [value]
Use man limits.conf to see detailed explanation.
You can use command 'lsof -p [pid]' to see files opened by process pid.