VPS server issue with memory out

Permalink 1 user found helpful
I have a 512 mb virtual private server (VPS) that I just set up for a C5 site. I keep running out of memory. Typically the server when idle is at about 55% of its memory capacity. If you open a few browsers and logins as a site users and look around the load goes up to about 85% memory usage.

However, if you try and login in and use the wrong password there is a sudden spike in the memory usage up to 96% or higher and it gets stuck, everything starts to lock up and the WHM/cpanel begins to do various service restarts I am not a programmer but I guess this is some kind of database issue.

As the site was migrated from shared hosting to vps I am wondering if the install has been corrupted.

I could increase the memory to 768 on the VPS but if its not needed I would rather keep the extra $$

Any one any ideas?

PhilYoung
 
Mnkras replied on at Permalink Reply
Mnkras
I doubt the install was corrupted, any php or system errors?
ThemeGuru replied on at Permalink Reply
ThemeGuru
Personally I wouldn't bother with VPS hosting it's great if your site is going to be servicing thousands of users and a sudden spike appears I would look into Server4you's root server.

We run one and it's just great. Best of our specs increased by 4 times.

Plus it's quite affordable.

If your still going to be on a vps I believe you need a min 3-4 nodes for your site to be functional w/ cpanel.

Hope this helps.
PhilYoung replied on at Permalink Reply
PhilYoung
Yes i was talking to tech support who are responsive but variable in there knowledge. However, I have just discovered that cpanel/whm are quite resource intensive.

The VPS is for a paid membership site with a few hundred users, a test instal on a shared hosting was not coping plus the shared system was wildly unstable.

The current web site is on a windows server with an asp.net based cms, but one that is no longer supported and as I am familiar with C5 I wanted to transfer into it rather than going into dotnetnuke.

After wrestling with some tweaks for WHM and increasing memory in php i have stopped another problem with the index function running constantly which was also an issue and was hogging resources.

I rebooted the VPS and now the failed user logins issue is not creating the same problem anymore.

The nice thing about the VPS is how fast the site loads.
bentvision replied on at Permalink Reply
bentvision
Something else that I have found running concrete on multiple types of platforms is that using the CACHEING feature is sometimes an issue depending upon what blocks you are using.

If you find that you have a site on a VPS that is running slow and you are having memory problems, DISABLE CACHING in your dashboard. See if you site doesn't start loading super fast again and your memory return to normal after a reboot.

Yes this causes real-time MySQL queries, but if you have a dedicated VM you'll be fine.

See what that does for you. I use cacheing by default on my sites, but occasionally I run into a performance problem and disabling it has fixed my issues every time.
PhilYoung replied on at Permalink Reply
PhilYoung
The VPS has settled down, I disabled spam assassin which seems to be quite a memory hog and was not important as the site uses google apps for email. Then I tweaked the php settings increasing available memory and lengthening the timeouts. This fixed the indexing issue.

I was surprised to learn the WHM/Cpanel is using some 256 meg of the server resources. Even with good levels of traffic I am averaging a memory usage of about 420mb which is fine.

Thanks for all your input.

Phil