often can't login to :10000

To free more memory I switch off collectinfo.pl . Another major user is miniserv.pl . Is there a way to lower that?

I have right now miniserv.pl run’s 4 times:

[code:1]# top
top - 03:42:24 up 8 days, 5:48, 1 user, load average: 0.01, 0.07, 0.10
Tasks: 21 total, 1 running, 20 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0% us, 0.0% sy, 0.0% ni, 100.0% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 292864k total, 240648k used, 52216k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 0k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5691 root 16 0 2116 1020 828 R 0 0.3 0:00.02 top
1 root 16 0 1980 656 568 S 0 0.2 0:00.23 init
13884 root 16 0 1644 572 480 S 0 0.2 0:10.68 syslogd
13940 root 15 0 6960 1048 668 S 0 0.4 0:00.18 sshd
13952 root 22 0 2636 860 696 S 0 0.3 0:00.00 xinetd
14054 mysql 15 0 135m 21m 4896 S 0 7.6 0:25.34 mysqld
9491 root 16 0 3204 1108 576 S 0 0.4 0:02.09 crond
14290 root 16 0 33912 13m 8000 S 0 4.6 0:00.68 httpd
14292 apache 16 0 22096 3300 484 S 0 1.1 0:00.04 httpd
17705 apache 15 0 38252 13m 4528 S 0 4.9 0:00.58 httpd
1710 apache 16 0 38264 14m 4552 S 0 4.9 0:01.21 httpd
5743 root 16 0 10032 2912 2268 S 0 1.0 0:02.43 sshd
5753 root 15 0 2512 1412 1128 S 0 0.5 0:00.15 bash
26066 apache 16 0 38248 13m 4388 S 0 4.8 0:00.25 httpd
1970 root 16 0 11460 6304 1796 S 0 2.2 0:00.02 miniserv.pl
3381 root 22 0 94432 87m 2224 S 0 30.6 0:03.54 miniserv.pl
3432 root 19 0 2368 1060 928 S 0 0.4 0:00.01 sh
3433 root 16 0 8452 2512 2080 S 0 0.9 0:00.02 rpmq
5235 root 18 0 100m 95m 2248 S 0 33.5 0:04.06 miniserv.pl
5303 root 16 0 8452 2512 2080 S 0 0.9 0:00.03 rpmq
5688 root 16 0 11172 5780 1544 S 0 2.0 0:00.00 miniserv.pl[/code:1]

Sorry, I overlooked that… I attached the output of ps auxw to avoid horizontal scrolling…

The miniserv.conf is still there 4 times… [file name=ps.txt size=2879]http://www.virtualmin.com/components/com_fireboard/uploaded/files/ps.txt[/file]

Howdy,

You don’t have any swap enabled… so you have a rather small amount of RAM to start with (290MB it looks like) – and no swap to fall back on when that runs out.

ATM, you have 50MB of RAM available.

What I would do is work with your provider to get more swap space enabled on your box, which should go a long ways towards solving the issues you’re seeing.

However, you might also try implementing some of the goodies in this document for running Virtualmin on low-memory systems:

http://www.virtualmin.com/component/option,com_openwiki/Itemid,48/id,virtualmin_on_low_memory_systems/

After I switched off collectinfo.pl and restarted the VPS I am at around 60Mb memory use - and no service died last night.

I will talk to my host about swap, not sure they offer it though.

Any Linux box can have swap enabled. If someone tells you otherwise, don’t use them for advise :slight_smile:

However, hopefully your VPS provider can suggest the best way to do that in your case, as I’m not familiar with their setup. There may be a partition already setup for handling swap, or if not you might need to use a swap file rather than a swap partition.

Either way, they should be able to help you out there.
-Eric

and just in case, this is named.conf

[code:1]options {
directory "/etc";
pid-file "/var/run/named/named.pid";
allow-recursion { localnets; 127.0.0.1; };
};

zone "." {
type hint;
file "/etc/db.cache";
};

zone "domain1.com" {
type master;
file "/var/named/domain1.com.hosts";
allow-transfer {
127.0.0.1;
localnets;
};
};
zone "domain2.com.hk" {
type master;
file "/var/named/domain2.com.hk.hosts";
allow-transfer {
127.0.0.1;
localnets;
};
};
zone "domain3.com" {
type master;
file "/var/named/domain3.com.hosts";
allow-transfer {
127.0.0.1;
localnets;
};
};
zone "domain4.com" {
type master;
file "/var/named/domain4.com.hosts";
allow-transfer {
127.0.0.1;
localnets;
};
};
zone "domain5.com" {
type master;
file "/var/named/domain5.com.hosts";
allow-transfer {
127.0.0.1;
localnets;
};
};[/code:1]