uday garikapati wrote:
Hi,
I think you are running ur SM under Linux environment. The default
configurations are set in ur linux to 1024, u can see this value using
'ulimit -n" in the shell.
If you increase this value, you can normally run your configuration as
above.
I know that the limit of the number of file descriptors a process may
have can be configurated on my linux system.
("ulimit -n" command or "/etc/security/limits.conf" configuration file)
The problem is that even if I increase this configuration value, I will
get this IOException error "Too many open files".
The error will occur after 5 or 10 minutes instead of 1 or 2 minutes !!!
Thanks anyway for your help.
Hélène.
Thanks,
Uday Garikapati
On 10/6/06, Hélène JOANIN <[EMAIL PROTECTED]> wrote:
Hi,
I did an example of using the component servicemix-http and the LW
component XSLT.
This example causes a "java.io.IOException: Too many open files" error
when I execute it quite often to exceed the limit of the number of file
descriptors a process may have on my system.
Did I miss something or is there a bug in a servicemix component which
forget to close a stream or a socket ?
You can find in attachment a very simple example to reproduce the
problem.
To run this example:
- the SERVICEMIX_HOME variable must be setting,
- then under the *sm-http-xslt *directory do:
$ ant setup
$ servicemix ./servicemix.xml
$ ant run
"ant run" will execute 1024 times the client. Just do it quite often to
exceed the limit of the number of file descriptors a process may have on
your system.
Note that I can't reproduce this problem with the example "bridge"
delivery with servicemix.
Regards.
Hélène.