LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-20-2003, 02:55 PM   #1
SchoolITguy
Member
 
Registered: Oct 2002
Posts: 57

Rep: Reputation: 15
memory and swap question RH8.0


I have noticed that on my server the longer it runs the more memory it uses up(month or two), it will soon start spilling over to the swap file. I have had to reboot my server a couple of times when I have been setting it up haven't had a problem with it. But now that I have it set up and running and I don't want to be restarting every month. Is it normal for linux to do that? What will happen when the swap gets used up. All I am running is a small jabber server so nothing to intense.

Thanks,
Kevin
 
Old 03-20-2003, 03:00 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Did you find out what process was chewing up all the memory? If you are running X then it will chew up a lot of memory. Do a 'top' command to see what processes is hogging all the memory.
 
Old 03-20-2003, 03:00 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Well ...

you could look at actual memory usage per
process ... start top, press Shift-M, so it sorts
by memory usage rather than CPU.

Also I'd assume that there's WAY more than
jabber running on it since RH's starts a whole
truckload of services up by default...

You could try to check top's output over a few
days, and look whether any process is starting
to use more memory every day...

Cheers,
Tink
 
Old 03-20-2003, 03:01 PM   #4
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
Probably one of the programs you are running has a memory leak. You might want to check what programs are using more and more memory (using tools like "ps" or "top") over several days.
Restarting the offendig daemon periodically might solve your problem.
 
Old 03-20-2003, 03:28 PM   #5
SchoolITguy
Member
 
Registered: Oct 2002
Posts: 57

Original Poster
Rep: Reputation: 15
I will watch that, is it ok to just leave the top program running?
 
Old 03-20-2003, 08:13 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Sure is :)
Top itself causes little overhead, and if you run it
with
Code:
top -d 60
it won't do any harm to the cpu, either

Updating once a minute is tame enough
for any situation ;)

Cheers,
Tink
 
Old 03-21-2003, 08:11 AM   #7
SchoolITguy
Member
 
Registered: Oct 2002
Posts: 57

Original Poster
Rep: Reputation: 15
Cool Thanks, You guys are always so helpful.
 
Old 05-05-2003, 04:25 AM   #8
VioLaToR
Member
 
Registered: Aug 2002
Distribution: ArchLinux 2007.08 / Slackware 11.0
Posts: 58

Rep: Reputation: 15
for me, when i use top, it tells me that i am using 839784K of mem. I have no clue how it could be using up that much. There are 6 listings of mozilla-bin and i am only using 1 session of mozilla at this time. There are 14 listings for kdeinit. CPU using stays at 0.0% but sometimes goes as high as 3.3%. Do i have a memory leak or is this normal? i read in another thread that this is normal for memory to be shown as "used" when it is really just ready and waiting. My swap space also shows that it is not used at all (0.0%).

Last edited by VioLaToR; 05-05-2003 at 05:14 AM.
 
Old 06-05-2003, 07:01 AM   #9
Vlad_M
Member
 
Registered: Aug 2002
Location: Cape Town, South Africa
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388

Rep: Reputation: 30
kdeinit seems to be an offender, I have just started a new thread about this. I am searching the forums at the mo but can't find much info on how to deal with this.
 
  


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
Swap memory zero ??? lewkh Red Hat 2 07-23-2005 01:11 PM
Swap Memory xbill311x Linux - Newbie 2 04-11-2005 01:58 PM
Swap being used before memory gone bmiley_ncaa Linux - Hardware 2 09-29-2004 03:53 PM
Difference between Swap Virtrual memory and Swap Parition Nappa Slackware 4 11-27-2003 07:58 PM
Memory Mapping RH8 w/VMIC Memory Merlin53 Linux - Hardware 0 05-01-2003 10:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:38 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