LinuxQuestions.org
Visit Jeremy's Blog.
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 12-19-2010, 11:23 PM   #1
stg_in2009
LQ Newbie
 
Registered: Jan 2009
Posts: 6

Rep: Reputation: 0
Server hangs when given find command


Hi All,

I am ClearCase Admin, new to Linux administration and our development environment is in linux servers.
I have found that our development server which is RHEL 3 (also ClearCase client) hangs when user gives find command.
Command is as follows:
<normal user>$ cd /
<normal user>$ find . -name "<filename>"

After some time of execution of the find command the server hangs. We have to hard-boot the server.
Is this the normal behaviour of the Servers? This server which I am talking about is highly used.
Sometimes 120 or more terminals will be opened and few compilation will be happening in the server. And same single user some times opens multiple terminals and works simulataneously.
We have been monitoring the server and found out that during the workdays CPU usage % goes very high.

I was wondering if it is normal behaviour for Linux servers getting hanged when running find command as above.
Kindly put your valuable inputs.

Thanks

STG
 
Old 12-20-2010, 02:38 AM   #2
chickenjoy
Member
 
Registered: Apr 2007
Distribution: centos,rhel, solaris
Posts: 239

Rep: Reputation: 30
Quote:
I was wondering if it is normal behaviour for Linux servers getting hanged when running find command as above.
Well to answer your question; no this is not normal. I had ran several find commands on a range of servers and none caused the servers to hang or crash.

Maybe its time to move to a more powerful server if you monitor that the cpu usage rises above 85% very often. This does not mean that your server is to blame since (I assume) that a few months ago it doesn't. It just implies that either more users are accessing the server or the same number of users are issuing more CPU and Disk intensive tasks on the server.
 
Old 12-21-2010, 12:22 AM   #3
stg_in2009
LQ Newbie
 
Registered: Jan 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you so much for the reply.
I have one clarification. Is it possible to control the CPU usage? I mean if it reaches 85% or 90% then server should not allocate resources to other incoming request but to put them on wait mode. When the CPU usage % reaches down (say below 85%) let the queue calls / requests get the allocation to execute which is in wait mode.
Just wanted to know some work around for this as shifting to new server would take time.
Thank you once again

Regards

STG
 
Old 12-21-2010, 05:55 AM   #4
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
As a first measure you could start find by using nice:

Code:
$ nice -n 19 find / -name filename
But why it crashes the system needs further investigation for sure. When you want to search across the whole file system, maybe you want to install locate, which will make the find in a cronjob and creates a database which will give the result faster when you issue the command.
 
  


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
Find/grep/wc command to find matching files, print filename and word count dbasch Linux - Newbie 10 09-14-2009 05:55 PM
Single find command to find multiple files? thok Linux - Newbie 7 01-31-2009 04:45 PM
What is the command to find listings/attributes of SAN disk drive from the server? Linuxunleash Linux - General 2 08-15-2008 09:35 AM
Linux hangs - how to find out ... honzin Linux - General 10 09-20-2005 01:12 PM
Installing postgresql in a VPS server - cannot find 'createlang' command jbsarma Linux - Newbie 2 08-18-2005 08:11 AM

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

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