Results 1 to 21 of 21
Thread: Will 256mb be enough?
-
06-14-2007, 12:52 AM #1Junior Guru Wannabe
- Join Date
- Jul 2004
- Location
- Australia
- Posts
- 42
Will 256mb be enough?
Hi,
I'm considering VPS hosting for a web application, which is a typical PHP/MySQL web app, but with some extra code modules for XML parsing and full-text search etc. These modules will surely have an overhead (as compared to a simple data-driven web app) once the web app starts handling concurrent users.
Looking at various VPS plans out there, I was wondering if 256mb RAM will suffice to cater a web application described above. Besides this web app, I do not plan to run anything else on the server (so server processes will be quite restricted). But I certainly don't want the server to crawl down (due to CPU and RAM usage). Thinking about it, 256mb "sounds" too small a number for a server, but hey I'm new to VPS anyways
Please share your insight. Thanks for your help guys!
--
More about the web app: Technically, the website I plan to launch is a typical multi-user PHP/MySQL web application, but one particular PHP script (a search engine script which uses complex database queries and stored procedures) will be invoked very frequently (can't predict how frequently as yet) for database processing (keyword search) and returning some results back to the client.
-
06-14-2007, 01:02 AM #2Web Hosting Master
- Join Date
- Jun 2003
- Location
- UK
- Posts
- 6,616
Its hard to give a definite answer but from the sounds of it as long as MySQL is optimized then it should run ok. Services do take a surprisingly small amount of RAM but as you said it will be your script overhead that could potentially cause issue.
You could of course try it and see how it looks. With a VPS you could just upgrade with zero downtime so it wouldn't be a major issue if you find you needed more RAM
If you are going VPS make sure you go Xen or an SLM OpenVZ/Virtuozzo provider as that will help you get a bit more bang for your buck due to the way the system reports RAM. Also remember on OpenVZ/Virtuozzo you will get burst RAM so whilst thats never guarenteed for testing you can see if you creep into and make a choice from there
RusRuss Foster - Industry Curmudgeon
Freelance Sysadmin for Hire - email vaserv@gmail.com
-
06-14-2007, 01:02 AM #3Web Hosting Master
- Join Date
- Oct 2006
- Location
- New York, NY
- Posts
- 1,041
When you say modules, do you mean extra modules for the web server, modules for PHP itself or just PHP functions bunched together in a subroutine?
It sounds like your just running a regular LAMP webapp, and with no control panel you should be fine with 256 MB of memory. It gets tricky when you start adding things like cPanel or Plesk onto VPS's with less than 512 MB of guaranteed memory.
The good thing about the VPS is that you can increase your RAM ala carte (if your chosen provider supports that, and most do) instantly, so if you find that your site has exploded in popularity overnight you can get an instant resource upgrade.
-
06-14-2007, 01:12 AM #4Junior Guru Wannabe
- Join Date
- Jul 2004
- Location
- Australia
- Posts
- 42
Thanks for the info, Rus!
I'm not sure if there are any VPS hosts who "specialize" in MySQL optimization as part of their managed service. So, I'll have to take things in my hand, which I thing I'm quite comfortable with
Earlier, I was deciding between VPS and semi-dedicated (low density shared), but I'm now quite sure that VPS is the way to go, because of the custom optimizations (mainly around the database and object caching) I might need.
-
06-14-2007, 01:18 AM #5Junior Guru Wannabe
- Join Date
- Jul 2004
- Location
- Australia
- Posts
- 42
Thanks again for your reply Sean!
By extra code modules I mean, some extra PHP compiled extensions as well as custom code libraries (PHP scripts). That should be easy to handle for any VPS host though.
I'm aware that without a control panel, server resources will be saved, but since my Linux admin skills are novice, I'm not sure if I'll be able to manage the server otherwise.
-
06-14-2007, 01:45 AM #6Web Hosting Master
- Join Date
- Oct 2006
- Location
- New York, NY
- Posts
- 1,041
Libraries, that's what I meant when I said "functions bunched together in a subroutine". It's been a long day.
I'm aware that without a control panel, server resources will be saved, but since my Linux admin skills are novice, I'm not sure if I'll be able to manage the server otherwise.
MySQL optimization should not be too much of a big deal either, as it basically just involves tweaking the /etc/my.cnf file.
-
06-14-2007, 01:52 AM #7Junior Guru Wannabe
- Join Date
- Jul 2004
- Location
- Australia
- Posts
- 42
How's lxAdmin btw?
-
06-14-2007, 03:15 AM #8Web Hosting Master
- Join Date
- Jan 2004
- Location
- Boise, ID
- Posts
- 2,453
If you go with a decent provider who is willing, and can, upgrade your plan as needed that you should have no problem "Starting" at 256MB of RAM.
I don't see the issue as much as whether it will run at 256MB of RAM, as we all know it can "Probably" do that, but whether the provider can scale the VPS for you to more RAM if the site grows to the point of needing more ram.
-
06-14-2007, 03:57 AM #9New Member
- Join Date
- Jun 2007
- Posts
- 1
Well,
256 MB is not all you get...
You should be having some burstable RAM too...
If you have RAM burstable to 1 GB ... then it should work just fine.
though i personally suggest atleast 512 MB of dedicated RAM.
-
06-14-2007, 04:22 AM #10Disabled
- Join Date
- Jun 2007
- Location
- -
- Posts
- 19
256MB RAM will be able to run I guess many basic applications. Nothing to RAM hungry.
-
06-14-2007, 09:02 AM #11Web Hosting Guru
- Join Date
- Feb 2007
- Posts
- 304
Yea, 256 should be fine.
-
06-14-2007, 10:35 AM #12Junior Guru Wannabe
- Join Date
- Jul 2004
- Location
- Australia
- Posts
- 42
Thanks guys!
I reckon I'll should go with 256mb or 384mb, and then upgrade as needed.
-
06-14-2007, 11:53 AM #13WebHosting Master
- Join Date
- Dec 2006
- Posts
- 4,151
One of the highlights of VPS plans are that they are usually very flexible.
Start with 256 and upgrade as needed.
-
06-14-2007, 08:19 PM #14Aspiring Evangelist
- Join Date
- Apr 2007
- Location
- New York
- Posts
- 424
Depending on if which control pannel you are using. If you use cPanel or something like that, you might want to have a little more
-
06-15-2007, 12:18 AM #15Web Hosting Guru
- Join Date
- Jun 2007
- Location
- Jordan
- Posts
- 324
256 with Cpanel not recommended ...
i have used it before and i upgraded to 512 ...
but now 1 GB ...
Cheers !..Learn whatever you read ...
Some day you well tech ...
E-Learning .
-
06-15-2007, 08:30 AM #16Web Hosting Master
- Join Date
- Oct 2003
- Location
- UK
- Posts
- 3,590
256mb should be fine, however if you do ever find its running slow, you could ask your provider to upgrade you.
█ The Hosting Heroes Ltd - over 20 years in the UK hosting industry.
█ Website Hosting | Reseller Hosting | Cloud VPS Servers | Dedicated Servers | VPS Reseller for WHMCS
www.thehostingheroes.com
-
06-15-2007, 08:47 AM #17Junior Guru
- Join Date
- Aug 2001
- Location
- Scotland
- Posts
- 224
-
06-15-2007, 09:48 AM #18Web Hosting Guru
- Join Date
- Feb 2007
- Posts
- 304
-
06-15-2007, 09:53 AM #19Web Hosting Guru
- Join Date
- Jun 2007
- Location
- Jordan
- Posts
- 324
i was used my portal plus a huge vb ( 75.000 ) users ...
with some sites and paper .!!
it's should have 512 at least ..Learn whatever you read ...
Some day you well tech ...
E-Learning .
-
06-15-2007, 05:10 PM #20Newbie
- Join Date
- Apr 2007
- Posts
- 10
I wouldn't recommend anything under 512.. but that is just me.
-
06-15-2007, 06:48 PM #21Web Hosting Master
- Join Date
- Nov 2005
- Location
- Minneapolis, MN
- Posts
- 1,648
It really depends on the memory accounting mechanism in place; not all 256MB VPS plans are equal.
Eric Spaeth
Enterprise Network Engineer :: Hosting Hobbyist :: Master of Procrastination
"The really cool thing about facts is they remain true regardless of who states them."