Results 1 to 16 of 16
  1. #1

    Exclamation 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?

  2. #2
    Join Date
    Jan 2010
    Location
    San Francisco
    Posts
    1,800
    Is this a Xen VPS? If so, http://www.linuxatemyram.com/

  3. #3
    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

  4. #4
    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

  5. #5
    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
    you should looking at buffers/cache. it's normal *nix trying to catch all free memory.

  6. #6
    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?
    Any idea for tha above question?

  7. #7
    Join Date
    Jan 2010
    Location
    San Francisco
    Posts
    1,800
    How much memory is your server currently using? Post the output of free -m.

  8. #8
    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.

  9. #9
    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)

  10. #10
    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)?

  11. #11
    Quote Originally Posted by cpservr View Post
    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.
    howtoforge is a great resouce, thanks, I'm sure i will find useful staff.
    I would love to install lighttpd but i need apache due to some configuration issues with some firendly-url components

  12. #12
    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.

  13. #13
    Quote Originally Posted by WickedFactor View Post
    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)?
    Yes, but it misses the mail server. Anyway I think I have first to install one and then optimizing. Can you advice me the lighter mail server?

  14. #14
    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.

  15. #15
    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?

  16. #16
    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

  1. VPS Memory usage issue
    By bcdxer in forum VPS Hosting
    Replies: 11
    Last Post: 07-21-2010, 10:52 PM
  2. Cpanel VPS - Plenty of free memory, but 'committed' memory exceeds VPS RAM. Why?
    By tnedator in forum Hosting Security and Technology
    Replies: 3
    Last Post: 06-12-2009, 02:56 PM
  3. Memory issue with my VPS
    By geneda in forum VPS Hosting
    Replies: 0
    Last Post: 02-05-2009, 08:13 AM
  4. Memory issue for cPanel VPS
    By kaon in forum VPS Hosting
    Replies: 24
    Last Post: 07-18-2008, 01:25 AM
  5. VPS JOOMLA Memory Issue?
    By elproducto in forum VPS Hosting
    Replies: 9
    Last Post: 04-25-2007, 09:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •