Results 1 to 4 of 4
  1. #1

    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
    top -c -b -d 15 > top.txt
    What this does is every 15 seconds add reply 'top -c' to 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 08:06 AM.

  2. #2
    May I ask what the purpose of running "top" 4 times a minute for up to 3 days is? What is your intention here?

  3. #3
    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.

  4. #4
    Join Date
    May 2009
    Dear dolphinecho,

    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.

Similar Threads

  1. Constant Load
    By BeZazz in forum Web Hosting
    Replies: 22
    Last Post: 09-23-2006, 10:18 AM
  2. Replies: 0
    Last Post: 03-02-2005, 03:52 AM
  3. constant contact has anyone used it?
    By amkint in forum Running a Web Hosting Business
    Replies: 1
    Last Post: 02-05-2005, 06:58 PM
  4. Constant Crashing
    By mxtabs in forum Hosting Security and Technology
    Replies: 14
    Last Post: 04-28-2001, 01:16 PM
  5. Constant Evaluation
    By JBIZ718 in forum Web Hosting
    Replies: 3
    Last Post: 04-08-2001, 07:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts