Mar
Thu
18
cfz
  • Hi,

    Lately when I try to upload files, I get so many time outs. I logged in and did "netstat" and got huge number of connections with status "TIME_WAIT". What's wrong here? Is is because of memory?

    Here is top stats:


    5:42pm up 59 days, 8:20, 1 user, load average: 0.23, 0.21, 0.18
    89 processes: 88 sleeping, 1 running, 0 zombie, 0 stopped
    CPU0 states: 4.2% user, 0.4% system, 0.0% nice, 94.3% idle
    CPU1 states: 1.1% user, 0.3% system, 0.0% nice, 98.0% idle
    CPU2 states: 2.1% user, 0.0% system, 0.0% nice, 97.3% idle
    CPU3 states: 0.4% user, 0.1% system, 0.0% nice, 99.0% idle
    Mem: 1031056K av, 1008796K used, 22260K free, 0K shrd, 36388K buff
    Swap: 1052216K av, 5236K used, 1046980K free 838764K cached



    I've been using the server for more than 14 months now.
    Specs: Dual Xeons, 1GB RAM, Ultr160 HD, RH7.3

    Please help.
    Thanks.
    R.L. :)


  • 15 min after rebooting, free Mem is good, number of TIME_WAIT is too hight, 189 to be exact! Can somebody explain this to me. Thanks.

    Mon Jan 19 13:13:55 EST 2004


    1:13pm up 15 min, 1 user, load average: 0.28, 0.16, 0.10
    83 processes: 80 sleeping, 3 running, 0 zombie, 0 stopped
    CPU0 states: 3.0% user, 2.0% system, 0.0% nice, 93.0% idle
    CPU1 states: 0.0% user, 0.0% system, 0.0% nice, 100.0% idle
    CPU2 states: 9.0% user, 3.0% system, 0.0% nice, 86.0% idle
    CPU3 states: 8.0% user, 0.1% system, 0.0% nice, 90.0% idle
    Mem: 1031056K av, 376968K used, 654088K free, 0K shrd, 8452K buff
    Swap: 1052216K av, 0K used, 1052216K free 273712K cached



    Http processes currently running = 22
    Mysql processes currently running = 17

    Logged in right now:
    1:13pm up 15 min, 0 user, load average: 0.28, 0.16, 0.10
    USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT


    Netstat information summary
    1 CLOSE_WAIT
    2 CLOSING
    14 ESTABLISHED
    2 FIN_WAIT1
    4 FIN_WAIT2
    13 LISTEN
    5 SYN_RECV
    1 SYN_SENT
    189 TIME_WAIT


  • Hi Raz,
    I usually upload files using regular ftp (smartftp & FlashFXP). The file is quite small php file (~5-10K) only.

    In my machine netstat would give the following:

    TCP oem-pa3ce9izhlm:3643 domain.com:ftp ESTABLISHED
    TCP oem-pa3ce9izhlm:3645 domain.com:ftp ESTABLISHED
    TCP oem-pa3ce9izhlm:3652 domain.com:41164 TIME_WAIT
    TCP oem-pa3ce9izhlm:3658 domain.com:41172 SYN_SENT

    I replaced my server domain with domain.com, notice SYN_SENT, my pc sent a SYN but never got a reply back.

    Hosting company support say that I need to add RAM. Just doesn't make since to me. I have a problem with network timeouts, no idea why would RAM solve this?


  • Having lots of TIME_WAIT are quite usual for a server. I doubt that is the root cause of your problem.

    How large is the file you are uploading? Is this to vB? If so, how large is your attachment table?


  • 30 min after rebooting and it's getting even worse, 240 TIME_WAIT entry. Users are complaining that browsing is very slow.

    Still need help :)



    1:30pm up 32 min, 1 user, load average: 0.20, 0.15, 0.10
    83 processes: 80 sleeping, 3 running, 0 zombie, 0 stopped
    CPU0 states: 0.0% user, 1.0% system, 0.0% nice, 98.0% idle
    CPU1 states: 2.0% user, 1.0% system, 0.0% nice, 95.0% idle
    CPU2 states: 7.0% user, 0.0% system, 0.0% nice, 92.0% idle
    CPU3 states: 5.0% user, 0.0% system, 0.0% nice, 94.0% idle
    Mem: 1031056K av, 456860K used, 574196K free, 0K shrd, 10540K buff
    Swap: 1052216K av, 0K used, 1052216K free 344652K cached



    Http processes currently running = 23
    Mysql processes currently running = 17

    Logged in right now:
    1:30pm up 32 min, 0 user, load average: 0.20, 0.15, 0.10
    USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT


    Netstat information summary
    11 ESTABLISHED
    4 FIN_WAIT1
    5 FIN_WAIT2
    13 LISTEN
    5 SYN_RECV
    240 TIME_WAIT


  • Any hint guys?







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Network connections time outs , Please add it free.
    • edit