UNSOLVED

msgale

updated

20 years ago

M

msgale

2 Intern

•

2507 Posts

0

52171

November 18th, 2006 13:00

A way to analyze CPU or Memory Usage

Many time users have complained about performance problems without being able to provide usage information.  Hijackthis does list the active processes at the beginning of its log file, but not what resources are using by which process.  The task manager provides the data, but as far as I know not in a format that is easily posted.  I suggest the following solution.

 

1. Enter the command "tasklist /v /nh /FO csv > "some file name" 

2. If you have Excel it can be used to analyze the data, otherwise you will have to analyze the data in “some file name” by hand. 

 

To use Excel to analyze the data

1. Open Excel and create a new Spread sheet

2. Import the data from “some file name.”  The data is in comma, not tab delimited format, start input row at the row number of the column headers (typically 2).

3. You can use Excel's sorting capability to determine resource usage.   

P.S. tasklist /s "system"  /v /FO csv > "some local file name" can be used to obtained the same information from a networked PC “system” (assuming their are no permissions problems)

  • 1972vet

    3305 Posts

    474

    0

    Posted November 18th, 2006 17:00

    Help me out. When I follow your instructions, I get:
    "'tasklist' is not recognized as an internal or external command, operable program or batch file."

    What am I doing wrong?
  • 1972vet

    3305 Posts

    474

    0

    Posted November 18th, 2006 18:00

    Oh, I'm aware of all that...I have xp home. Will that command work for me? It doesn't from having followed your instructions.
  • msgale

    2 Intern

    •

    2507 Posts

    474

    0

    Posted November 18th, 2006 18:00

    Tasklist is listed a a valid command in the "Help and Support" from the start menu on my PC Windows XP Pro/SP2.  The full path name is %windir%\system32\tasklist.exe 
     
    Here is an example
    C:\>tasklist /?
    TASKLIST [/S system [/U username [/P [password]]]]
                     [/M [module] | /SVC | /V] [/FI filter] [/FO format] [/NH]
    Description:
       This command line tool displays a list of application(s) and
       associated task(s)/process(es) currently running on either a local or
       remote system.
     
    Here is another example
    C:\>%windir%\system32\tasklist.exe
     
    Image Name                   PID Session Name     Session#    Mem Usage
    ========================= ====== ================ ======== ============
    System Idle Process           0 Console                 0         16 K
    System                                4 Console                 0         60 K
    smss.exe                         744 Console                 0        116 K
    csrss.exe                         792 Console                 0      4,184 K
    winlogon.exe                   820 Console                 0      3,096 K
    services.exe                    864 Console                 0      2,252 K
    lsass.exe                         876 Console                 0      1,404 K
    svchost.exe                   1036 Console                 0      2,620 K
    svchost.exe                   1084 Console                 0      2,804 K
    MsMpEng.exe               1148 Console                 0     11,396 K

    Message Edited by msgale on 11-18-200604:36 PM

  • msgale

    2 Intern

    •

    2507 Posts

    474

    0

    Posted November 18th, 2006 19:00

    I do not have access to XP Home, so I can't test on a XP Home PC, bu I would expect it to work on XP Home.  Did you check the path I gave you?  Did you check  Help and Support?  Maybe check with members of ASAP, to see if it works for them?
  • 1972vet

    3305 Posts

    474

    0

    Posted November 18th, 2006 20:00

    Quote:
    Maybe check with members of ASAP, to see if it works for them?


    Well, there's not a chance I'll do that...I confess, I've been putting you on the spot. The "Tasklist" command is valid and useful as you've described...just not with Windows XP Home Edition.

    I just wanted to point out to you that if you post some instructions like that, you should be prepared to answer questions such as what I had asked since the forum is read by untold thousands.

    The point to remember is, when posting instructions you should distinquish among operating systems. I just didn't want some unassuming casual reader who has XP Home to waste too much time trying to determine why the command you posted doesn't work for him/her...

    It happens...you know?
  • zbestwun2001

    4 Apprentice

    •

    8831 Posts

    474

    0

    Posted November 18th, 2006 20:00

    msgale,

    I have XP Pro... can you please in a language that I can understand explain to me how to do it.
    thanks for your help

    zb1
  • msgale

    2 Intern

    •

    2507 Posts

    474

    0

    Posted November 18th, 2006 20:00

    1.  I have always admired those who can give very exact step by step instructions, for I can not.  I always leave something out.  I give instruction with a broad stroke and assume that the audience have enough knowledge follow through.  As an example, when telling how to tune-up a car engine back in the 1960's, the typical instructions said to gap the spark plugs so many thousands of a inch.  The instructions did not include how to remove a spark plug, except for special cases nor how to use a gauge to measure the gap.

     

    2.  I still find it hard to believe the tasklist does not work on XP/Home and am therefore converting a pc to XP/Home to find out what is going on.     

  • zbestwun2001

    4 Apprentice

    •

    8831 Posts

    474

    0

    Posted November 18th, 2006 21:00



    @msgale wrote:

    1. I have always admired those who can give very exact step by step instructions, for I can not. I always leave something out. I give instruction with a broad stroke and assume that the audience have enough knowledge follow through. As an example, when telling how to tune-up a car engine back in the 1960's, the typical instructions said to gap the spark plugs so many thousands of a inch. The instructions did not include how to remove a spark plug, except for special cases nor how to use a gauge to measure the gap.

    2. I still find it hard to believe the tasklist does not work on XP/Home and am therefore converting a pc to XP/Home to find out what is going on.






    Will you explain it to me and all the other XP Pro users?

    zb1
  • msgale

    2 Intern

    •

    2507 Posts

    368

    0

    Posted November 18th, 2006 21:00

    I do find it suprising that using the command line is something that users can not do any longer.
  • zbestwun2001

    4 Apprentice

    •

    8831 Posts

    368

    0

    Posted November 18th, 2006 21:00

    If it's a matter of a command line that's no problem, but what to put in really is confusing me... in reality I am very left brained.... a true left hander :)

    zb1