Submitted by hyperion_am on Sat, 11/05/2016 - 11:12 Pro Licensee
Hey, I noticed that my virtualmin is displaying very high virtual + real memory usage. I checked the active processes and nothing seems to problematic except maybe apache (granted i'm still getting used to virtualmin and how it works).
All I really have running on the server is a large wordpress installation and some smaller scripts. I've tried to search the forums, but most of the issues were dealing with low mem systems. I believe I have enough mem + storage to run everything, but I cant seem to increase the amount of virtual memory or set it to use more local disk space.
Any help would be appreciated, active process logs are attached.
Thanks!
Status:
Active
Comments
Submitted by JamieCameron on Sat, 11/05/2016 - 14:37 Comment #1
Looks like Apache and MySQL are using a lot of RAM ... which is expected for a busy website.
Adding more virtual memory isn't a good idea, as it will slow down the system.
Submitted by andreychek on Sat, 11/05/2016 - 15:04 Comment #2
Also, out of curiosity, what is the output of this command:
free -m
Submitted by hyperion_am on Mon, 11/07/2016 - 10:07 Pro Licensee Comment #3
So would this amount of usage be normal then?
For some reason when I checked the stats today, it showed 84% | 34% mem to virtual without any changes on my part.
Results for the command are below.
Thanks,
https://postimg.org/image/ukffum1hl/ https://postimg.org/image/g2i8mma6h
Submitted by andreychek on Mon, 11/07/2016 - 10:16 Comment #4
I would say that it's not an abnormal amount of usage depending on the setup.
A few things I'd suggest trying --
You may want to ensure that you aren't using any PHP and Apache modules that aren't needed. For example, if you look in /etc/php.d, make sure that those are all really needed, as those can use up a decent amount of RAM.
Second, you can always re-run the first-time setup wizard (in System Settings), and configure MySQL to use a lower amount of RAM.
For example, you may want to configure it to only use up 512MB of RAM, in order to free up memory for other processes.
Submitted by hyperion_am on Fri, 11/25/2016 - 12:44 Pro Licensee Comment #5
Hey guys, quick update after a couple weeks of testing and optimizing.
@andreychek reconfiguring mysql to use cpu instead of ram really helped to take the initial load off, same with disabling extra apache modules.
I found out that one of the major problems was apache eating up resources after booting up (initial load was normal, increased to half usage within 30min). I narrowed down the problem to the default settings in the apache config files and changed values for initial servers, max servers, threads, etc. It seems to be running pretty stable now and averaging a normal amount of load throughout the day.
Thank you so much for the help!!!
Submitted by andreychek on Fri, 11/25/2016 - 13:54 Comment #6
That sounds like things are coming along, thanks for the heads up.
Feel free to let us know if you have any additional questions, or there's anything else we can help with!