Want to increase the file descriptors

Hi,

I am trying the increase the max number for file descriptor allowed in Solaris.

I changed the ulimit soft value to hard limit value (65536) as a root.Even the ulimit -a shows the change value for the soft limit.

When I run my test program to find the value of sysconf(_SC_OPEN_MAX) it shows the changed value.But when I try to open more than 253 files it fails.How do I increase this, also when I change the ulimit -n 65536 why the max number for files open is not increased.

Looking forward for help.

Thanks in advance

-A

[569 byte] By [ujara] at [2007-11-27 6:55:07]
# 1
32 bit processes that use STDIO are limited to 256 open files. Are you using STDIO?I think there are supposed to be some new ways to get around it, but it's difficult due to binary compatibility with older code.-- Darren
Darren_Dunhama at 2007-7-12 18:30:27 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2
Hi,Thanks for your reply and comments.Yes I am using STDIO.Regards-A
ujara at 2007-7-12 18:30:27 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3
The simplest workaround is to compile as a 64bit executable.-m64 in gcc. I don't remember offhand what the option is for Sun CC.The difficulty is that any non system libraries your using will also need to be recompiled to be 64 bit..
robert.cohena at 2007-7-12 18:30:27 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...