also ich habe einen V-Server bei Strato auf dem Suse Linux 9.3 läuft.
Leider bekomme ich ständig Probleme mit meiner MySQL-Datenbank, weil der RAM angeblich nicht ausreicht.
Ich habe dann direkt auch mal an Strato geschrieben, weil ich meinte, dass mein System gar nicht so viel RAM frisst und ich habe dann folgendes Script vom Supportteam bekommen:
Code: Select all
#!/bin/bash
x=$(cat /proc/user_beancounters |grep privvmpages|awk 'BEGIN{ cur=max=lim=0; }{ cur+=$2;
max+=$3;lim+=$5 } END {print cur*4/1024,max*4/1024,lim*4/1024}')
zugesichert=$(cat /proc/user_beancounters |grep oomguarpages|awk 'BEGIN{ cur=max=lim=0; }{ lim+=$4 } END { print lim*4/1024}')
momentan=$(echo $x| awk '{print $1}')
maximalgenutzt=$(echo $x| awk '{print $2}') maximalnutzbar=$(echo $x| awk '{print $3}')
echo "VPS Speichernutzung:"
echo "Momentan genutzt: $momentan MB"
echo "Zugesichert: $zugesichert MB"
echo "Maximal nutzbar: $maximalnutzbar MB"
Code: Select all
VPS Speichernutzung:
Momentan genutzt: 335.477 MB
Zugesichert: 259.375 MB
Maximal nutzbar: 791.281 MB
Und laut Vetrag habe ich auch maximal 128 MB zugesichert und keine 259,375 MB!
Da ich kaum denke, dass Strato mir irgendwas an Leistung schenken würde, denke ich dass evtl. das Script nicht so ganz das richtige ausliest, oder wie sieht ihr das?
Aber kommen wir doch mal wieder zum Hauptproblem mit der RAM-Ausnutzung...
Ich habe festgestellt, dass da so ziemlich viel gleichnamige Prozesse laufen, siehe hier(ps -aux):
Code: Select all
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 604 236 ? Ss Jul20 0:01 init
root 31717 0.0 0.0 1456 640 ? Ss Jul20 0:01 /sbin/syslogd -
root 31723 0.0 0.0 3984 1044 ? Ss Jul20 0:00 /usr/sbin/sasla
root 31724 0.0 0.0 3984 1040 ? S Jul20 0:00 /usr/sbin/sasla
root 31768 0.0 0.1 4792 1836 ? Ss Jul20 0:24 /usr/sbin/sshd
root 31774 0.0 0.0 2076 932 ? Ss Jul20 0:00 /usr/sbin/xinet
named 31821 0.0 0.1 12004 2932 ? Ss Jul20 0:00 /usr/sbin/named
named 31822 0.0 0.1 12004 2932 ? S Jul20 0:00 /usr/sbin/named
named 31823 0.0 0.1 12004 2932 ? S Jul20 0:00 /usr/sbin/named
named 31824 0.0 0.1 12004 2932 ? S Jul20 0:00 /usr/sbin/named
named 31825 0.0 0.1 12004 2932 ? S Jul20 0:00 /usr/sbin/named
root 31837 0.0 0.0 2372 1136 ? S Jul20 0:00 /bin/sh /usr/bi
mysql 31871 0.0 1.4 60512 22540 ? S Jul20 0:00 /usr/sbin/mysql
mysql 31874 0.0 1.4 60512 22540 ? S Jul20 0:00 /usr/sbin/mysql
mysql 31875 0.0 1.4 60512 22540 ? S Jul20 0:00 /usr/sbin/mysql
mysql 31876 0.0 1.4 60512 22540 ? S Jul20 0:00 /usr/sbin/mysql
mysql 31877 0.0 1.4 60512 22540 ? S Jul20 0:00 /usr/sbin/mysql
mysql 31878 0.0 1.4 60512 22540 ? S Jul20 0:00 /usr/sbin/mysql
mysql 31887 0.0 1.4 60512 22540 ? S Jul20 0:00 /usr/sbin/mysql
mysql 31888 0.0 1.4 60512 22540 ? S Jul20 0:00 /usr/sbin/mysql
mysql 31889 0.0 1.4 60512 22540 ? S Jul20 0:00 /usr/sbin/mysql
mysql 31890 0.0 1.4 60512 22540 ? S Jul20 0:00 /usr/sbin/mysql
postgres 31952 0.0 0.2 18036 3540 ? S Jul20 0:00 /usr/bin/postma
postgres 31955 0.0 0.1 18036 2460 ? S Jul20 0:00 postgres: write
postgres 31956 0.0 0.1 8952 2572 ? S Jul20 0:00 postgres: stats
postgres 31957 0.0 0.1 8080 2684 ? S Jul20 0:00 postgres: stats
popuser 31969 0.0 1.2 24652 18964 ? Ss Jul20 0:00 /usr/sbin/spamd
popuser 31971 0.0 1.4 24652 22160 ? Ss Jul20 0:00 /usr/sbin/spamd
popuser 31972 0.0 1.3 24652 20932 ? S Jul20 0:00 spamd child
popuser 31973 0.0 1.1 24652 17088 ? S Jul20 0:00 spamd child
popuser 31974 0.0 1.1 24652 17088 ? S Jul20 0:00 spamd child
popuser 31975 0.0 1.1 24652 17088 ? S Jul20 0:00 spamd child
popuser 31976 0.0 1.1 24652 17088 ? S Jul20 0:00 spamd child
popuser 31977 0.0 1.0 24652 16720 ? S Jul20 0:00 spamd child
popuser 31978 0.0 1.0 24652 16696 ? S Jul20 0:00 spamd child
popuser 31979 0.0 1.0 24652 16696 ? S Jul20 0:00 spamd child
popuser 31980 0.0 1.0 24652 16696 ? S Jul20 0:00 spamd child
popuser 31981 0.0 1.0 24652 16696 ? S Jul20 0:00 spamd child
root 32011 0.0 0.8 30284 13124 ? Ss Jul20 0:02 /usr/sbin/httpd
root 32018 0.0 0.6 29392 10828 ? S Jul20 0:00 /usr/sbin/httpd
root 32032 0.0 0.3 48012 5272 ? Ss Jul20 0:00 /usr/local/psa/
root 32096 0.0 0.0 1668 752 ? Ss Jul20 0:00 /usr/sbin/cron
mailman 32117 0.0 0.1 8552 3036 ? Ss Jul20 0:00 /usr/bin/python
mailman 32118 0.0 0.3 8200 5484 ? S Jul20 0:00 /usr/bin/python
mailman 32119 0.0 0.3 8224 5296 ? S Jul20 0:00 /usr/bin/python
mailman 32123 0.0 0.1 8216 2688 ? S Jul20 0:00 /usr/bin/python
mailman 32124 0.0 0.1 8192 2696 ? S Jul20 0:00 /usr/bin/python
mailman 32125 0.0 0.1 8208 2696 ? S Jul20 0:00 /usr/bin/python
mailman 32126 0.0 0.2 8872 4420 ? S Jul20 0:00 /usr/bin/python
mailman 32127 0.0 0.2 8532 4084 ? S Jul20 0:00 /usr/bin/python
mailman 32128 0.0 0.1 8148 2704 ? S Jul20 0:00 /usr/bin/python
drweb 32133 0.0 0.7 14072 12004 ? Ss Jul20 2:12 /opt/drweb/drwe
ts 11254 0.0 0.1 19892 1940 ? SN Jul20 0:01 ./server_linux
ts 11255 0.0 0.1 19892 1940 ? S Jul20 0:00 ./server_linux
ts 11256 0.0 0.1 19892 1940 ? S Jul20 0:00 ./server_linux
ts 11257 0.0 0.1 19892 1940 ? S Jul20 0:02 ./server_linux
ts 11258 0.0 0.1 19892 1940 ? S Jul20 0:03 ./server_linux
ts 11259 0.0 0.1 19892 1940 ? S Jul20 0:00 ./server_linux
ts 11260 0.0 0.1 19892 1940 ? S Jul20 0:00 ./server_linux
ts 11261 0.0 0.1 19892 1940 ? S Jul20 0:00 ./server_linux
ts 11262 0.0 0.1 19892 1940 ? S Jul20 0:00 ./server_linux
wwwrun 9461 0.0 1.4 38616 21796 ? S Jul23 0:15 /usr/sbin/httpd
wwwrun 9575 0.0 1.2 35972 18920 ? S Jul23 0:07 /usr/sbin/httpd
wwwrun 18243 0.0 1.0 31872 16088 ? S 13:35 0:04 /usr/sbin/httpd
wwwrun 18244 0.0 0.9 31132 15272 ? S 13:35 0:06 /usr/sbin/httpd
psaadm 18705 0.0 1.1 52088 17308 ? S 13:39 0:01 /usr/local/psa/
psaadm 19009 0.0 0.8 50132 12812 ? S 13:40 0:01 /usr/local/psa/
wwwrun 22026 0.0 1.1 33808 18032 ? S 14:18 0:04 /usr/sbin/httpd
wwwrun 25738 0.0 1.0 31888 16092 ? S 15:38 0:06 /usr/sbin/httpd
wwwrun 29228 0.0 0.9 31008 15076 ? S 17:25 0:02 /usr/sbin/httpd
wwwrun 29592 0.0 0.9 31040 15180 ? S 17:36 0:02 /usr/sbin/httpd
qmails 31393 0.0 0.0 1440 392 ? S 18:01 0:00 qmail-send
qmaill 31395 0.0 0.0 1396 452 ? S 18:01 0:00 splogger qmail
root 31396 0.0 0.0 1396 336 ? S 18:01 0:00 qmail-lspawn ./
qmailr 31397 0.0 0.0 1392 364 ? S 18:01 0:00 qmail-rspawn
qmailq 31398 0.0 0.0 1384 324 ? S 18:01 0:00 qmail-clean
wwwrun 878 0.0 0.9 31016 14972 ? S 18:54 0:00 /usr/sbin/httpd
wwwrun 879 0.0 1.0 31848 15508 ? S 18:54 0:00 /usr/sbin/httpd
psaadm 4629 0.0 0.8 50156 13772 ? S 20:13 0:00 /usr/local/psa/
root 5401 0.8 0.1 7996 2500 ? Ss 20:23 0:00 sshd: root@pts/
root 5404 1.0 0.1 3076 1848 pts/1 Ss 20:23 0:00 -bash
root 5457 0.0 0.0 2584 880 pts/1 R+ 20:23 0:00 ps -aux
Und es laufen noch mehrere gleichnamige Prozesse!
Ist das alles normal oder kann man da was machen?
Und wie sieht es mit dem RAM und Strato bezüglich dem V-Server aus?
Fireball22[/code]