I'm running debian 7 64 bit on a vps currently memory usage is showing as
free -m shows
but htop shows
ps -eF --sort -rss
top
ps -C mysqld -O rss
cat /etc/my.cnf
as far as i can see it's mostly mysql using it, any help would be appreciated.
free -m shows
Code:
total used free shared buffers cached
Mem: 4001 2409 1591 0 0 1750
-/+ buffers/cache: 658 3342
Swap: 4000 219 3780
but htop shows
Code:
Mem[||||||||||************************* 671/4001MB]
Swp[|||| 219/4000MB]
ps -eF --sort -rss
Code:
UID PID PPID C SZ RSS PSR STIME TTY TIME CMD
mysql 1883 1469 1 251046 320472 0 May27 ? 03:42:26 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/us
top
Code:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1883 mysql 20 0 980m 312m 8356 S 1.7 7.8 222:27.33 mysqld
ps -C mysqld -O rss
Code:
PID RSS S TTY TIME COMMAND
1883 320472 S ? 03:42:27 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=
cat /etc/my.cnf
Code:
[mysqld]
local-infile=0
innodb_file_per_table
as far as i can see it's mostly mysql using it, any help would be appreciated.