High memory usage

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

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.

Also, out of curiosity, what is the output of this command:

free -m

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.

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!!!

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!