Server Memory Issue

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Server Memory Issue

Postby hansg » Sun Jul 24, 2016 9:35 am

I am having an issue on one of my servers wheer a certain mysql process is taking up 99% of my RAM I have attached a screenshot of my htop command below.

Image
Dual Core - 4GB DDR3 - 80GB SSD
Vicibox 9
VERSION: 2.14-751a
BUILD: 200425-0949
SSL Installed
hansg
 
Posts: 129
Joined: Wed May 11, 2016 8:56 pm

Re: Server Memory Issue

Postby hansg » Sun Jul 24, 2016 9:44 am

I know it's normal for linux to run at high memory usage but I'm not sure about all those processes being there at once.

Also should detail my server is:

Centos 6
Scratch Install ViciDial
Cloud Server - Dual Core - 2GB DDR3 - 80GB SSD
VERSION: 2.12-555a
BUILD: 160508-1948
Dual Core - 4GB DDR3 - 80GB SSD
Vicibox 9
VERSION: 2.14-751a
BUILD: 200425-0949
SSL Installed
hansg
 
Posts: 129
Joined: Wed May 11, 2016 8:56 pm

Re: Server Memory Issue

Postby lasthuman » Sun Jul 24, 2016 7:59 pm

hello,

for centos you can use sync && echo 3 > /proc/sys/vm/drop_caches

maybe try making a Cron job for that

let me know if that works :)
Omar Aparicio
skype: omar.aparicio82
https://co.linkedin.com/in/oaparicioit
Vicidial - Goautodial - Asterisk Consultant.
Colombia.
lasthuman
 
Posts: 20
Joined: Thu Jan 24, 2013 2:33 pm
Location: colombia

Re: Server Memory Issue

Postby williamconley » Sun Jul 24, 2016 9:06 pm

mysql always uses ALL memory.

since any previously run query could be re-run, and if the results have not changed the same query in memory is an order of magnitude faster and less processor-intensive to return ... the mysql system uses ALL available memory but marks "technically no longer needed, but could come in handy" query memory as "available to the system".

so while it's all been consumed, much of it is still actually available for use.

if you experience no other symptoms, ignore the usage. if you do experience symptoms, attack those and continue to ignore this. if, however, you actually have very little memory and you have an enterprise level vicidial cluster ... continue to ignore this except that you should add more memory.

if mysql actually runs out of memory, dropping caches won't help anyway.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: Majestic-12 [Bot] and 110 guests