Results 1 to 16 of 16
Thread: VPS memory issue
-
02-21-2011, 07:19 PM #1Newbie
- Join Date
- Feb 2011
- Posts
- 17
VPS memory issue
Hi all, I'm new to the forum and I'd like to know something about memory usage of my vps.
My one has 512mb ram, I use debian lenny 5. The issue is that it is a fresh installation of debian, without any control panel, but when I finish installing (via apt-get) apache2, mysql, php 5.3 and vsftpd, the used memory is 487mb, only 24 free! The mem cached is 313. I'm speaking about a vps with no userse connected, just me!
Is it normal? Did i make any mistake?
-
02-21-2011, 07:22 PM #2Web Hosting Master
- Join Date
- Jan 2010
- Location
- San Francisco
- Posts
- 1,800
Is this a Xen VPS? If so, http://www.linuxatemyram.com/
-
02-21-2011, 07:24 PM #3Aspiring Evangelist
- Join Date
- Apr 2010
- Location
- North Carolina
- Posts
- 442
If this is a Xen VPS, don't worry about how big yor cached mem is, as long as you are not swapping. Most of your RAM is available for applications when they need it
-
02-22-2011, 08:33 AM #4Newbie
- Join Date
- Feb 2011
- Posts
- 17
Thanks for your answers.
Another little question: i read (i think in this forum) that a guy, talking about memory optimization, said he was able to setup apache, mysql, php, ftp and mail server in about 130mb of ram.
Do you have any idea on how to do this? Any links to any guides?
Thnaks
-
02-22-2011, 08:59 AM #5Junior Guru
- Join Date
- Feb 2011
- Location
- Kasultanan Ngayogyakarta
- Posts
- 249
sorry, what line you're looking for when you type free on your console?
Code:~$ free -m total used free shared buffers cached Mem: 1000 960 40 0 59 295 -/+ buffers/cache: 605 395
-
02-22-2011, 12:43 PM #6Newbie
- Join Date
- Feb 2011
- Posts
- 17
Thanks to you, I have understood how linux "consider" the ram
Another little question: i read (i think in this forum) that a guy, talking about memory optimization, said he was able to setup apache, mysql, php, ftp and mail server in about 130mb of ram.
Do you have any idea on how to do this? Any links to any guides?
-
02-22-2011, 12:46 PM #7Web Hosting Master
- Join Date
- Jan 2010
- Location
- San Francisco
- Posts
- 1,800
How much memory is your server currently using? Post the output of free -m.
-
02-22-2011, 12:50 PM #8Junior Guru
- Join Date
- Feb 2011
- Location
- Kasultanan Ngayogyakarta
- Posts
- 249
you can change the apache to nginx/lighttpd, it's more less consume memory, reconfigure the my.cnf file (or use from mysql doc sample). if i need some server's references, i should go to howtoforge.com.
-
02-22-2011, 12:54 PM #9Newbie
- Join Date
- Feb 2011
- Posts
- 17
total used free shared buffers cached
Mem: 512 480 31 0 37 311
-/+ buffers/cache: 132 380
Swap: 511 0 511
I am the unique person accessing the vps.
There are 132 used and 380 free ram, right?
I have installed apache2,mysql,php5,vsftpd. The os is debian lenny.
The only thing I've changed was to disable innodb support in mysql (addind 'skip-innodb' in my.conf)
-
02-22-2011, 12:58 PM #10Web Hosting Master
- Join Date
- Jan 2010
- Location
- San Francisco
- Posts
- 1,800
Right, it looks like your server is currently using 132 MB of memory. Isn't that right on target with what you were aiming for (~130 MB)?
-
02-22-2011, 12:58 PM #11Newbie
- Join Date
- Feb 2011
- Posts
- 17
-
02-22-2011, 01:01 PM #12Junior Guru
- Join Date
- Feb 2011
- Location
- Kasultanan Ngayogyakarta
- Posts
- 249
yup, thats right, your vps only consume 132 (idle maybe). i really forgot where's the my.cnf sample located, you should take a look at mysql directory and search "my.cnf -tiny,-small,-medium,-large,etc"
edit:
your welcome mate.
-
02-22-2011, 01:02 PM #13Newbie
- Join Date
- Feb 2011
- Posts
- 17
-
02-22-2011, 01:39 PM #14Junior Guru
- Join Date
- Feb 2011
- Location
- Kasultanan Ngayogyakarta
- Posts
- 249
maybe dovecot, or courier. i only use both of them if i configuring some server. did you read nginx catch all stuff at howtoforge? the main problem for your vps is apache + mysql. and nginx catch all + my.cnf configuration is the best way for you.
-
02-22-2011, 05:38 PM #15Newbie
- Join Date
- Feb 2011
- Posts
- 17
The problem is that I want to use joomla with a component (sh404sef) that makes url rewrite using mod_rewrite apache module. nginx and lighttpd are not supported officially, there are some workarounds but I'm not sure they work at 100%
I'm curious: is nginx ligher that lighttpd?
-
02-22-2011, 06:43 PM #16Web Hosting Master
- Join Date
- Jan 2011
- Location
- Canada
- Posts
- 938
Jadd, welcome to WHT.
You might want to take a peek at the Debian Setup Script thread
http://www.webhostingtalk.com/showthread.php?t=1025260
He's got some good tweaked settings inside mysql and an apache/php-fcgi to bring down the memory usage substantially. Since you're using Joomla, stick with apache. If you really end up needing the performance boost, you can always stick nginx in front of it.
Similar Threads
-
VPS Memory usage issue
By bcdxer in forum VPS HostingReplies: 11Last Post: 07-21-2010, 10:52 PM -
Cpanel VPS - Plenty of free memory, but 'committed' memory exceeds VPS RAM. Why?
By tnedator in forum Hosting Security and TechnologyReplies: 3Last Post: 06-12-2009, 02:56 PM -
Memory issue with my VPS
By geneda in forum VPS HostingReplies: 0Last Post: 02-05-2009, 08:13 AM -
Memory issue for cPanel VPS
By kaon in forum VPS HostingReplies: 24Last Post: 07-18-2008, 01:25 AM -
VPS JOOMLA Memory Issue?
By elproducto in forum VPS HostingReplies: 9Last Post: 04-25-2007, 09:53 AM