Problems with file descriptors!! Please HELP!

Discussion in 'Site & Server Administration' started by aqnshosting, Apr 11, 2008.

  1. #1
    HEy,
    I talked with my host. I keep getting internal server errors so the DC gave this reply.

    yet it seems the major problem is that there isn't enough open file descriptors. So, that is what the errors are from. Something is opening files/sockets and not closing them, so the system runs out of available ones to give out... so this error happens.

    I rebooted the machine to get everything reset.


    It happened again right now, I rebooted and everything was fine.

    Does anyone know whats the problem?

    Thanks
     
    aqnshosting, Apr 11, 2008 IP
  2. gate2vn

    gate2vn Peon

    Messages:
    809
    Likes Received:
    33
    Best Answers:
    1
    Trophy Points:
    0
    #2
    No one can help, if you don't quote the exact error message. Have you tried to check in server logs?
     
    gate2vn, Apr 12, 2008 IP
  3. boltok

    boltok Active Member

    Messages:
    257
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    78
    #3
    You're probably getting more hits than your server is set to handle.

    Check what the current file descriptor limit is with "ulimit -n". If it is something small, like 1024, you can increase this by adding the following to your /etc/security/limits.conf file:

    *               soft    nofile            16384
    *               hard    nofile            63536
    Code (markup):
    (server reboot required for these to take effect)

    Keep increasing the "soft" limit if you still run into problems.
     
    boltok, Apr 13, 2008 IP
  4. aqnshosting

    aqnshosting Banned

    Messages:
    491
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hey,
    I did this but this change anything.
    It shows the limit is still :

    4096

    Thanks
     
    aqnshosting, Apr 26, 2008 IP
  5. boltok

    boltok Active Member

    Messages:
    257
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    78
    #5
    aqnshosting, did you reboot after changing that file? If yes, which distro are you using?
     
    boltok, Apr 27, 2008 IP