Change the following lines /var/sysgen/stune :
rlimit_nofile_cur= rlimit_nofile_max=
Then on login, run ulimit -n 2048 (or whatever you want the limit to be, upto the hard limit).
Populate /var/sysgen/stune with the following and then reboot.
rlimit_rss_max = 1073741824 ll rlimit_rss_cur = 1073741824 ll ipforwarding = 0 restricted_chown = 1 semmns = 2048 semmni = 100 semmsl = 25 rlimit_nofile_cur = 4096 rlimit_nofile_max = 8192