I am having issues where my hosting account keep crashing due to running out of memory usage.
I have a VPS Linux hosting account with 1Gb RAM.
Recently whenever I make any changes to my site and then refresh the site it seems to crash and I have to restart the Virtual Server.
My hosting company emails me also with the following emails:
Swap cache: add 972200, delete 964261, find 201469/251424, race 6+227
Free swap = 0kB
Total swap = 2097144kB
This is my hosting environment.
2 websites on a VPS hosting account.
I run a main WordPress website. I also am a theme and plugin developer so I have a second WordPress theme that is hosted on the account that displays a "Demo" WordPress theme.
I the last five plugins I have developed I have created an update API that is included with the plugins. This means that users of the plugins will ping my server twice a day to read a text file to check if there is an update for the plugins.
My hosting company states that I should try and optimize my site and this should fix the issue and upgrade to the next level hosting which is 2Gb RAM.
I am trying to determine what it is that can causing these fluctuations and using all the resources. I am working on the "Main" WordPress site to try and optimize this site.
I just have a few questions that I am searching the answers for:
- Do you think that hosting my own API for my plugins is a bad idea? Could this be some of the cause of the issues?
- Could it be all the database queries that crash the site.
- Does using Social Networking plugins that query Twitter, Facebook etc put a big burden on the site resources?
I am trying to make a decision in whether to really scale down the site and remove the API or to just upgrade to a new web host which will cost more money.
Any incite and help would be greatly appreciated.