LinuxQuestions.org
Review your favorite Linux distribution.
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 01-19-2006, 11:32 PM   #1
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Rep: Reputation: 31
Help!!! memory exhausted error on RedHat ES V3U6


I just installed a RedHat ES V3U6 server a Dell PowerEdge 6650 with 2 CPUs, 8GB of memory and 4GB of swap space. My problem is when I tried to do anything to a directory on a NAS with over 1000s of files in it. I get memory exhausted error. For example, when I run:

du -sm /directory
ls -R -l /directory
cp /directory /destination

I get get memory exhausted error. But, I can do the same command on our RedHat ES or AS V2.1 server with out any problem at all.

Yes, I did run "free -m" and "top" to see what is going on. It show there are plenty of memory and swap space remain. So, it's definitely not memory or swap space problems. Also, CPU is barely being use at all.

So, I ran ls -R -l /directory > ls.txt and see how far it get before I get the memory exhausted error. It seem like the ls.txt get to 11MB then memory exhausted error show up and ls crashed.

Does anyone have any ideas what the heck is going on?
 
Old 01-20-2006, 12:39 AM   #2
dombrowsky
Member
 
Registered: Dec 2005
Location: New York
Distribution: Debian/GNU
Posts: 235

Rep: Reputation: 31
did you run top while ls was running and see what happened?

maybe ls has a memory leak.
 
Old 01-21-2006, 03:22 PM   #3
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Original Poster
Rep: Reputation: 31
Yes. It show I have plenty of memory and swap space. It's not just the ls command. It will happen to du, ls, cp, and etc. This only happen to a directory that have tons of files in it. I don't have problem with smaller directories.
 
Old 01-21-2006, 05:36 PM   #4
dombrowsky
Member
 
Registered: Dec 2005
Location: New York
Distribution: Debian/GNU
Posts: 235

Rep: Reputation: 31
what's the filesystem? it might default to ext2 which might have a smaller limitation on the number of files that can be in a directory. Try ext3 or another filesystem which you know supports large directories.
 
Old 06-01-2006, 08:00 AM   #5
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Original Poster
Rep: Reputation: 31
it's ext3 filesystem. The problem was how the version of coreutils in RH-v3 is compiled. This problem is fixed on V4.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
HLFS: sed-4.1.4 & uClibc-0.9.28, Memory Exhausted. Yerp Linux From Scratch 1 01-05-2006 02:26 PM
Memory Exhausted? thachp Linux - Newbie 9 01-04-2006 07:16 PM
"Undeleting" data using grep, but get "grep: memory exhausted" error SammyK Linux - Software 2 03-13-2004 03:11 PM
squirellmail, Fatal error: Allowed memory size exhausted illtbagu Linux - Software 6 11-08-2003 05:46 PM
"pipe: memory exhausted" problem nixie Linux - Software 1 09-02-2003 01:56 PM

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

All times are GMT -5. The time now is 03:01 AM.

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