change 'Soft Resource Limit file descriptor' value

Hi,How do I change 'Soft Resource Limit file descriptor; value in Solaris 10Is there any conditions to change this?Ashraf.
[151 byte] By [ashrafkt] at [2007-11-26 10:26:08]
# 1
In a shell you would use ulimit (or, in the case of csh, just "limit"), tryulimit -ato display a list of limits.If you are writing a c-program, you can always change/get this limit from the code by calling setrlimit() or getrlimit(). 7/M.
mAbrante at 2007-7-7 2:29:27 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2
Hi AllEarlier I was able to change this value by the commandulimit -n <value> for eg.ulimit -n 8192After reboot, the value is now 4096. I am unable to increase value to 8096, but I can decrease the value.What to do to increase the value? Please
ashrafkt at 2007-7-7 2:29:27 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3

There are 2 values. The default and the maximum.

It starts at the default and can be increased up the maximum.

If you want change the value persistently and machine wide, you can put a config option

in /etc/system. Something like

set rlim_fd_cur = 8129

set rlim_fd_max = 8129

If you want to do it for your account only then, just put those lines into your profile.

But you'll still be only able to increase it up to the max.

The max can only be increased by root or in /etc/system.

robertcohen at 2007-7-7 2:29:27 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 4

In /etc/services it is 8196 only

the user root get this value 8196

where as if logged in as another user, say smradm, it is not possible to inrease the value.

If I use the command ulimit -n 8196 or

ulimit -Sn 8196, the result is

ulimit : bad umilit.

I would like to mention that this user, smradm has a project in /etc/project. Will it anyway affect this?

ashrafkt at 2007-7-7 2:29:27 > top of Java-index,Solaris Operating System,Solaris 10 Features...