Virtualmin dies because of low memory?

8 posts / 0 new
Last post
#1 Thu, 09/30/2010 - 09:19
groadin

Virtualmin dies because of low memory?

Hi, I have a problem I can't solve by myself - I have low memory system (384 / 768 MB burst) and sometimes Virtualmin just dies - I cannot access it by HTTP on port 10000. (Chrome says: ERR_CONNECTION_REFUSED).

I can't find any virtualmin-related process running in top. After restart it works for a while and then I cannot use Virtualmin again.

I suppose it's because of my VPS reaching limits (500-600 MB in use), am I right? I plan to upgrade the VPS plan anyway as many configuration tweaks for apache and system in general to decrease memory usage weren't much success. But I think it's not good that Virtualmin just dies, especially if DNS synchronization between two Virtualmins stops to work.

Thu, 09/30/2010 - 09:58
andreychek

Yeah, only having 384MB of guaranteed RAM may not be enough for what you're running. You may need to find a way to free up some additional RAM.

When RAM runs low, the Linux kernel begins killing processes in order to keep the server running. It's possible the Virtualmin process was killed in order to keep the other processes alive.

If you haven't already, you may want to check out this document on running Virtualmin on a low-memory system, which offers some tips on how to free up RAM:

http://www.virtualmin.com/documentation/system/low-memory

Thu, 09/30/2010 - 11:10
groadin

Thank you. I checked this document already. One more question though, how can I start Virtualmin manually from the command line after it is killed, so I don't have to restart the whole server?

Thu, 09/30/2010 - 11:14
andreychek

Howdy,

You can manually start Webmin/Virtualmin by running this command:

/etc/init.d/webmin start

Tue, 10/05/2010 - 08:14
bizmate

Hi

I have been a victim of the same problem but the VPS I am using has 2GB of memory. I have run a ps -e | grep min and these two processes are what I was seeing

2294 ? 00:00:00 miniserv.pl 2311 tty1 00:00:00 mingetty

I tried the restart without killing the processes

/etc/init.d/webmin restart Stopping Webmin server in /usr/libexec/webmin cat: /var/webmin/miniserv.pid: No such file or directory kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] Starting Webmin server in /usr/libexec/webmin Pre-loaded virtual-server/virtual-server-lib-funcs.pl in virtual_server Pre-loaded virtual-server/feature-unix.pl in virtual_server Pre-loaded virtual-server/feature-dir.pl in virtual_server Pre-loaded virtual-server/feature-mail.pl in virtual_server Pre-loaded virtual-server/feature-dns.pl in virtual_server Pre-loaded virtual-server/feature-web.pl in virtual_server Pre-loaded virtual-server/feature-webalizer.pl in virtual_server Pre-loaded virtual-server/feature-ssl.pl in virtual_server Pre-loaded virtual-server/feature-logrotate.pl in virtual_server Pre-loaded virtual-server/feature-mysql.pl in virtual_server Pre-loaded virtual-server/feature-postgres.pl in virtual_server Pre-loaded virtual-server/feature-ftp.pl in virtual_server Pre-loaded virtual-server/feature-spam.pl in virtual_server Pre-loaded virtual-server/feature-virus.pl in virtual_server Pre-loaded virtual-server/feature-webmin.pl in virtual_server Pre-loaded virtual-server/feature-virt.pl in virtual_server Pre-loaded virtual-server/feature-virt6.pl in virtual_server Pre-loaded WebminCore [root@MYHOST]

Not sure if the WebminCore was loading at this point as there was no differences in the processes and the site was still down on port 10000. I tried to kill the minserv.pl process and after it was done I tried to restart but nothing changed. I had to restart the VPS. Could you please suggest if there is something else I can do to avoid a machine restart next time?

Thanks in advance

Tue, 10/05/2010 - 10:43
andreychek

The output you saw there actually looks correct, restarting Webmin should end with the last line you have there, "Pre-loaded WebminCore".

Is anything showing up in the Webmin error log, /var/webmin/miniserv.error?

-Eric

Wed, 10/06/2010 - 09:30
bizmate

Hi Eric

thanks for your quick response. I logged on the IRC channel and discussed this with yohomer. And I was showing him this log Failed to initialize SSL connection [22/Feb/2008:14:41:11 -0500] miniserv.pl started [22/Feb/2008:14:41:11 -0500] Perl module Authen::PAM needed for PAM is not installed : Can't locate Authen/PAM.pm in @INC (@INC contains: /usr/libexec/webmin /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at (eval 7) line 1. BEGIN failed--compilation aborted at (eval 7) line 1.

I tried to yum list the libpam module but yum gets stuck for some reason when trying to check for it. At the moment the server is fine and I havent had any other problems beside yum always getting stuck with cups install ...

I think i will try with yum again later and see how it goes...

Diego

Sat, 10/12/2019 - 15:53
innovativeflare
innovativeflare's picture

You can use the command below to restart webmin

/etc/init.d/webmin start

Login to your server and go to the virtualmin side, click system settings then go down to re-run install wizard.

** you may have to restart webmin several times while going through the process.

Go through the install wizard and select lower ram settings for each service. This will allow your server to use less ram and solve your problem.

Topic locked