Page 1 of 2 12 LastLast
Results 1 to 25 of 46
  1. #1

    Slow page response.

    He guys,

    I have a problem with my page response. Sometimes it tooks about 30 sec or more to load the page, but sometimes it loads very fast.

    I have a VPS pn CentOS 6. All was realy fast, but since 2 weeks all is slow. Maybe a DoS ? How to check it ?

  2. #2
    Join Date
    Mar 2003
    Location
    /root
    Posts
    23,991
    Start by checking the processes running in your vps then the logs.

    Specially 4 U
    Reseller Hosting: Boost Your Websites | Fully Managed KVM VPS: 3.20 - 5.00 Ghz, Pure Dedicated Power
    JoneSolutions.Com is on the net 24/7 providing stable and reliable web hosting solutions, server management and services since 2001
    Debian|Ubuntu|cPanel|DirectAdmin|Enhance|Webuzo|Acronis|Estela|BitNinja|Nginx

  3. #3
    Ok, here are all active processes.

    Code:
    USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
    root         1  0.0  0.0  19228  1496 ?        Ss   Jan10   0:00 /sbin/init
    root         2  0.0  0.0      0     0 ?        S    Jan10   0:00 [kthreadd]
    root         3  0.0  0.0      0     0 ?        S    Jan10   0:00 [migration/0]
    root         4  0.0  0.0      0     0 ?        S    Jan10   0:00 [ksoftirqd/0]
    root         5  0.0  0.0      0     0 ?        S    Jan10   0:00 [migration/0]
    root         6  0.0  0.0      0     0 ?        S    Jan10   0:00 [watchdog/0]
    root         7  0.0  0.0      0     0 ?        S    Jan10   0:00 [migration/1]
    root         8  0.0  0.0      0     0 ?        S    Jan10   0:00 [migration/1]
    root         9  0.0  0.0      0     0 ?        S    Jan10   0:00 [ksoftirqd/1]
    root        10  0.0  0.0      0     0 ?        S    Jan10   0:00 [watchdog/1]
    root        11  0.0  0.0      0     0 ?        S    Jan10   0:00 [migration/2]
    root        12  0.0  0.0      0     0 ?        S    Jan10   0:00 [migration/2]
    root        13  0.0  0.0      0     0 ?        S    Jan10   0:00 [ksoftirqd/2]
    root        14  0.0  0.0      0     0 ?        S    Jan10   0:00 [watchdog/2]
    root        15  0.0  0.0      0     0 ?        S    Jan10   0:00 [migration/3]
    root        16  0.0  0.0      0     0 ?        S    Jan10   0:00 [migration/3]
    root        17  0.0  0.0      0     0 ?        S    Jan10   0:00 [ksoftirqd/3]
    root        18  0.0  0.0      0     0 ?        S    Jan10   0:00 [watchdog/3]
    root        19  0.0  0.0      0     0 ?        S    Jan10   0:00 [migration/4]
    root        20  0.0  0.0      0     0 ?        S    Jan10   0:00 [migration/4]
    root        21  0.0  0.0      0     0 ?        S    Jan10   0:00 [ksoftirqd/4]
    root        22  0.0  0.0      0     0 ?        S    Jan10   0:00 [watchdog/4]
    root        23  0.0  0.0      0     0 ?        S    Jan10   0:00 [migration/5]
    root        24  0.0  0.0      0     0 ?        S    Jan10   0:00 [migration/5]
    root        25  0.0  0.0      0     0 ?        S    Jan10   0:00 [ksoftirqd/5]
    root        26  0.0  0.0      0     0 ?        S    Jan10   0:00 [watchdog/5]
    root        27  0.0  0.0      0     0 ?        S    Jan10   0:00 [migration/6]
    root        28  0.0  0.0      0     0 ?        S    Jan10   0:00 [migration/6]
    root        29  0.0  0.0      0     0 ?        S    Jan10   0:00 [ksoftirqd/6]
    root        30  0.0  0.0      0     0 ?        S    Jan10   0:00 [watchdog/6]
    root        31  0.0  0.0      0     0 ?        S    Jan10   0:00 [migration/7]
    root        32  0.0  0.0      0     0 ?        S    Jan10   0:00 [migration/7]
    root        33  0.0  0.0      0     0 ?        S    Jan10   0:00 [ksoftirqd/7]
    root        34  0.0  0.0      0     0 ?        S    Jan10   0:00 [watchdog/7]
    root        35  0.0  0.0      0     0 ?        S    Jan10   0:19 [events/0]
    root        36  0.0  0.0      0     0 ?        S    Jan10   0:08 [events/1]
    root        37  0.0  0.0      0     0 ?        S    Jan10   0:08 [events/2]
    root        38  0.0  0.0      0     0 ?        S    Jan10   0:08 [events/3]
    root        39  0.0  0.0      0     0 ?        S    Jan10   0:09 [events/4]
    root        40  0.0  0.0      0     0 ?        S    Jan10   0:09 [events/5]
    root        41  0.0  0.0      0     0 ?        S    Jan10   0:08 [events/6]
    root        42  0.0  0.0      0     0 ?        S    Jan10   0:09 [events/7]
    root        43  0.0  0.0      0     0 ?        S    Jan10   0:00 [cgroup]
    root        44  0.0  0.0      0     0 ?        S    Jan10   0:00 [khelper]
    root        45  0.0  0.0      0     0 ?        S    Jan10   0:00 [netns]
    root        46  0.0  0.0      0     0 ?        S    Jan10   0:00 [async/mgr]
    root        47  0.0  0.0      0     0 ?        S    Jan10   0:00 [pm]
    root        48  0.0  0.0      0     0 ?        S    Jan10   0:01 [sync_supers]
    root        49  0.0  0.0      0     0 ?        S    Jan10   0:02 [bdi-default]
    root        50  0.0  0.0      0     0 ?        S    Jan10   0:00 [kintegrityd/0]
    root        51  0.0  0.0      0     0 ?        S    Jan10   0:00 [kintegrityd/1]
    root        52  0.0  0.0      0     0 ?        S    Jan10   0:00 [kintegrityd/2]
    root        53  0.0  0.0      0     0 ?        S    Jan10   0:00 [kintegrityd/3]
    root        54  0.0  0.0      0     0 ?        S    Jan10   0:00 [kintegrityd/4]
    root        55  0.0  0.0      0     0 ?        S    Jan10   0:00 [kintegrityd/5]
    root        56  0.0  0.0      0     0 ?        S    Jan10   0:00 [kintegrityd/6]
    root        57  0.0  0.0      0     0 ?        S    Jan10   0:00 [kintegrityd/7]
    root        58  0.0  0.0      0     0 ?        S    Jan10   1:39 [kblockd/0]
    root        59  0.0  0.0      0     0 ?        S    Jan10   0:00 [kblockd/1]
    root        60  0.0  0.0      0     0 ?        S    Jan10   0:00 [kblockd/2]
    root        61  0.0  0.0      0     0 ?        S    Jan10   0:00 [kblockd/3]
    root        62  0.0  0.0      0     0 ?        S    Jan10   0:00 [kblockd/4]
    root        63  0.0  0.0      0     0 ?        S    Jan10   0:00 [kblockd/5]
    root        64  0.0  0.0      0     0 ?        S    Jan10   0:00 [kblockd/6]
    root        65  0.0  0.0      0     0 ?        S    Jan10   0:00 [kblockd/7]
    root        66  0.0  0.0      0     0 ?        S    Jan10   0:00 [kacpid]
    root        67  0.0  0.0      0     0 ?        S    Jan10   0:00 [kacpi_notify]
    root        68  0.0  0.0      0     0 ?        S    Jan10   0:00 [kacpi_hotplug]
    root        69  0.0  0.0      0     0 ?        S    Jan10   0:00 [ata/0]
    root        70  0.0  0.0      0     0 ?        S    Jan10   0:00 [ata/1]
    root        71  0.0  0.0      0     0 ?        S    Jan10   0:00 [ata/2]
    root        72  0.0  0.0      0     0 ?        S    Jan10   0:00 [ata/3]
    root        73  0.0  0.0      0     0 ?        S    Jan10   0:00 [ata/4]
    root        74  0.0  0.0      0     0 ?        S    Jan10   0:00 [ata/5]
    root        75  0.0  0.0      0     0 ?        S    Jan10   0:00 [ata/6]
    root        76  0.0  0.0      0     0 ?        S    Jan10   0:00 [ata/7]
    root        77  0.0  0.0      0     0 ?        S    Jan10   0:00 [ata_aux]
    root        78  0.0  0.0      0     0 ?        S    Jan10   0:00 [ksuspend_usbd]
    root        79  0.0  0.0      0     0 ?        S    Jan10   0:00 [khubd]
    root        80  0.0  0.0      0     0 ?        S    Jan10   0:00 [kseriod]
    root        81  0.0  0.0      0     0 ?        S    Jan10   0:00 [md/0]
    root        82  0.0  0.0      0     0 ?        S    Jan10   0:00 [md/1]
    root        83  0.0  0.0      0     0 ?        S    Jan10   0:00 [md/2]
    root        84  0.0  0.0      0     0 ?        S    Jan10   0:00 [md/3]
    root        85  0.0  0.0      0     0 ?        S    Jan10   0:00 [md/4]
    root        86  0.0  0.0      0     0 ?        S    Jan10   0:00 [md/5]
    root        87  0.0  0.0      0     0 ?        S    Jan10   0:00 [md/6]
    root        88  0.0  0.0      0     0 ?        S    Jan10   0:00 [md/7]
    root        89  0.0  0.0      0     0 ?        S    Jan10   0:00 [md_misc/0]
    root        90  0.0  0.0      0     0 ?        S    Jan10   0:00 [md_misc/1]
    root        91  0.0  0.0      0     0 ?        S    Jan10   0:00 [md_misc/2]
    root        92  0.0  0.0      0     0 ?        S    Jan10   0:00 [md_misc/3]
    root        93  0.0  0.0      0     0 ?        S    Jan10   0:00 [md_misc/4]
    root        94  0.0  0.0      0     0 ?        S    Jan10   0:00 [md_misc/5]
    root        95  0.0  0.0      0     0 ?        S    Jan10   0:00 [md_misc/6]
    root        96  0.0  0.0      0     0 ?        S    Jan10   0:00 [md_misc/7]
    root        97  0.0  0.0      0     0 ?        S    Jan10   0:00 [khungtaskd]
    root        98  0.0  0.0      0     0 ?        S    Jan10   0:00 [kswapd0]
    root        99  0.0  0.0      0     0 ?        SN   Jan10   0:00 [ksmd]
    root       100  0.0  0.0      0     0 ?        SN   Jan10   0:07 [khugepaged]
    root       101  0.0  0.0      0     0 ?        S    Jan10   0:00 [aio/0]
    root       102  0.0  0.0      0     0 ?        S    Jan10   0:00 [aio/1]
    root       103  0.0  0.0      0     0 ?        S    Jan10   0:00 [aio/2]
    root       104  0.0  0.0      0     0 ?        S    Jan10   0:00 [aio/3]
    root       105  0.0  0.0      0     0 ?        S    Jan10   0:00 [aio/4]
    root       106  0.0  0.0      0     0 ?        S    Jan10   0:00 [aio/5]
    root       107  0.0  0.0      0     0 ?        S    Jan10   0:00 [aio/6]
    root       108  0.0  0.0      0     0 ?        S    Jan10   0:00 [aio/7]
    root       109  0.0  0.0      0     0 ?        S    Jan10   0:00 [crypto/0]
    root       110  0.0  0.0      0     0 ?        S    Jan10   0:00 [crypto/1]
    root       111  0.0  0.0      0     0 ?        S    Jan10   0:00 [crypto/2]
    root       112  0.0  0.0      0     0 ?        S    Jan10   0:00 [crypto/3]
    root       113  0.0  0.0      0     0 ?        S    Jan10   0:00 [crypto/4]
    root       114  0.0  0.0      0     0 ?        S    Jan10   0:00 [crypto/5]
    root       115  0.0  0.0      0     0 ?        S    Jan10   0:00 [crypto/6]
    root       116  0.0  0.0      0     0 ?        S    Jan10   0:00 [crypto/7]
    root       121  0.0  0.0      0     0 ?        S    Jan10   0:00 [kthrotld/0]
    root       122  0.0  0.0      0     0 ?        S    Jan10   0:00 [kthrotld/1]
    root       123  0.0  0.0      0     0 ?        S    Jan10   0:00 [kthrotld/2]
    root       124  0.0  0.0      0     0 ?        S    Jan10   0:00 [kthrotld/3]
    root       125  0.0  0.0      0     0 ?        S    Jan10   0:00 [kthrotld/4]
    root       126  0.0  0.0      0     0 ?        S    Jan10   0:00 [kthrotld/5]
    root       127  0.0  0.0      0     0 ?        S    Jan10   0:00 [kthrotld/6]
    root       128  0.0  0.0      0     0 ?        S    Jan10   0:00 [kthrotld/7]
    root       130  0.0  0.0      0     0 ?        S    Jan10   0:00 [kpsmoused]
    root       131  0.0  0.0      0     0 ?        S    Jan10   0:00 [usbhid_resumer]
    root       161  0.0  0.0      0     0 ?        S    Jan10   0:00 [kstriped]
    root       371  0.0  0.0      0     0 ?        S    Jan10   0:00 [scsi_eh_0]
    root       372  0.0  0.0      0     0 ?        S    Jan10   0:00 [scsi_eh_1]
    root       373  0.0  0.0      0     0 ?        S    Jan10   0:00 [scsi_eh_2]
    root       374  0.0  0.0      0     0 ?        S    Jan10   0:00 [scsi_eh_3]
    root       375  0.0  0.0      0     0 ?        S    Jan10   0:00 [scsi_eh_4]
    root       376  0.0  0.0      0     0 ?        S    Jan10   0:00 [scsi_eh_5]
    root       478  0.0  0.0      0     0 ?        S    Jan10   0:22 [md0_raid1]
    root       484  0.3  0.0      0     0 ?        S    Jan10  44:46 [md2_raid1]
    root       490  0.0  0.0      0     0 ?        S    Jan10   0:00 [md1_raid1]
    root       509  0.0  0.0      0     0 ?        S    Jan10   0:09 [jbd2/md2-8]
    root       510  0.0  0.0      0     0 ?        S    Jan10   0:00 [ext4-dio-unwrit]
    root       511  0.0  0.0      0     0 ?        S    Jan10   0:00 [ext4-dio-unwrit]
    root       512  0.0  0.0      0     0 ?        S    Jan10   0:00 [ext4-dio-unwrit]
    root       513  0.0  0.0      0     0 ?        S    Jan10   0:00 [ext4-dio-unwrit]
    root       514  0.0  0.0      0     0 ?        S    Jan10   0:00 [ext4-dio-unwrit]
    root       515  0.0  0.0      0     0 ?        S    Jan10   0:00 [ext4-dio-unwrit]
    root       516  0.0  0.0      0     0 ?        S    Jan10   0:00 [ext4-dio-unwrit]
    root       517  0.0  0.0      0     0 ?        S    Jan10   0:00 [ext4-dio-unwrit]
    root       741  0.0  0.0      0     0 ?        S    Jan10   0:00 [edac-poller]
    root       856  0.0  0.0      0     0 ?        S    Jan10   0:00 [hd-audio0]
    root       944  0.0  0.0      0     0 ?        S    Jan10   0:48 [kondemand/0]
    root       945  0.0  0.0      0     0 ?        S    Jan10   0:12 [kondemand/1]
    root       946  0.0  0.0      0     0 ?        S    Jan10   0:12 [kondemand/2]
    root       947  0.0  0.0      0     0 ?        S    Jan10   0:10 [kondemand/3]
    root       948  0.0  0.0      0     0 ?        S    Jan10   1:14 [kondemand/4]
    root       949  0.0  0.0      0     0 ?        S    Jan10   0:10 [kondemand/5]
    root       950  0.0  0.0      0     0 ?        S    Jan10   0:10 [kondemand/6]
    root       951  0.0  0.0      0     0 ?        S    Jan10   0:15 [kondemand/7]
    root       985  0.0  0.0      0     0 ?        S    Jan10   0:00 [kjournald]
    root      1021  0.0  0.0      0     0 ?        S    Jan10   0:00 [kauditd]
    root      1219  0.0  0.0  27636   848 ?        S<sl Jan10   0:00 auditd
    named     1258  0.0  0.0 691248 20104 ?        Ssl  Jan10   0:01 /usr/sbin/named -u named -4
    root      1304  0.0  0.0   4076   636 ?        Ss   Jan10   0:00 /usr/sbin/acpid
    root      1595  0.0  0.0 185092  1152 ?        Ss   Jan10   0:00 pure-ftpd (SERVER)                                                                                                                                                                                             
    root      1616  0.0  0.0   4060   584 tty1     Ss+  Jan10   0:00 /sbin/mingetty /dev/tty1
    root      1618  0.0  0.0   4060   576 tty2     Ss+  Jan10   0:00 /sbin/mingetty /dev/tty2
    root      1620  0.0  0.0   4060   584 tty3     Ss+  Jan10   0:00 /sbin/mingetty /dev/tty3
    root      1622  0.0  0.0   4060   580 tty4     Ss+  Jan10   0:00 /sbin/mingetty /dev/tty4
    root      1624  0.0  0.0   4060   584 tty5     Ss+  Jan10   0:00 /sbin/mingetty /dev/tty5
    root      1626  0.0  0.0   4060   584 tty6     Ss+  Jan10   0:00 /sbin/mingetty /dev/tty6
    apache    5231  0.0  0.0 296824 15240 ?        S    Jan17   0:01 /usr/sbin/httpd
    root      5812  0.0  0.0 151772 14596 ?        Ss   00:00   0:06 lfd - sleeping
    apache    7912  0.0  0.0 296608 15064 ?        S    04:01   0:01 /usr/sbin/httpd
    apache    9933  0.0  0.0 296508 15180 ?        S    08:05   0:00 /usr/sbin/httpd
    apache   11230  0.0  0.0 296640 15220 ?        S    10:26   0:00 /usr/sbin/httpd
    apache   11235  0.0  0.0 296508 15088 ?        S    10:26   0:00 /usr/sbin/httpd
    apache   11350  0.0  0.0 296316 14916 ?        S    10:33   0:00 /usr/sbin/httpd
    apache   11351  0.0  0.0 296512 15200 ?        S    10:33   0:00 /usr/sbin/httpd
    apache   11353  0.0  0.0 296556 15376 ?        S    10:33   0:00 /usr/sbin/httpd
    apache   11618  0.0  0.0 296536 15252 ?        S    11:07   0:00 /usr/sbin/httpd
    apache   12523  0.0  0.0 296504 15056 ?        S    12:43   0:00 /usr/sbin/httpd
    apache   12616  0.0  0.0 295816 14084 ?        S    12:53   0:00 /usr/sbin/httpd
    apache   12617  0.0  0.0 296780 15168 ?        S    12:53   0:00 /usr/sbin/httpd
    apache   12620  0.0  0.0 296292 14568 ?        S    12:53   0:00 /usr/sbin/httpd
    apache   12627  0.0  0.0 296312 14912 ?        S    12:54   0:00 /usr/sbin/httpd
    apache   12662  0.0  0.0 296316 14944 ?        S    12:55   0:00 /usr/sbin/httpd
    apache   12672  0.0  0.0 294268 12656 ?        S    12:55   0:00 /usr/sbin/httpd
    root     12685  0.0  0.0  98532  4484 ?        Ss   12:56   0:00 sshd: root@pts/0 
    root     12687  0.0  0.0 108436  2000 pts/0    Ss+  12:56   0:00 -bash
    apache   12905  0.0  0.0 295420 13612 ?        S    13:17   0:00 /usr/sbin/httpd
    root     13146  0.0  0.0  10640   696 ?        S<s  13:28   0:00 /sbin/udevd -d
    root     13636  0.0  0.0  66608  1228 ?        Ss   13:30   0:00 /usr/sbin/sshd
    root     13657  0.0  0.0 117292  1252 ?        Ss   13:30   0:00 crond
    root     13674  0.0  0.0 249084  1452 ?        Sl   13:30   0:00 /sbin/rsyslogd -i /var/run/syslogd.pid -c 5
    root     18618  0.0  0.0  14080  1112 ?        Ss   Jan11   0:00 incrond
    apache   22601  0.0  0.0 296248 14480 ?        S    13:36   0:00 /usr/sbin/httpd
    apache   23233  0.0  0.0 296264 14452 ?        S    13:41   0:00 /usr/sbin/httpd
    apache   23234  0.0  0.0 294472 13012 ?        S    13:41   0:00 /usr/sbin/httpd
    root     23713  0.0  0.0 106060  1512 pts/0    S    13:47   0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid --basedir=/usr --user=mysql
    mysql    23845  0.1  0.1 509276 39492 pts/0    Sl   13:47   0:08 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/lib/mysql/mysql.sock
    postfix  24755  0.0  0.0  81360  3416 ?        S    14:14   0:00 pickup -l -t fifo -u
    postfix  25199  0.0  0.0  81504  3524 ?        S    15:08   0:00 cleanup -z -t unix -u
    postfix  25204  0.0  0.0  81660  4108 ?        S    15:08   0:00 local -t unix
    root     25279  0.0  0.0  98296  4088 ?        Ss   15:13   0:00 sshd: root@pts/1 
    root     25285  0.0  0.0 108432  1980 pts/1    Ss   15:13   0:00 -bash
    root     25305  0.0  0.0 110196  1088 pts/1    R+   15:13   0:00 ps aux
    root     25306  0.0  0.0 105440   936 pts/1    R+   15:13   0:00 less
    root     26682  0.0  0.0      0     0 ?        S    Jan14   0:03 [flush-9:2]
    root     27150  0.0  0.0  80864  3296 ?        Ss   Jan14   0:03 /usr/libexec/postfix/master
    postfix  27153  0.0  0.0  81124  3520 ?        S    Jan14   0:03 qmgr -l -t fifo -u
    root     28610  0.0  0.0 290044 11300 ?        Ss   Jan17   0:02 /usr/sbin/httpd

  4. #4
    Join Date
    Jul 2012
    Location
    Singapore
    Posts
    128
    What's your Apache config? (Workers, children, etc..)

    Do you timeout a long request?
    "Hurr durr look at dem offers section" (aka read mah signature) - WHT 2015

  5. #5
    httpd.conf

    objektsuche24.de/apache.conf

  6. #6
    Join Date
    Jul 2012
    Location
    Singapore
    Posts
    128
    Looks like you're running prefork.

    Change KeepAliveTimeout 100 to 5
    Change MinSpareServers 8 to 20
    Change MaxSpareServers 20 to 35

    then service httpd restart

    Let us know if it improves the situation.
    "Hurr durr look at dem offers section" (aka read mah signature) - WHT 2015

  7. #7
    Could you provide URL for testing ?

  8. #8
    Quote Originally Posted by GIANT_CRAB View Post
    Looks like you're running prefork.

    Change KeepAliveTimeout 100 to 5
    Change MinSpareServers 8 to 20
    Change MaxSpareServers 20 to 35

    then service httpd restart

    Let us know if it improves the situation.
    I have made the changes but then it is even more slower then it was. The url is www.objektsuche24.de

  9. #9
    Join Date
    Feb 2012
    Posts
    2,103
    Quote Originally Posted by CroIgor View Post
    I have made the changes but then it is even more slower then it was. The url is www.objektsuche24.de
    Seems to be loading pretty much instantly from this end.
    Clouveo - SSD/NVMe Cloud VPS & Web Hosting
    Cloud VPS Servers | DDoS Protected | Snapshots | Auto Backups | One Click Apps | Custom ISOs
    clouveo.com | Locations: [UK] London, [NL] Amsterdam, [US] Los Angeles

  10. #10
    Join Date
    Sep 2013
    Location
    Canada
    Posts
    656
    Speed looks fine, Canada east.

    Did you try tools.pingdom.com see where it slows down?
    Hostabulous 🔗 cPanel (Cloudlinux) & Plesk (Windows DC 2016) Hosting 🔗 R1Soft CDP backups
    No Gimmicks 🍁 Proudly Canadian

  11. #11
    Join Date
    Sep 2008
    Location
    /dev/null
    Posts
    469
    you are using an outdated Apache try to update to latest one

  12. #12
    Join Date
    Jan 2010
    Location
    USA
    Posts
    2,173
    I tried to load your site three times. Twice it loaded quickly. Once it loaded very slowly, taking more than 30 seconds to come up in the browser.

    Here are a couple commands you can try to find out what is happening in Apache. For example, somebody might be doing a Slowloris attack, where they create a bunch of slow connections to Apache and tie up all the MaxClients. The next two commands can help you investigate for that possibility. If you are the victim of a Slowloris attack, then you need to use your firewall to limit the number of simultaneous connections from a given IP.

    Count Clients used by Apache (useful for monitoring MaxClients)
    pgrep httpd | wc -l

    Count Network Connections to HTTPD
    netstat -nap | grep :80 | wc -l

    You can also use the top command to watch the CPU usage of processes.

    If your site is DB based, you could investigate performance within MySQL (if that is the DB server you use). Grab mysqltuner.pl and run that to peek in MySQL and get some tuning tips specific to your workload.
    No Support Linux Hosting Bargain cPanel Hosting Experts Only
    We IGNORE the support questions, and pass the SAVINGS on to YOU!
    We also ignore questions about VPS Hosting

  13. #13
    Code:
    [root@server1 ~]# pgrep httpd | wc -l
    22
    [root@server1 ~]# netstat -nap | grep :80 | wc -l
    12
    i used tuning-primer.sh to check MySQL and all is fine.

  14. #14
    Join Date
    Oct 2009
    Location
    United States
    Posts
    2,602
    There is definitely a major slowness. It took about 20 seconds for the site to load up. I checked on Pingdom Tools and it took more than 30 seconds for the page to load.

    I would advise hiring a server management company and have them optimize your server. If you have a managed server, contact your hosting provider and they should be able to assist you.
    Snoork Hosting - Enterprise Servers | DDoS Protected Network
    99.9% Network Uptime | 15 Minute Ticket Response Time | 24/7 Live Chat
    Check Out Our Dedicated Server Specials For Amazing Discounts & Promotions

  15. #15
    Yeah but i want alone to fix this, want to learn more about server administration.

  16. #16
    Join Date
    Feb 2012
    Posts
    2,103
    Quote Originally Posted by CroIgor View Post
    Yeah but i want alone to fix this, want to learn more about server administration.
    Are you running the latest Apache and PHP?
    Clouveo - SSD/NVMe Cloud VPS & Web Hosting
    Cloud VPS Servers | DDoS Protected | Snapshots | Auto Backups | One Click Apps | Custom ISOs
    clouveo.com | Locations: [UK] London, [NL] Amsterdam, [US] Los Angeles

  17. #17
    Apache/2.2.15 and PHP 5.3.3

  18. #18
    Join Date
    Jul 2006
    Location
    Australia
    Posts
    3,809
    You could also try running something like https://addons.mozilla.org/en-US/firefox/addon/yslow/

    My help a bit.

  19. #19
    Join Date
    Jul 2012
    Location
    Singapore
    Posts
    128
    I've done traceroute and it seems like it isn't network issue, therefore it would either be Apache, PHP or MySQL at fault.

    Are you using PHP-DSO? Or something else?

    Quote Originally Posted by CroIgor View Post
    Apache/2.2.15 and PHP 5.3.3
    Install remi's repository, enable it and update it to the bleeding edge.

    Apache 2.4 performs better than 2.2

    Set Start Servers to 10
    Set MinSpareServers to 30
    Set MaxSpareServers to 50
    Set Timeout to 5
    Set KeepAliveTimeout to 5
    Set Server Limit to 1024
    Set Max Request Workers to 1000
    "Hurr durr look at dem offers section" (aka read mah signature) - WHT 2015

  20. #20
    Ok i think its know faster. If anyone can test it to be sure.

  21. #21
    Join Date
    Jul 2012
    Location
    Singapore
    Posts
    128
    Quote Originally Posted by CroIgor View Post
    Ok i think its know faster. If anyone can test it to be sure.
    Yup, its much faster now.
    Did you do what I told you in the above post?

    By the way, you can also install and configure xCache (or any other OPcode cacher) to make your site faster.
    "Hurr durr look at dem offers section" (aka read mah signature) - WHT 2015

  22. #22
    Yes i used your configuration. Thank you for the help

  23. #23
    Join Date
    Jul 2012
    Location
    Singapore
    Posts
    128
    Quote Originally Posted by CroIgor View Post
    Yes i used your configuration. Thank you for the help
    No problem.

    If your site starts to become slow, increase MinSpareServers and MaxSpareServers.

    If it is still slow, then increase Start Servers, Server Limit and Max Request Workers.
    "Hurr durr look at dem offers section" (aka read mah signature) - WHT 2015

  24. #24
    Well I tested multiple times using different locations (both US and EU) and in most cases all is fine. Your website is fully loaded with 125-140 requests depending on the browser. However in the cases when it needs more time to load, the parameter - "Time to first byte" is quite huge - from a few seconds to 35 and up. That is the time between the initial connection to your server and the beginning of downloading your content. Also the above mentioned time counts in the first request made to the web server. Note that after this there is no problem with any other of the requests. You can exclude any possibility of slow loading pics, slow DNS check, slow scripts, etc. It looks like a problem with your web server configuration, like others suggested.

  25. #25
    Join Date
    Jun 2013
    Location
    United Kingdom
    Posts
    185
    Ping isn't too bad but your site is very slow... What specs are your server?

Page 1 of 2 12 LastLast

Similar Threads

  1. Slow response time..
    By wzfoto in forum Web Hosting
    Replies: 12
    Last Post: 12-15-2013, 09:34 AM
  2. My website response time is very slow specially main page
    By anthonyinit in forum VPS Hosting
    Replies: 23
    Last Post: 08-21-2013, 03:22 AM
  3. VPS - Slow Response...
    By Deltrumweb in forum VPS Hosting
    Replies: 5
    Last Post: 01-25-2011, 02:36 PM
  4. SLOW response from Awknet?
    By AZ-DKing in forum Dedicated Server
    Replies: 6
    Last Post: 11-07-2008, 12:21 AM
  5. VERY SLOW Cpanel response
    By disciple1 in forum Dedicated Server
    Replies: 2
    Last Post: 03-17-2005, 12:33 AM

Tags for this Thread

Posting Permissions

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