|
Memory issues with small VPS
|
|
02-02-2012, 03:55 PM
Post: #1
|
|||
|
|||
|
Memory issues with small VPS
I am having some issues with my VPs running out of memory. I have the smallest VPS and all that is running on it is a web server there aren't any other persistent processes expect for OS stuff as far as I can think. It is running Ubuntu 10.10. My question is, do you guys have any tips about minimizing memory usage to stop it from getting in a state where I have to reboot it.
|
|||
|
02-02-2012, 04:03 PM
Post: #2
|
|||
|
|||
|
RE: Memory issues with small VPS
Hello,
I would suggest that you check that swap is working correctly (free -m) should show the swap rather than just 0's, I've fixed a couple of servers recently since they hadn't automatically worked, but I believe yours is one of those. You could try uninstalling Apache and installing nginx instead, you would also need to install since nginx doesn't have a built in module for it. There is a good, easy how-to for nginx here: http://davidwinter.me/articles/2009/06/1...-easy-way/ Nginx uses less memory and is more efficient I'd expect that you shouldn't have further issues if you use that instead. Let me know if you have any issues setting it up and I can give you some help. Kind Regards, Martin Woodhouse |
|||
|
02-02-2012, 04:25 PM
Post: #3
|
|||
|
|||
|
RE: Memory issues with small VPS
sam@apollo:~$ free -m
total used free shared buffers cached Mem: 239 209 30 0 29 112 -/+ buffers/cache: 67 172 Swap: 255 0 255 That looks OK to me. |
|||
|
02-02-2012, 04:27 PM
Post: #4
|
|||
|
|||
|
RE: Memory issues with small VPS
Yes, that looks fine, you aren't even using that much memory.
I'd suggest having a look at nginx. Kind Regards, Martin Woodhouse |
|||
|
« Next Oldest | Next Newest »
|





