Saturday, January 1, 2011

Too Many Files Open

In my new Ubutnu VM while was trying to deploy a composite, all of a sudden I started getting the following error with JDK 1.6:


Message send failed: Too many open files
It turned out that the default value(1024) for file descriptor is less and after increasing it to >=4096, the error disappeared.
Use the command ulimit(Bash) to list the descriptor value.
Increase the file descriptor value in
/etc/security/limits.conf

*           soft    nofile          4096
*           hard    nofile          4096

restart the server and you should be good to go