I once had a problem where calling unix system calls via the
Java Runtime class. There was a bug in the JDK that i was
using, and Sun's work around (i forget now where it is
posted) but it was to do something like the following:
Runtime rt = Runtime.getRuntime();
Process p = rt.exec("/usr/local/bin/some_shell_script.sh");
int exit_value = p.waitFor();
p.getInputStream().close();
p.getErrorStream().close();
p.getOutputStream().close();
and you could of course read from the streams before you
closed them, but..the fact was you had to close all 3, in
order for the work-around to be effective.
Regards,
---- Original message ----
>Date: Fri, 12 Apr 2002 21:03:07 +0200
>From: Christophe Reynaud <[EMAIL PROTECTED]>
>Subject: Too many open files
>To: Tomcat Users List <[EMAIL PROTECTED]>
>
>Hello,
>
>We use tomcat 3.3.1 on Linux RH 7.2 & IBMJava2-SDK-1.3-13.0
>
>A few hours after the server is restarted, tomcat is
unuseable and we
>have in the logs, such messages :
>
>writeVersion()
>/var/spool/tomcat3/o2t/ROOT/jsp/common/error.verjava.io.FileN
otFoundException:
>
>/var/spool/tomcat3/o2t/ROOT/jsp/common/error.ver (Too many
open files)
>
>An idea about the problem ?
>
>Thanks.
>
>Christophe Reynaud
>
>
>--
>To unsubscribe: <mailto:tomcat-user-
[EMAIL PROTECTED]>
>For additional commands: <mailto:tomcat-user-
[EMAIL PROTECTED]>
>Troubles with the list: <mailto:tomcat-user-
[EMAIL PROTECTED]>
>
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>