Announcement Announcement Module
Collapse

myhosting.com Forum Guidelines

Welcome to the myhosting.com Forums! The purpose of this forum is to allow you to discuss topics relating to hosting and topics of interest with other myhosting.com Customers. The primary focus should relate to issues not generally included in our Wiki or Control Panel, or information not provided by our Customer Support Team. Some examples include programming and coding support, web site design ideas and SEO practices.

The forum is not meant as a replacement to our Wiki or Customer Support. We highly recommend searching our Wiki before posting on the forum. Also, if you have a question for our Customer Support team, please contact them as you would normally.

We ask that if you have any complaints or questions relating specifically to your account, that you address them to our Customer Support department. Do not post personal account information such as passwords or other sensitive and private information the forum, as this type of information is best kept secret. Also, please be respectful of other users and refrain from defamatory comments or use of coarse language.

We will visit the forum from time to time, and contribute to various topics. We reserve the right to delete any posts which are deemed offensive or against the spirit of the forum. Any spamming or illegal activity will not be tolerated. We also reserve the right to block any user who violates these guidelines.

To get started, we welcome you to sign up at our User Management site. Any account created there will have access to these forums, our Wiki, our Ideas site and commenting permission on our Status Blog.
See more
See less
Virtual Server slowing down withint a week, memory footprint fine Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Virtual Server slowing down withint a week, memory footprint fine

    My webserver and machine at MyHosting slows down within about a week to the point that it takes 10sec to load the webpage, or get SSH login prompt and 10-20sec bash prompt after login. My allocated memory is 1G and "top" command, shows about 350k in use at such time.

    After reboot everything gets to normal again. There is not much HTTP traffic, maybe 1 request per second in average.

    What can be causing this degradation ? Can something leak network sockets or some other resource than memory ?

    I am considering periodic daily reboot.

  • #2
    Perhaps "Keep Alive" should be turned off in Apache configuration?

    Comment


    • #3
      My VPS has page_size=4096, physpages=262144, vmguarpages=135168

      Apache2 VmRSS footprint was approx 3.8MB, so theoretical maximum 135 clients.

      I read if memory peaks, the server screeches to crawl from then on. For now I have decreased the MaxClients to 50, was 150. Will see if this helps.

      Comment


      • #4
        Hi Ramon,

        Keep us in the loop!

        Comment


        • #5
          Yesterday I did the stress test with 'ab' tool with 10, 50 and 200 concurrent requests with MaxClients=50 and MaxClients=150.

          MaxClients=50 leaves the server more stable. I had two SSH consoles open, running 'ab' from one and 'watch free' or 'top' in other and when MaxClients=50, the test finished and seemed was fine. With MaxClients=150m the 'ab' tool crashed with error 'cannot allocate memory' or top or 'watch free' abruptly ended. So MaxClients=50 makes the server definitely more stable.

          That does not solve my issue with server deteriorating. I did check /proc/user_beancounters yesterday and today when server became sluggish again and there is no indication any of the resources are getting exhausted. Also checked /proc/net/tcp and there is only about 10-15 sockets open.

          Few questions:

          Do I really need bind9 running on my VPS ?

          Can someone look at my processes and perhaps see if there is a process or two that should not be running ?

          Should courier and imapd run at the same time ? I use IMAP email but isn't courier already IMAP server ?

          Why there is so many apache processes running when site load is minimal now ?

          When this process list was taken, top was showing 284M memory taken.

          PID TTY TIME CMD
          1 ? 00:00:00 init
          2 ? 00:00:00 kthreadd/8244
          3 ? 00:00:00 khelper/8244
          482 ? 00:00:01 syslogd
          524 ? 00:00:00 sshd
          626 ? 00:00:00 anvil
          664 ? 00:00:00 couriertcpd
          666 ? 00:00:00 courierlogger
          677 ? 00:00:00 couriertcpd
          679 ? 00:00:00 courierlogger
          686 ? 00:00:00 couriertcpd
          689 ? 00:00:00 courierlogger
          696 ? 00:00:00 couriertcpd
          698 ? 00:00:00 courierlogger
          743 ? 00:00:02 psa-pc-remote
          818 ? 00:00:10 master
          845 ? 00:00:00 xinetd
          887 ? 00:00:07 qmgr
          896 ? 00:00:13 spamd
          944 ? 00:00:00 apache2
          945 ? 00:00:00 apache2
          977 ? 00:00:00 couriertls
          978 ? 00:00:00 imapd
          1045 ? 00:00:00 mysqld_safe
          1084 ? 00:00:11 mysqld
          1085 ? 00:00:00 logger
          1401 ? 00:00:32 spamd
          1492 ? 00:00:00 sw-cp-serverd
          1514 ? 00:00:00 nmbd
          1516 ? 00:00:00 smbd
          1575 ? 00:00:00 cron
          1601 ? 00:00:00 smbd
          1636 ? 00:00:00 tlsmgr
          1787 ? 00:00:00 named
          1807 ? 00:00:00 apache2
          1876 ? 00:00:00 pickup
          1908 ? 00:00:00 apache2
          1930 ? 00:00:00 apache2
          2021 ? 00:00:00 apache2
          2091 ? 00:00:00 sshd
          2100 ? 00:00:00 sshd
          2102 pts/0 00:00:00 csh
          2143 ? 00:00:00 smtpd
          2155 ? 00:00:00 apache2
          2158 ? 00:00:00 apache2
          2159 ? 00:00:00 apache2
          2160 ? 00:00:00 apache2
          2161 ? 00:00:00 apache2
          2165 ? 00:00:00 sshd
          2173 ? 00:00:00 apache2
          2176 pts/1 00:00:00 bash
          2196 ? 00:00:00 smtp
          2201 ? 00:00:00 apache2
          2226 ? 00:00:00 apache2
          2227 ? 00:00:00 apache2
          2228 ? 00:00:00 apache2
          2229 ? 00:00:00 apache2
          2230 ? 00:00:00 apache2
          2231 ? 00:00:00 apache2
          2232 ? 00:00:00 apache2
          2233 pts/0 00:00:00 ps
          17874 ? 00:00:00 couriertls
          17876 ? 00:00:00 imapd
          26391 ? 00:00:09 fail2ban-server
          27264 ? 00:00:00 couriertls
          27265 ? 00:00:01 imapd
          30968 ? 00:00:00 couriertls
          30969 ? 00:00:00 imapd
          31176 ? 00:00:00 couriertls
          31178 ? 00:00:00 imapd
          31292 ? 00:00:00 couriertls
          31293 ? 00:00:00 imapd

          Comment

          Working...
          X