Results 1 to 3 of 3

Thread: server running slow

Hybrid View

  1. #1

    Red face server running slow

    hi friends,
    i have installed redhat Cent O.S 4.2 on my sever.

    while client is accesing its homepage , it has a slow response.
    when client use ftp for file transfer, response from server is slow.
    i am running php software and MYSQL database in my server.

    i am using 80GB hard disk and still 28GB freespace is remaining.
    i have 512 MB of memory, in which currently 91 MB is still free.

    o/p for " vmstat" command is

    procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
    r b swpd free buff cache si so bi bo in cs us sy id wa
    0 0 160 91296 40656 287300 0 0 9 7 60 34 0 0 100 0



    o/p for "free" command is

    total used free shared buffers cached
    Mem: 507932 416572 91360 0 40636 287284
    -/+ buffers/cache: 88652 419280
    Swap: 779144 160 778984






    o/p of "top" command is


    top - 14:31:52 up 2 days, 1:12, 2 users, load average: 0.00, 0.00, 0.00
    Tasks: 74 total, 1 running, 73 sleeping, 0 stopped, 0 zombie
    Cpu(s): 1.7% us, 0.0% sy, 0.0% ni, 98.3% id, 0.0% wa, 0.0% hi, 0.0% si
    Mem: 507932k total, 416772k used, 91160k free, 40612k buffers
    Swap: 779144k total, 160k used, 778984k free, 287268k cached



    In the /var/log/messages there are no errors
    But in the /var/log/httpd/error_log it is showing a long list of same error i.e" an unknown filter was not added :PHp".in this way my server is responding very slow for ftp and while accesssing through http.will u pls help me to solve this problem.

  2. #2
    Administrator Advisor peter's Avatar
    Join Date
    Apr 2004
    Posts
    882
    What is the output of the following commands:

    Code:
    # netstat -i
    # ethtool -S eth0
    # mii-tool eth0
    It could be a speed / duplex issue with the ethernet NIC.

    if there are lots of errors, make sure the speed and duplex match on the switch and your server. Duplex is best set to "full" and speed to the maximum capable of the NIC which your switch also supports. Sometimes a Linux server will be set to the default auto-negotiate, and the switch coded to full duplex, which forces the NIC into half duplex mode. See this link. The solution is to either set the switch to "auto", or force the NIC to the pre-set values on the switch.

    If you are hooked to a hub, and not a switch, it'll always negotiate to half duplex. For best results, a switch is the preferred choice for its full duplex capabilities.

    The other problem could be DNS. Sometimes one of the DNS servers for your domain may be incorrectly configured so that sometimes the incorrect IP address is returned for your website. This can cause delays until your browser times out and then decides to try the next DNS server in the list.
    Last edited by peter; 01-23-2007 at 07:56 AM.

  3. #3

    reply

    thank you friend,
    as per your guidence, i have typed the commands on my server.their o/ps are,
    1.for "mii-tool eth0"

    eth0: negotiated 100baseTx-FD, link ok


    2.for "ethtool -S eth0"

    NIC statistics:
    early_rx: 0
    tx_buf_mapped: 0
    tx_timeouts: 0
    rx_lost_in_ring: 0


    3.for "netstat -i"

    Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR
    Flg
    eth0 1500 0 43568 0 0 0 41105 0 0 0
    BMRU
    lo 16436 0 22 0 0 0 22 0 0 0
    LRU


    today i have rebooted the server and then check the http and ftp response of the server and it is better than the previous 3 days.but i still unable to find out the cause of such response of server.

    i have checked the logs with "tail -f /var/log/httpd/erroe_log" this command, and the o/p is,
    "[Wed Jan 24 10:28:34 2007] [error] an unknown filter was not added: PHP
    [Wed Jan 24 10:28:34 2007] [error] an unknown filter was not added: PHP
    [Wed Jan 24 10:41:20 2007] [error] an unknown filter was not added: PHP
    [Wed Jan 24 10:41:20 2007] [error] an unknown filter was not added: PHP
    [Wed Jan 24 10:41:22 2007] [error] an unknown filter was not added: PHP
    [Wed Jan 24 10:41:22 2007] [error] an unknown filter was not added: PHP
    [Wed Jan 24 10:41:38 2007] [error] an unknown filter was not added: PHP
    [Wed Jan 24 10:41:38 2007] [error] an unknown filter was not added: PHP
    [Wed Jan 24 10:41:41 2007] [error] an unknown filter was not added: PHP
    [Wed Jan 24 10:41:41 2007] [error] an unknown filter was not added: PHP"

    i am unable to understand this message in the error file.this error message
    is continuously coming in this log file.

    if the server again starts responding similar to the response of previous 3 days, then what should be my action for that case? will u pls help me in this?

Similar Threads

  1. opening port in redhat server running samba
    By limap5 in forum Linux - Hardware, Networking & Security
    Replies: 5
    Last Post: 08-29-2006, 10:05 AM
  2. mount NFS server too slow
    By iceman in forum Linux - General Topics
    Replies: 0
    Last Post: 04-07-2005, 07:19 AM
  3. Running dhcp3-server?
    By Compunuts in forum Linux - General Topics
    Replies: 0
    Last Post: 07-26-2004, 12:55 AM
  4. Running a dedicated HL server
    By Zalbag in forum Linux - Hardware, Networking & Security
    Replies: 5
    Last Post: 02-13-2002, 06:43 PM
  5. My Slow Server
    By gmoreno in forum Linux - General Topics
    Replies: 18
    Last Post: 12-12-2001, 06:02 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •