Is anyone else getting memory errors all of a sudden?

Discussion in 'Linux VPS/Dedicated - cPanel' started by lalaland, Apr 15, 2007.

  1. lalaland

    lalaland New Member

    Recently my VPS has been hitting max memory and crashing CPanel, HTTPD and pretty much everything else running on the server.

    I've searched and searched and can't find anything that's changed, even the number of users hasn't increased (if anything in the recent day's it's decreased!). I genuinely cannot see why over the last few weeks my memory used % is rocketing through the ceiling.

    On some occasions the CPU is maxed out with the memory, others it's just the memory. The strange thing is that there's only a handful of people connected to my forum and nothing else. It's certainly not demanding stuff, I can't work out why my VPS is dying.

    It's got to the stage where if I don't check my VPS every hour or two I find it's down and I'm losing members of my website because of this :(

    I need help if anyone's able to suggest anything? Where can I start looking? I've checked Cpanel and WHM, I've checked VZPP but all they say is privvmpages is maxed out.

    While typing this I've just restarted my entire VPS via the VZPP control panel (using reboot option) and the second it's restarted, the memory's at 100% again rendering my entire website unavailable.

    What's going on? Nobody's able to connect and this is getting more than annoying.

    I genuinely can't see why the demand has changed, there are less users and it's the same vBulletin processes but since a few weeks back the memory and occasionally CPU is just maxing out and dying taking me plenty of time restarting and trying to find faults that don't seem to exist.

  2. lalaland

    lalaland New Member

    Right now this is my process list from VZPP with my memory maxed out and nothing able to run
  3. lalaland

    lalaland New Member

    I've tried restarting again and once again the memory is straight in to the red zone.

    So even if I restart my entire server it's immedialty dying!
  4. KH-Paul

    KH-Paul CTO Staff Member


    What kind of VPS plan do you have and what sort of traffic do you have on your sites?

  5. lalaland

    lalaland New Member

    I'm on VPS Mtx and I only run one site from it (there are a couple of domains on there, one for email and the rest are holding).

    I have about 30 people on the forum at normal times about up to about 50 at busy times. Tonight there are about 10 people but the server keeps dying, this is about the 6th time I've rebooted in the last few minutes!
  6. KH-Paul

    KH-Paul CTO Staff Member


    VPS-M isn't the plan which suppose to handle 50 people online. You should seriously consider upgrading your VPS to the higher plan to get access to more resources. Based on the process list you've posted above MySQL alone is using 92568 KB of memory on your system, plus you have good number of Apache processes running and this brings you to the limit.

    If you have to reboot the VPS with 10 connected people and it goes into the black zone (I suppose we're talking about privvmpages resource, right?), then there is a good chance that somebody is attacking your site by opening countless number of connections to your system. You should be able to see sorted list of connections by running this command:

    netstat -anp | grep "^tcp\|^udp" | sort -nk 6
    If you'll see, say, 20+ connections from the same IP on the same port, then there is a chance that this guy is attacking your system. You can block the IP in runtime configuration using this command:

    iptables -A INPUT -s IPADDR -j DROP

    where IPADDR needs to be replaced with attacker's IP address.


Share This Page