java.net.SocketException: Too many open files

后端 未结 5 1494
轻奢々
轻奢々 2020-11-29 07:51

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

5条回答
  •  余生分开走
    2020-11-29 07:57

    (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

提交回复
热议问题