+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Real Memory Usage is always high *Do I need to Upgrade?*

  1. #1
    c740015 is offline x10 Sophmore c740015 is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    111

    Real Memory Usage is always high *Do I need to Upgrade?*

    Hi..

    I have been using the VPS for a few days now and noticed that the Real Memory Usage is always High..

    Real memory1024 MB total, 810.94 MB used

    When there is about 20 users online it will steady at just under 700...

    But I feel thats still to high...

    Is there a problem with my configuration..

    I have my apache config setup like this


    StartServers 5
    MinSpareServers 5
    MaxSpareServers 10
    MaxClients 150
    MaxRequestsPerChild 0


    Also A few times now the website Has cut out with memory usage...
    which wont allow me into Webmin So I have to reboot the server.

    Do I need to upgrade..... If so I wanna upgrade now..
    How do I go about this?
    How long does it take?

    Thanks

  2. #2
    carl6969's Avatar
    carl6969 is offline Community Support Team carl6969 has a brilliant futurecarl6969 has a brilliant futurecarl6969 has a brilliant future
    Join Date
    May 2009
    Location
    Calf Creek TX
    Posts
    6,862

    Re: Real Memory Usage is always high *Do I need to Upgrade?*

    I have noticed that periodically, and for no apparent reason, running processes on my VPS will spike up causing memory usage to jump way up. When this happens I reboot the server and everything settles down to normal for a week weeks.
    If you are consistently having memory usage issues and you don't have any major configuration problems it may be time to upgrade. However, it appears that I have the same plan that you do and I have never exceeded 60 percent memory usage even though I am hosting several domains with many large databases, many email accounts, and lot's of traffic.

    I upgraded my VPS very shortly after purchasing it to obtain more memory. If you decide to do this just open a support ticket stating that you want to upgrade your plan and they will take care of it for you. In my case the upgrade was completed almost instantly, but your mileage may vary .

    Very happy to see that your VPS is up and running. I know you had some difficulties for awhile.


  3. #3
    TechAsh's Avatar
    TechAsh is offline Retired TechAsh is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    UK
    Posts
    5,853

    Re: Real Memory Usage is always high *Do I need to Upgrade?*

    There are a number of things that you can do to reduce memory usage. Stopping programs that you do not need being the biggest, but disabling unneeded Apache mods will also help.

    You might want to try this:
    StartServers 1
    MinSpareServers 1
    MaxSpareServers 5
    MaxClients 150
    MaxRequestsPerChild 500

    Also if you do not need innodb support in MySQL you could disable it by putting "skip-innodb" in the "[mysqld]" section of the mysql config file. This will usually save a fair bit of memory.
    Useful Links:
    Terms of Service | Server News | Buy a Domain
    Free Domains: co.cc | Dot.tk -- Free File Storage: Dropbox -- Website Monitoring: Service Uptime


    My Websites:
    Earthtime Games & TechAsh's Blog

  4. #4
    c740015 is offline x10 Sophmore c740015 is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    111

    Re: Real Memory Usage is always high *Do I need to Upgrade?*

    well right now is peak times.. And my memory has maxed out at 100% server just shut down on me..

    I think the configuration is bad.. I only have 1 forum running off it and a gallery.. with 2 mysql databases..
    The gallery holds very little its lke 4kb an image with 20 per page..
    I have 46 users online now and the memory is just hitting the roof..

    Help would be amazing if its my configuration then its needs redoing or upgrading?
    You said you have alot of activity.. with a few forums and the same package wow..
    I must be way wrongly configured.

    well anyway its cutting out now with 46 users online.. So I either need to upgrade now.. Or Config it fast lol

    Help would be amazing Thanks..

    @ TechAsh where is that setting to reduce I need a lil memory.. Lol.. Its maxing on 100% all the time now.
    Last edited by c740015; 04-16-2010 at 04:45 PM.

  5. #5
    TechAsh's Avatar
    TechAsh is offline Retired TechAsh is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    UK
    Posts
    5,853

    Re: Real Memory Usage is always high *Do I need to Upgrade?*

    The MySQL config file will probably be /etc/my.cnf
    If definitely seems like you have something setup wrong.
    I can run a fairly large number of sites (Not many visitors though) with Apache PHP and MySQL, BIND nameserver, mail server with spam filter and things like Apache's mod_svn and trac. My server only uses 250MB of memory :-P
    Useful Links:
    Terms of Service | Server News | Buy a Domain
    Free Domains: co.cc | Dot.tk -- Free File Storage: Dropbox -- Website Monitoring: Service Uptime


    My Websites:
    Earthtime Games & TechAsh's Blog

  6. #6
    c740015 is offline x10 Sophmore c740015 is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    111

    Re: Real Memory Usage is always high *Do I need to Upgrade?*

    @ TechAsh I changed my config.. After doing some research on google.

    StartServers 5
    MinSpareServers 5
    MaxSpareServers 10
    MaxClients 150
    MaxRequestsPerChild 0

    I used this setting..

    I know you put 400 and that was supposed to be the cause for apache not working...
    Well I put it back to 0 and it worked also changed then max clients servers and what not..
    Based off what the information gave me from the website i looked at.

    But yeah.. As soon as my users online hits 40 I'm doomed lol..
    well on shared hosting it used to cut out on 40 aswell thats why youl see my max members online at anyone time at 44
    well 46 today as more managed to get on..

    This is so hard.. lol...

  7. #7
    TechAsh's Avatar
    TechAsh is offline Retired TechAsh is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    UK
    Posts
    5,853

    Re: Real Memory Usage is always high *Do I need to Upgrade?*

    Optimizing settings is a really hard thing to do, and I can't really tell you what settings to use as it really depends on your sites etc. The settings in my previous posts are "what works for me", and like I said my server doesn't use more than 250MB of memory.
    The best suggestion I can give is to read up on what the settings do, then have a play with them until you find something that you are satisfied with.
    Useful Links:
    Terms of Service | Server News | Buy a Domain
    Free Domains: co.cc | Dot.tk -- Free File Storage: Dropbox -- Website Monitoring: Service Uptime


    My Websites:
    Earthtime Games & TechAsh's Blog

  8. #8
    c740015 is offline x10 Sophmore c740015 is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    111

    Re: Real Memory Usage is always high *Do I need to Upgrade?*

    OMG no way..

    Well my is constantly streaming ajax.. Maybe that is the problem with the shoutbox and notifications I use for new posts popups and PM'S..
    Well I just disabled IT..
    And complete removed it from my php scripts.

    Which was used for popups to show new posts and PM's
    But its disabled and uninstalled completely now.
    Its some times annoying anyway lol..

    So that isnt used any more...

    Checked my Ram.. Its still approaching 700 lol.. with the ammont of users online It doesnt seem like its changed much..
    But it seems like a little improvment.. or non at all I aint sure.. I cant tell lol..
    with 26 users now ad they probably think its whack lol its at 600 and 800
    So I can see its helped a little.

    It was at 40+ users the memory throws a fit and comes up with memory allocation Fatal Error. :'(

    but its allowing them on lol.

    Hmm yeah Tech Ash I changed My settings to this

    StartServers 1
    MinSpareServers 1
    MaxSpareServers 5
    MaxClients 150
    MaxRequestsPerChild 0

    It seems to of dropped a little on the ram not to about 100mb less.
    Which is a bonus but also the users have dropped by 15 lol..

    But yeah I not sure how the MaxRequestsPerChild works but I just set it back to 0 and all the website is working well..

    Ash when there was a problem with the website not even working it was on 0..

    But I changed it back to 0 and its working fine now???? Strange.. Is there a difference between using 500 or zero?
    From what I read it can lead to memory leakedge with a value otherthan 0 in there not sure.
    Also did you change anything else because it works on 0 lol.

    So overall with the members online to memory ratio with my setting set as

    StartServers 1
    MinSpareServers 1
    MaxSpareServers 5
    MaxClients 150
    MaxRequestsPerChild 0

    there is 27 members online and my memory is
    Real memory 1024 MB total, 622.14 MB used
    With Enotify uninstalled.

  9. #9
    c740015 is offline x10 Sophmore c740015 is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    111

    Re: Real Memory Usage is always high *Do I need to Upgrade?*

    wow used the skip thing... That suped me up good style Im inbetween 450 and 600 now.. Thats a huge load off..

    There is only 28 members online now though.. but its lower than b4 when 28 members was online

    I have never seen 400 before.. I think when I installed it before adding the databases it was in like 350..
    God knows how you get it on 250 thats amazing Lmfao...
    If Only! LMFAOO

    also it was located in /etc/mysql/my.cnf :D

    Thanks..

    I'm learning alot.. Also thanks to you guys for all your support the community is surviving and people are staying happy
    Last edited by c740015; 04-16-2010 at 06:32 PM.

  10. #10
    masshuu's Avatar
    masshuu is offline Head of the Geese masshuu has a spectacular aura about
    Join Date
    Oct 2007
    Location
    Las Colinas, Tx
    Posts
    2,262

    Re: Real Memory Usage is always high *Do I need to Upgrade?*

    there are other ways to kill mem usage.
    since i use enoms nameservers, i don't need dns services, so that lets me turn bind off(which frees a good chunk of ram)
    Just leading the flock.
    Livewire
    Masshuu ------ carl6969
    descalzo ------------------- Smith6612
    Bryon--------------------------------- Corey
    If you find any post helpful or useful, duck
    \ / This for that post and rep it up.

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. High CPU usage?
    By winnings in forum Free Hosting
    Replies: 1
    Last Post: 02-10-2010, 08:30 PM
  2. Account suspended - high cpu, memory, process
    By gretagarland in forum Free Hosting
    Replies: 3
    Last Post: 01-21-2010, 06:54 PM
  3. Oh, why my CPU usage is going so high
    By ChatIndia in forum Off Topic
    Replies: 27
    Last Post: 01-07-2010, 08:45 PM
  4. High CPU and memory usage - suspension
    By aguilalibre in forum Free Hosting
    Replies: 1
    Last Post: 12-08-2009, 02:41 PM
  5. High Cpu Usage???
    By evolution99 in forum Free Hosting
    Replies: 1
    Last Post: 06-24-2009, 06:49 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
x10hosting free hosting for the masses
dedicated servers