PDA

View Full Version : [ubuntu] Anyone using a low memory VPS?



d4m1r
February 12th, 2012, 04:38 PM
Hey guys, I just purchased a linux VPS to play around with and it has 250mb ram. Anyway, although CentOS seems to be a more popular option, I went with Ubuntu 11.04. Obviously it does not have enough memory to run a UI so I just access the root user over SSH.

Yesterday I tried setting up LAMP (Apache, PHP, and mysql) and I managed to get them all running but 256mb is just not enough, even when I turned all their settings down...Apache and PHP don't use a lot of resources but mysql was using 130mb while idle....

Does anyone have any recommendations? Is anyone else running stuff off a 256mb VPS?

2F4U
February 12th, 2012, 05:53 PM
Since you don't seem to be needing a GUI, why not try the Ubuntu Server Edition. It comes without a GUI by default and installs just what is necessary to run a server.

d4m1r
February 12th, 2012, 06:01 PM
Since you don't seem to be needing a GUI, why not try the Ubuntu Server Edition. It comes without a GUI by default and installs just what is necessary to run a server.

That's what the server is already running, 11.04 Server (no UI by default).

SeijiSensei
February 12th, 2012, 08:26 PM
Can you upgrade to 512M? While I've run versions of Linux in as little as 64M, I'd consider 256M a bit tight by modern standards.

Do you have a swap area or swap file? Run "top" and see how much swap there is. It should be at least another 256M, and you might consider allocating 512M to swap as well. You can add swap yourself independent of the VM provider by create a swap file in the local filesystem. See this howto (http://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/) for details.

d4m1r
February 12th, 2012, 08:37 PM
Thought I would update this. After 3 OS reinstalls I finally have it setup the way I like it....Apache, PHP, and a FTP server are using 20-25mbs when I am not logged into the server which is crazy low I think http://www.webhostingtalk.com/images/smilies/biggrin.gif I know ngix or lightppd would have been better as Apache isn't very efficient but its what I am used to...

It is possible to run several services off a 128mb linux VPS, some semi-popular websites like 96mb.com and lowendbox.com run off similar VPS's...

Anyway, I did give up on Mysql however....No matter how I configured it, it would still take 100-150mb of ram even when idle http://www.webhostingtalk.com/images/smilies/wallbash.gif I realized I don't have any plans to run any DB's off this box anyway so I don't need it.

Help me stress-test my new VPS by visiting my site @ www.d4m1r.tk (http://www.d4m1r.tk/)

robgr85
February 13th, 2012, 11:47 AM
For static files/pages it should work fine - you can disable most of apache modules to decrease apache resources usage.

But such a low amounts of RAM sounds extreme for any dynamic websites and traffic a above few users at a time. Apache will probably eat most of Your free memory fast when running dynamic pages under decent load.

d4m1r
February 13th, 2012, 03:52 PM
Actually, it seems like some semi-popular websites run off of similar spec VPS' if not lower spec (96mb ram). Namely 96mb.com and lowendbox.com

Some run apache set to use very low resources and many modules disabled (that I would have disabled anyway) while others use ngix or lighttp, but it is possible :)

Cookieh
February 13th, 2012, 03:56 PM
My friend had the same problem, but then he decided to run it at 512 mb and later went back to 256 mb as he just fiddled about with Ubuntu Server Edition. Suggest you to try it out and play around with it..

d4m1r
February 29th, 2012, 04:18 AM
UPDATE: I bought a higher end package so I no longer need my 128MB system. The account still has 11 months paid for so PM me if you want it.