At just 256k dedicated RAM the Media Temple Base is not exactly top of the range. In fact it is pretty much rock bottom. But for the money it is a good deal. If you optimise your server the (dv) Base can happily run multiple installs of ExpressionEngine with medium levels of traffic.
This article is advice only. No responsibility will be taken for following the instructions below.
After around 6 months of using the (dv) Base I found that the server was regularly complaining that it was running out of memory. The box was running around 15 sites and 30 email accounts. Around that time Google Hosted Services emerged and after a month or so of testing with my own account I made the switch. Moving email off the (dv) to Google has improved the service offering to clients and reduced the load on the box. None of my clients have found any problems.
To move to Google Hosted Services you need to set up the account and then (and only when) you are ready amend the DNS records for each domain. This can be done through the Media Temple control panel.
Media Temple have posted a series of articles on optimising the (dv) server. Following these will reduce the load on the server and free up some precious RAM.
Dave Seah has also posted a series of articles targeted at using WordPress on the (dv). Although these are focussed on WordPress all of them are worth reading and following:
There are some useful comments in these articles here that can help you squeeze every last ounce of RAM out of your server.
Plesk is configured to start services on boot even if you are not using them so you can go through and disable them. To do this you remove execute permissions from the start up scripts in the /etc/init.d/ folder. So for example I’m not using the courier-imap service so the following command stops it from starting.
chmod a-x /etc/init.d/courier-imap
If I want to turn it back on at a later date I can just use
chmod a+x /etc/init.d/courier-imap
Here are the services I disabled - remember I’m not using email on the (dv).
After doing all this and following the items above the amount of RAM in use has more than halved and the box is now happily running using about 35% of the allocated 256k or RAM.
Have an update or suggestion for this article? You can edit it here and send me a pull request.
Using HashiCorp Vault with LDAP
How to use HashiCorp Vault to setup an LDAP backed secret store with read-only access for users in groups and read-write access for specific users
Linux and Unix xargs command tutorial with examples
Tutorial on using xargs, a UNIX and Linux command for building and executing command lines from standard input. Examples of cutting by character, byte position, cutting based on delimiter and how to modify the output delimiter.
Copy a file in Go
How to copy a file in Go. The ioutil package does not offer a shorthand way of copying a file. Instead the os package should be used.