LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-10-2010, 03:42 AM   #1
koshihaku
Member
 
Registered: Aug 2010
Posts: 50

Rep: Reputation: 0
Question a question about running script`s priority


I run a script monitoring the memory of apache server processes, and the script will putput the data to log file every 20 seconds. But maybe becaused the server is saturated, sometimes the time interval of records in output log file is not stable, sometimes several minutes, sometimes longer than one hour.

I tried to use renice the process of the script, but it didn't get well much. Is there a better way to highten the priority of the running script or other way to make it work well?

Thank you !
 
Old 09-10-2010, 04:38 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
There might be something odd about your script, but in any case, only root can raise the priority of a process above the default for the non-root user.
In some cases, if the amt of data in each rec is small, you may be 'suffering from buffering' eg http://perl.plover.com/FAQs/Buffering.html. That page talks about Perl, but the principle is the same regardless of language.
 
1 members found this post helpful.
  


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
Regarding changing priority of current active running process sekhar Linux - Software 1 06-01-2007 02:26 AM
How can i change the priority of a running process. ZAMO Linux - Enterprise 3 04-23-2007 04:31 AM
process priority,nice -- small question regarding high/low priority values beeblequix Linux - Newbie 1 10-11-2006 11:22 AM
Question on running a script zael Programming 1 09-30-2003 02:59 PM
running script question BajaNick Programming 8 09-29-2003 08:45 PM


All times are GMT -5. The time now is 12:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration