I have a java app which runs just fine (on Ubuntu 10.04) for few hours until it hits \"java.net.SocketException: Too many open files\". The code for Sender.java can be found
(RESOLVED)
I recently have the same error because the var/log on DataBase Server is Full.
#df -h
S.ficheros Size Used Avail Use% Montado en
/dev/cciss/c0d0p3 126G 126G 0G 100% /var
#echo "">/var/log/postgresql/postgresql.log
Now, the error is gone!!!
important: see what to log in postgresql.log, review your postgresql.conf
bye
@_jpgo