var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
top usage over constant 48/72 hours
I am wanting to get access to 'top -c' for a period of 48/72 hours.
Now I have found the following
What this does is every 15 seconds add reply 'top -c' to top.txt
top -c -b -d 15 > top.txt
Now I can make this into a shell script then put it into the background and exit SSH while leaving it running.
Now the question is will this use much usage/server load over the 48/72hrs, it will be checking 4 times every minute.
Last edited by dolphinecho; 07-17-2009 at
May I ask what the purpose of running "top" 4 times a minute for up to 3 days is? What is your intention here?
I am trying to find out what if I have got a possible load issue, or if it something else.
With top it will tell me what running, what cpu usage, memory usage, wait, etc...
I thought this would be the best as I am not around all the time.
Running 'top' command simultaneously might raise the server load a bit.
Let the OS decide the priority in which the top command should be executed.
Use "nice top -c -b -d 15 > top.txt" instead.
P.S: 'nice' runs the given COMMAND with its niceness adjusted.
Running 'top' command 4 times a minute prolongedly isn't a good idea for a busy server, try scheduling it efficiently.
By BeZazz in forum Web Hosting
Last Post: 09-23-2006, 10:18 AM
By RDOSTI in forum Employment / Job Offers
Last Post: 03-02-2005, 03:52 AM
By amkint in forum Running a Web Hosting Business
Last Post: 02-05-2005, 06:58 PM
By mxtabs in forum Hosting Security and Technology
Last Post: 04-28-2001, 01:16 PM
By JBIZ718 in forum Web Hosting
Last Post: 04-08-2001, 07:57 PM