Current time: 05-06-2024, 04:36 AM Hello There, Guest! (LoginRegister)


Post Reply 
Server crashes every day
Author Message
dronox Offline
Newbie
*

Posts: 6
Joined: Oct 2009
Reputation: 0
Post: #1
Server crashes every day
Hi all,

I do not know why - but my server crashes nearly every day - or more frequently. I got the default configuration of ISPCP - except the PHP-configuration to kill the old processes (so that the RAM won't reserved to much).

Well, I got Debian 5.0 running on my VServer with 384MB RAM. I deinstalled the bind9, amavisd-new and spamassassin - the SMTP is running with authentication, so there can't be a problem.

Few hours after reboot of the VServer, I cannot login via SSH, via IMAP etc. - only Apache seems to work.

I don't know what to look for in the forum - so I hope someone could give me some links to solve the problem.

kind regards
dustin
10-26-2009 07:07 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: Server crashes every day
Your server is most probably running out of memory, thus swapping all the time and becoming nearly unusable. Have you tried applying the tweaks about "running on low memory systems" from our docs? It should be the absolutely first thing to try, along with discovering where is your ram being consumed...
10-26-2009 09:32 PM
Visit this user's website Find all posts by this user Quote this message in a reply
dronox Offline
Newbie
*

Posts: 6
Joined: Oct 2009
Reputation: 0
Post: #3
RE: Server crashes every day
Thanks for your fast reply.

I followed the steps to minimize the amount of RAM.
But does not seem to solve the problem. I initiated a cronjob every minute which posts me the free RAM (cat /proc/meminfo |grep MemFree) - and the free memory is always in the size of 280-300MB....
Here's an extract:


Di 27. Okt 13:25:01 CET 2009
MemFree: 284728 kB
Di 27. Okt 13:26:01 CET 2009
Di 27. Okt 13:28:01 CET 2009

For 13:26:01 I got a mail from crond with this content:
/home/logmeminfo: fork: Nicht genügend Hauptspeicher verfügbar

But as you can see, there is enough memory!

Do you know some other reasons?

Regards
Dustin
10-27-2009 10:47 PM
Find all posts by this user Quote this message in a reply
FidiBus Offline
Junior Member
*

Posts: 21
Joined: Aug 2009
Reputation: 0
Post: #4
RE: Server crashes every day
what about swap...is it used?

install "htop" to see/sort better wich processes are running

what kind of sites you´re running?
10-27-2009 11:04 PM
Find all posts by this user Quote this message in a reply
dronox Offline
Newbie
*

Posts: 6
Joined: Oct 2009
Reputation: 0
Post: #5
RE: Server crashes every day
I do not have a swap partition in this vServer.

Well, htop sais that 203MB/534MB are used (I'm wondering about the 534 because I only bought 384MB at my hoster).

On the server there are running some additional daemons:
subversion with 2 repos
imap and smtp (1 mail account)

I removed amavis, spamassassin, postgrey, bind9.

On my apache there are running 4 pages at the moment:
-webmail client (roundcube)
-ispcp admin login
-1 project management (dotproject)
-personal homepage with little-middle php scripts

Regards
Dustin

edit:
For subversion access I use the WebDAV plugin in Apache2...could there be a problem with the memory usage?
(This post was last modified: 10-27-2009 11:14 PM by dronox.)
10-27-2009 11:11 PM
Find all posts by this user Quote this message in a reply
FidiBus Offline
Junior Member
*

Posts: 21
Joined: Aug 2009
Reputation: 0
Post: #6
RE: Server crashes every day
the memory display can be wrong on vservers, much depending on how they are setup.
no swap? (trash the vserver and get a better one)

don´t look at the memory-display, look at what processes are running and wich take up most mem. you can sort or scroll thru them with htop.

what are little-middle php scripts...for ex. wordpress will kill your server if you don´t optimize it.

then look at log-files to find out what the server kills!!!
10-27-2009 11:20 PM
Find all posts by this user Quote this message in a reply
dronox Offline
Newbie
*

Posts: 6
Joined: Oct 2009
Reputation: 0
Post: #7
RE: Server crashes every day
Okay, sorry I should have look better before posting at the forum.
The most memory usage had MySQL with 10 processes with 3,1% mem usage each process at startup. I reconfigured MySQL and now there are running at startup 2 processes with 0,9% mem usage.
Additionally I removed DAV_SVN and started Subversion in INETD - now there are 40M RAM more free.

I hope it will work.
Thanks for your help.

Regards Dustin
10-28-2009 12:17 AM
Find all posts by this user Quote this message in a reply
Arno Offline
Newbie
*

Posts: 5
Joined: Jan 2009
Reputation: 0
Post: #8
RE: Server crashes every day
In case your vServer ist OpenVZ or its commercial branch, you should check the file /proc/user_beancounters. There are a lot of tuneable parameters.
10-28-2009 01:23 AM
Find all posts by this user Quote this message in a reply
ender049 Offline
Junior Member
*

Posts: 21
Joined: Oct 2009
Reputation: 0
Post: #9
RE: Server crashes every day
(10-26-2009 09:32 PM)kilburn Wrote:  Your server is most probably running out of memory, thus swapping all the time and becoming nearly unusable. Have you tried applying the tweaks about "running on low memory systems" from our docs? It should be the absolutely first thing to try, along with discovering where is your ram being consumed...

where is the "running on low memory sysytems"? which doc it in? I can't find it
10-29-2009 03:40 AM
Find all posts by this user Quote this message in a reply
ender049 Offline
Junior Member
*

Posts: 21
Joined: Oct 2009
Reputation: 0
Post: #10
RE: Server crashes every day
Big Grin
forget it~~
I post that theard because I can't find anything by search "running on low memory systems".
but by chance,I find it when I searching "ispcp remove bind9"
10-29-2009 04:52 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)