Max No of Open File Descriptors in a process

I have set the maximum no of file descriptors open in a process to the value 8192 using the following lines

set rlim_fd_max=8192
set rlim_fd_cur=8192

in the /etc/system file.

I rebooted the machine and the command ulimit -n / -Hn both display the limits as 8192. However when I run my application , and see its limits using the plimit -k [pid] , i find the limit as 1024.

Anybody have any idea why this occurs

I would guess that the apoplication lowered its own limits for some reason. Any process can lower its own limits.

Yes. I am using a library ACE and it is that library which lowers the limits. I am trying to make the library not to do it.

Thanks.