find and send solution urgent

I have encountered the following exception when I run the

following program using runtime.exec() in solaris. If you have

some idea about it, please let me know.

Thanks.

========= Exception Information ======

java.io.IOException: Too many open files

at java.lang.UNIXProcess.forkAndExec(Native Method)

at java.lang.UNIXProcess.forkAndExec(Compiled Code)

at java.lang.UNIXProcess.<init>(Compiled Code)

at java.lang.Runtime.execInternal(Native Method)

at java.lang.Runtime.execInternal(Compiled Code)

at java.lang.Runtime.exec(Compiled Code)

at java.lang.Runtime.exec(Compiled Code)

at java.lang.Runtime.exec(Compiled Code)

at TestPro.run(Compiled Code)

at TestPro.main(TestPro.java:29)

========= My Program ============

I wrote the program in JSP on UNIX platform using tomcat server.

Runtime.getRuntime.exec("sh coc.sh "+filename+" "+fileexec);

it is successful execute and create the executefile of the filename(Example : filename.c)

how to execute the fileexec file.

i can use again Runtime.getRuntime.exec("fileexec");

it is give above errors.

please find out solution and send me immediatly.

mail to : dumpala@rediffmail.com

[1299 byte] By [dumpala] at [2007-9-26 3:13:06]
# 1

It looks like Solaris cannot assign you a new file descriptor since all available descriptors are already in use. We have experienced the same problem under Solaris 7. A possible solution is to adjust the maximum number of open files in the /etc/system configuration file. Search for the following entry (or add it)

* JVM often reports errors about too many open files

set rlim_fd_cur=1024

set rlim_fd_max=4096

I think you will have to reboot the machine after changing the file.

ProhaskaA at 2007-6-29 11:22:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
See Bug Id 4784692
javarules.com at 2007-6-29 11:22:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...