LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-30-2010, 07:15 AM   #1
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Rep: Reputation: 3
Debian 5.0 | Directadmin | Memory usage and System Crash


I would discuss here my previous system . I actually downloaded this pre-installed image for Debian 5.0 ( Lenny ) for VMware and started using it. Maybe this OS is corrupt or maybe something else is wrong but other people are using this image fine. I am using Directadmin on this server and also host websites . Anyhow I would explain what happened here :



First of all I had 1GB ram. The ram started increasing/falling by itself and the websites would sometimes act very slow. One day MySQL couldn't allocate much memory and the whole system crashed and I had to restart the machine. Here is how the RAM increased/decreased: ( This just shows some maximum values it touched during 30 seconds ) :

Code:
panel:~# free -m
             total       used       free     shared    buffers     cached
Mem:          1011        999         11          0          0         19
-/+ buffers/cache:        979         32
Swap:          400        103        296
panel:~# free -m
             total       used       free     shared    buffers     cached
Mem:          1011        705        305          0          1         21
-/+ buffers/cache:        683        328
Swap:          400        218        181
panel:~# free -m
             total       used       free     shared    buffers     cached
Mem:          1011        354        657          0          1         22
-/+ buffers/cache:        330        681
Swap:          400        172        227

You can see that the buffers/cache is not being used much but it is real ram and swap which might be causing this crash. I asked Directadmin support to help me. He asked me to get more RAM and optimized the my.cnf file himself for better performance. I gave 3GB Ram to the server this time and things were a bit better.



The server worked for about 2 days and crashed. This time the error I think was not due to the RAM or related . Here is the screenshot of the error I got:

( Attached )


Anyhow, I restarted it again. Even directadmin support failed to provide me any useful info about it. I thought there could be 2 things that caused the crash.

1. Corrupt Guest OS/ Incompatibility of VMware with Kernel.
2. Issues with Host Server.


The 1st one looked more of an issue to me. So I thought of installing another OS and checking whether both the OS crash at same time. If both OS crashed at same time, the problem would be with the Host machine and if only the previous OS crashed alone, the problem could be with the Guest OS or Kernel incompatibility.



The current usage of my RAM is as follows on that machine :
Code:

panel:~# free -m
             total       used       free     shared    buffers     cached
Mem:          3043        433       2610          0         58        120
-/+ buffers/cache:        254       2789
Swap:          400         32        367



panel:~# top
top - 09:38:15 up 19:10,  3 users,  load average: 0.03, 0.08, 0.07
Tasks:  95 total,   1 running,  94 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,  0.0%st
Mem:   3116812k total,   462956k used,  2653856k free,    60196k buffers
Swap:   409616k total,    32888k used,   376728k free,   123848k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
    1 root      20   0  2036  568  536 S  0.0  0.0   0:03.22 init
    2 root      15  -5     0    0    0 S  0.0  0.0   0:00.48 kthreadd
    3 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0
    4 root      15  -5     0    0    0 S  0.0  0.0   0:01.32 ksoftirqd/0
    5 root      RT  -5     0    0    0 S  0.0  0.0   0:00.14 watchdog/0
    6 root      15  -5     0    0    0 S  0.0  0.0   0:04.82 events/0
    7 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 khelper
   39 root      15  -5     0    0    0 S  0.0  0.0   0:10.32 kblockd/0
   41 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kacpid
   42 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kacpi_notify
  101 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kseriod
  139 root      20   0     0    0    0 S  0.0  0.0   0:25.58 pdflush
  140 root      15  -5     0    0    0 S  0.0  0.0   0:07.22 kswapd0
  141 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 aio/0
  657 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 ata/0
  658 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 ata_aux

You can see that even though RAM is free, Swap partition is being used. And cached memory is about 120 MB too. Not sure if it's fine. Swap partition was already made by the guy where I downloaded this OS image from .


Also, I am still waiting for this machine to crash again so I can see if my other machine crashes along with it . Then I can find what issue is causing the error. Maybe then I will shift Directadmin from this machine to the new one.

But what do you think is causing this machine to crash ?
Also explain the RAM usage ?
Attached Thumbnails
Click image for larger version

Name:	Weird Crash.JPG
Views:	18
Size:	132.8 KB
ID:	5034  

Last edited by AsadMoeen; 10-30-2010 at 09:36 AM.
 
Old 10-30-2010, 08:40 AM   #2
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
Any help ?

I've posted all I could.
 
Old 10-30-2010, 10:16 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Don't you fscking try posting duplicate threads AGAIN.
Stay there: http://www.linuxquestions.org/questi...-usage-841362/ instead!

We should not need to clean up after you. So if you report a thread for closure then you use the REPORT button. Pardon my french.

Last edited by unSpawn; 10-30-2010 at 10:19 AM.
 
Old 10-30-2010, 10:19 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
[dupe]
 
Old 10-30-2010, 12:33 PM   #5
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
Well first of all mind your language.


Your link is other post not this. I have 2 machines both with different problems .Both are different so don't get on me now and mind your language. If you can understand English you would know what I posted last in that topic.
 
Old 10-30-2010, 02:47 PM   #6
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
Waiting for useful replies..
 
Old 10-30-2010, 08:42 PM   #7
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
EDIT:

This thread which had been "closed" is now re-opened. If there's any question about why this is occurring, any member may feel welcome to contact me for an explanation.

Last edited by GrapefruiTgirl; 10-31-2010 at 10:03 AM.
 
Old 10-31-2010, 10:44 AM   #8
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
Thanks for re-opening.

I expect some helpful replies to minimize this issue now.
 
Old 11-23-2010, 11:05 PM   #9
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by AsadMoeen View Post
I expect some helpful replies to minimize this issue now.
LQ answers are given by volunteers as and when they wish. Sentences like that, implying that someone should answer and that previous replies were not helpful, are likely to demotivate potential answerers. As is:
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian 5.0.6 | Too much Memory Usage AsadMoeen Linux - General 4 10-30-2010 08:53 AM
Query: Embedded System - Total Memory Usage EmbeddedSteve Linux - Embedded & Single-board computer 1 08-20-2010 12:40 PM
Out of memory (oom) killer causes system crash? BusyBeeBop Linux - Software 6 06-02-2008 01:42 AM
most, er, universal way to get system memory total and usage lumix Linux - Newbie 1 06-03-2007 09:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration