Get process CPU usage

hi,
how can i get all process CPU usage like task manager show?
some of my monitor server have few CPU cores to lots of CPU cores
THX

hi,
i use this script to get all process that the CPU of them is greater then 1.the problem here that it give me process result that are 0 as well.how i can fix this issue in this script?
second question - i can run this script is single line?
THX
[int]$procpercent = 1
$customtable = @{Expression={$_.InstanceName};Label="Process_Name";width=9}, @{Expression={$_.CookedValue/$env:NUMBER_OF_PROCESSORS -as [int]};Label="CPU_usage_%"}
$Proc = Get-counter "\Process(*)\% processor time"
$procresult = $Proc.CounterSamples | where {$_.cookedvalue -gt $procpercent} | where {$_.instanceName -ne "idle"} | where {$_.instanceName -ne "_total"}
if ($procresult -eq $null){
write-host "No Processes with CPU usage greater than $procpercent %"
else
$procresult | Format-Table $customtable -auto

Similar Messages

  • Getting the CPU USAGE

    hi !
    I want to get the CPU USAGE of the entire system.Is there any command in JAVA to get this.
    I don't want the CPU USAGE of a particular process but I want the CPU USAGE of the whole system.
    Kindly reply if any one knows it.
    Bye
    Srinu.

    Take a look at...
    http://www.javaworld.com/javaworld/javaqa/2002-11/01-qa-1108-cpu.html?
    N35Sy

  • How to get max CPU usage

    I'm using Win 7 64bit and CS6 64bit.
    However, when I do some heavy editing, like anything that takes a few minutes of CPU processing, I tend to look at the task manager only to find that 4 cores are utilizing 50% at max thus taking longer to compute the results.
    Is there a way to maximize CPU usage by Photoshop? I would like it to use 100% when performing tasks to speed up process time. Is there a windows plug in?
    Thanks,
    Gil.

    It depends on how each of the portions of Photoshop you're using was implemented.  There's little you can do to influence it.  About the only thing I can think of is that you can adjust the Tile Size and Cache Levels values in the Edit - Preferences - Performance dialog.  On some systems with some kinds of operations smaller tiles can make things work faster and with others large tiles are better.  But be forewarned:  I've never seen changing those values make a very big difference. 
    One other thing you can do is adjust the max RAM you allow Photoshop to use.  Your OS probably itself doesn't need more than 1 to 2 GB, and if you don't specifically have another application you want to run that uses a lot of RAM you'll want to change the Photoshop RAM usage so as to leave just a few GB for the OS.  On a system with a huge amount of RAM that might mean setting it to 90% or more.  If Photoshop can keep things in RAM, your CPU will be busier because it won't be waiting on swapping data to/from disk.
    Make sure you restart Photoshop before testing any changes.
    There are filters that you SHOULD see use 100% of all your cores - example, try a Filter - Blur - Radial Blur on a large image.  There are other things that simply don't, because either there isn't a good way to multi-thread the activity (e.g., data compression during save) or the Photoshop implementation is just limited because it's not been updated since the advent of multi-core systems (e.g., some of the old artistic filters).
    When I was doing performance testing, I created an action that does a lot of the kinds of things I normally do to images, so that I could run it repeatedly and time the results, looking for differences as a result of choosing the different settings.  There are Photoshop benchmarks on the web that do much the same thing, and while it might not be a good match for what you do (none of them were for me), they ARE interesting in that they allow you to compare your performance to other systems out there, to make sure everything's working right.
    -Noel

  • How do you get the CPU Usage in Linux

    This is a link of an example in WIN32:
    http://www.javaworld.com/javaworld/javaqa/2002-11/01-qa-1108-cpu.html
    It notes that UNIX environments should use getrusage(), and that is all it says in regards to UNIX. The code I have attempted to use looks like this:
    #include <sys/resource.h>
    #include <sys/time.h>
    #include "CPU.h"
    #include "jawt_md.h"
    #include "jawt.h"
    struct rusage usage;
    int ret;
    struct timeval val;
    struct timeval val2;
    JNIEXPORT jlong JNICALL Java_CPU_getProcessCPUTime (JNIEnv * env, jclass cls)
       ret = getrusage(RUSAGE_SELF,&usage);
       val = usage.ru_stime;
       val2 = usage.ru_utime;
       return val2.tv_usec;
    }My problm is that I don't think it is right...since the value returned is always the same no matter what the CPU usage is. same for if I used val instead of val2.
    Any Ideas?

    In Linux, you can read /proc/uptime. It does NOT give you the load averages that the command uptime gives. It gives you numerically the amount of time the CPU was idle vs how much time it was spent doing something. You need to read these two floating point numbers one every second, or once every 5 or 10 seconds then do the delta on the change: The maths are as follows:
    Read the file in twice in 5 seconds, parse into two floats/doubles:
    double[] last;  // the first read of the file
    double[] rect;  // the latest read of the file
    double ld = last[1] - last[0];
    double rd = rect[1] - rect[0];
    double cpu = (1.0d-(rd/ld)) * 100.0d;This should print the CPU percentage in Linux for that given time frame (5 second updates).

  • CCM process cpu usage

    Hello!
    We have 2 CCM subscribers. Their configuration, registered devices are nearly the same. (1300 and 1500 phones, 80, 90 h323 gateways). Node 1 cpu usage is 20%, while the others is always between 80-100%.
    What can such a big difference?
    (when I moved more than 400 phones and 1 vgw with 2 E1 lines, nothing changed!)
    Thanks,
    Bela

    Hello!
    MCS-7800 Intel Xeon 3.06 Ghz, 4G RAM
    4.1(3)sr2
    MGCP gateways (4 E1) is registered to the 20% node.
    H323 gateways is nearly equaly registered to the two subscribers. (I mean their DP ccmgroup setting).
    1 more interesting detail: the 20% node handles twice as many calls as the 90%.
    Thanks,
    Bela

  • Some process cpu usage too much!!

    I have many problem when update Mountain Lion.
    some process are too much usage cpu .
    iMac Processor : 3.4GHz Intel Core i7
    Ram : 16GB 1333 MHz DDR3
    Problem Process:
    -  safari web content.
    -  image capture extension.
    -  mdworker 
    There are usage too much cpu , so iMac too slow!!!
    Please solve it .

    I have the same problem here, my MacBook Air barely goes to 60ºC while doing normal tasks, but as I edit video in iMovie (or even just letting iMovie open without doing anything) is gets near 100ºC because my CPU load is always very high!
    Can someone explain this?

  • Dtraced process CPU usage * 5

    Hi,
    I have a process of which I want to trace the libc mutex
    lock/unlock activity. It takes 3,5 % CPU, when dtraced
    it takes 18%. I thought dtrace's impact was minimal?
    Stoping dtrace brings it back to 3,5.

    Dtrace's effect is minimal when it's not doing anything.
    Dtrace's effect when it is doing something is proportional to what it's doing. If you ask it to activate a few probes that aren't hit much, it takes very little CPU. If you ask it to activate probes that fire thousands of times a second, it's going to take a lot of CPU.
    The cool thing about dtrace isn't that it's free when it's working, it's that it's free when it isn't working. That hasn't been true for many other tracing technologies.
    Darren

  • 100% CPU usage... does anyone else get this?

    Here is my code. I would have simplidied it for you... but I honestly have no idea where it went wrong.
    One second it is running fine, the next it starts taking up 100% of my CPU cycles. I can't figure out what I did to it to make it do this... nothing I added creates an infinite loop or infinite threads. It's just... weird.
    The code is probably too big for anyone to look at and tell me what's wrong, but can someone else download it and tell me if you also get 100% CPU usage? It needs to be run on Windows... it uses a couple JNI calls that are Windows-specific. Those calls were the first place I looked when trying to find the problem, but I have not changed that part of the code for a long time, and it has never been a problem before.
    Don't run the bat file... just navigate to the Watchdog2 directory and do 'java Watchdog'.
    Are there any tools that can help me figure out where the program is getting hung up? It's not freezing at any specific spot... just moving super slow and taking up 100% of my CPU. I'm so confused...
    Message was edited by:
    L4E_WakaMol-King

    Nevermind!
    Sorry for the trouble. The problem was that last time I compiled the code, it reverted back to and older version of a class I had compiled days ago. Why it did this is totally beyond me... but it did, and it just so happens that the old version of that class combined with the new version of my program were the perfect recipe for an infinite loop.
    Seriously, if you are in inveterate debugger, you might get a good laugh out of this. I've spent the last week and a half trying to find a way to set the Windows console into cbreak mode (single character processing rather than line-at-a-time processing), and I finally managed to do it by writing some c code and putting it into a DLL with the JNI. So now my program (which runs from the console) can process each character as it is entered rather than waiting for a line return. The older version of the class that got reverted was one that used System.in rather than the input stream generated by the socket. I had set it to System.in for testing purposes, and apparently that testing version is the one it got reverted back to. So combine the two, and you have a console that is feeding System.in each character as it is pressed and a socket wrapper that is listening infinitely. It was a mess... but an uncannily serindipitous mess...
    Ahh... debugging... good time...

  • T41---proc​ess rundll32.e​xe occupied 100% cpu usage and caused slow performanc​e.

    hi i have a big problem whit the performance of my laptop. I bought a extra 4gb ram for the second slot that not exist; and still continuos getting my cpu usage at 100% whit 2 programs running like office and google crhome.
    i have this specf of my latop:
    - procesor: amd c-60 apu  whit radeon hd graphics 1,00 ghz
    - ram: 4gz 
    system type: 64-bit  OS
    winows 7 ultimate
    please tell me if i have to install another OS, made changes in my configuration or just buy another laptop.
    tks

    Rundll32.exe Using High CPU on Windows 8.1
    I use a Lenovo T440s laptop for my service calls and when I need to do work remotely. My laptop runs Windows 8.1 Professional. I love this laptop and it has proved to be tough as well as extremely fast. I noticed a couple weeks ago that my battery was going dead after about an hour of usage. I also noticed that my cooling fan in the laptop was running louder than normal. I decided to open Task Manger on my laptop to see what the issue was. I soon noticed that a process called rundll32.exe was using around 25 percent of my CPU. I killed the process and everything returned to normal.
    A few days later, my battery was going dead very rapidly. My cooling fan was on almost constantly and was blowing warm air. I opened Task Manger and sure enough, rundll32.exe was using 25% of my CPU again. I killed the process and everything was fine. It wasn’t long and my laptop was doing the exact same thing as I described before. I decided it was time to get to the bottom of this issue. Here is how I troubleshot what program was using the rundll32.exe and in the process was killing my battery.
    Step One: I downloaded Process Explorer. This is an excellent tool. It is similar to Task Manager but goes into way more depth on the processes and dlls that are running. I extracted the download and then ran Process Explorer as an administrator.
    Step Two: One of the first things I noticed was rundll32.exe was using 23 percent of my CPU again. 
    I right-clicked on the rundll32.exe process and selected properties. I clicked on the Image tab and at once saw the culprit. A utility to monitor and gauge my battery usage, called PwrMgrBkGndMonitor, was draining my battery instead of saving it.
    Step Three: After a little digging around in my installed programs I located a program called Lenovo Settings Dependency Package. PwrMgrBkGndMonitor was installed in the Lenovo Settings Dependency Package.
    I didn’t use this program and decided I didn’t need it. I uninstalled the program and restarted my laptop. I haven’t had a problem with the rundll32.exe using up my CPU since I uninstalled Lenovo Settings Dependency Package.
    If you are experiencing the same symptoms has stated above and you are running a Lenovo laptop with Windows 8.1, this may be your issue. However, before you uninstall the program I would recommend using Process Explorer. Process Explorer will help you determine the exact program that is giving you issues before blindly uninstalling and killing services. I hope my troubleshooting steps can help you find program is making rundll32.exe use high CPU usage. Let me know in the comments if this helped you!
    Source: techspeeder.com

  • High CPU usage on sites with flash content

    I have a 2.8GHz, 2GB RAM, Windows XP Pro SP2 machine.
    When I visit sites with alot of flash content with Firefox 3
    or IE or Chrome my CPU goes to 80-90% and stays there.
    I uninstalled flash player and reinstalled the latest
    version, but with no fix to the problem. Don't seem to have any
    virus/spyware on my system.
    Uninstalling Flash player on each of the different browsers
    seems to fix the problem - visiting the same sites, I don't get
    huge CPU usage.
    Any ideas what underlying thing might be causing excessive
    CPU usage in all my browsers when visiting flash sites?

    To make clarifications for my previous post (some people emailed me saying that the link says nothing about cpu hogging or excessive cpu usage), you may not visit the LINK previously provided and instead follow the steps given below.
    I would also like to point out my kind of problem that these steps successfully solved. The problem was this:
    The first time I start up a browser (IE, FF, Opera, or Chrome) and visits a website with flash player files running on it, the performance of my
    computer is smooth and fast for the first 2 or 3 minutes. But afterwards, the CPU usage meter just suddenly shoots up from below 10% to a shocking
    100%! And there was not other program opened, except the browser; and I was only visiting one website ( e.g., Youtube).
    It then clearly indicates that flash player is the culprit, since I have already run windows updating, spyware and antivirus scanning, defragmenting,
    browser cookies and cache clearing, junk cleaning, and drive checking. I have also tried uninstalling and reinstalling flash players, which was actually
    a good thing except that during that time I have not yet known about the next 4 steps (given below).
    If you have the same problem, you might try th following:
    NOTE: Close your browsers and any other running programs and opened windows first.
    STEP 1: Navigate your way to this folder: Computer > C: Drive > Windows > System32 > Macromed > Flash
    STEP 2: Right-click over the file ‘Flash10a.ocx’ and choose ‘PROPERTIES’.
    STEP 3: In PROPERTIES, choose the ’SECURITY’ tab > Click on the ‘EVERYONE’ account or your own Windows account profile, and the button called 'EDIT’ and then tick the box called ‘ALLOW FULL CONTROL’ and also choose your own Windows local account name to have full control.
    STEP 4: Repeat this process for the file ‘FlashUtil10a’.
    Open a browser and check the performance of your CPU.
    PS:
    The example here indicates that the flash player version is 10; however, you can still use the steps for lower versions. For instance,
    if the version of your flash player is 9, look for all files named FlashUtil9a (disregard the extensions).
    Also, the Folder Directory is applicable for Vista users. The file directory structure of your drive C:\ may be different if you are using other windows OS version. You just have to search the location of your Flashplayer.
    To:
    montian and franky --- i'm so glad this procedure helps you with your prob!

  • 100% CPU Usage caused by HMI

    Hi everybody:
    I'm working with LabVIEW DSC 8.2.1 in a system that monitors many variables of a plant, such a typical SCADA system. For this reason, the use of the graphic tools is highly used on the development of this system. Everything works fine, but I have only one problem.... the usage of the CPU.
    When I am working on the development system I (not the executable) I start the application and after the variables are initialized and every process has started and are running , the CPU usage is raised around 90 - 100%. After a few days investigating the reason of this, I realized thay when I change the view on the screen to another view, for example the block diagram of the application, while the application is still running, the CPU usage goes around 15 - 25%. I've tried these many times changing the view from Front panel to Block Diagram and viceversa and the result is always the same: Front Panel= around 100%; Block diagram or another view (other applications MMIs, or Block Diagrams, etc.)= around 20%.
    Another thing that I realized is that the other view (different to front panel) has to fill the entire screen to work the way I'm telling before.
    When I build and run the executable, the usage of the CPU is the same... (around 100%), but I can't see any other application, because the application built is the shell of the OS, so no other views are available.
    I don't know if there's some other consideration to take into account about the HMI when creating an application, and I'll appreciate very much your help.
    Thanks in advance!
    Ignacio von Unger

     From http://100cpuusage.blogspot.com/
    100 Percent CPU Usage when you run programs after you install Windows XP Service Pack 2
    CPU Usage 100% Symptoms
    When you run some programs, the CPU Usage meter in Task Manager may indicate CPU Usage 100%. When CPU utilization reaches 100 percent, programs will run very slowly or stop responding (hang) and your computer is freezing or crashing.
    Noteress CTRL+ALT+DEL to view CPU utilization, click Task Manager, and then click the Performance tab.
    These symptoms occur after you install Microsoft Windows XP Service Pack 2 (SP2).
    CPU Usage 100% Cause
    These problem occurs because of the user interface code that is included in Windows XP SP2. The high CPU utilization is caused by the additional overhead that occurs when the IsWindow function is called by the user interface code.
    RESOLUTION
    Hotfix information
    A supported hotfix is now available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next service pack that contains this hotfix.
    To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:
    http://go.microsoft.com/?linkid=6294451
    Note If additional issues occur or any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. To create a separate service request, visit the following Microsoft Web site:
    http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support)
    Prerequisites
    To apply this hotfix, you must have Windows XP SP2 installed.
    Restart requirement
    You must restart the computer after you apply this hotfix.
    Hotfix replacement information
    This hotfix does not replace any other hotfixes.
    File information
    The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel. Date Time Version Size File name
    30-Mar-2005 19:53 5.1.2600.2643 577,024 User32.dll
    30-Mar-2005 01:30 5.1.2600.2643 1,836,544 Win32k.sys
    if you still do not know how to Fix CPU Usage 100%?
    I suggest you try targeted software - registry cleaner to fix cpu usage 100%
    Because there are many cases causing high cpu utilization.
    1. If you do a lot of web surfing and are concerned about spyware, adware infecting your machine, they will cause system crashes and CPU utilization reaches 100 percent. Some good registry cleaner has the function of spyware & adware removal.
    2. You install many beta version of the software, Drivers are not certified, which resulted in many errors, you get high cpu usage.
    3.100% CPU Usage while you use Internet Explorer
    4. many unneed Startup Program.
    5.Others PC Errors. - DLL errors, runtime errors, Windows-Installer Errors, Windows Startup Errors,paths Broken DLLs, OCX, and ActiveX Components all will cause 100% cpu usage. Your PC will run very slowly.
    Registry cleaner can do a complete scan of your entire file system and registry in under 2 minutes! Fix High Cpu Usage. Improve PC Speed By Up to 70%!
    http://www.100-cpu-usage.com/ suggest you to download registry cleaner to fix 100% cpu usage too.
    PCErrorsfixer.com - Top 3 Windows Registry Cleaners, Improve PC Performance,5 Star Rated. Fix 100% CPU Usage, Runtime Error, DLL Error,Windows Startup Errors,Internet Explorer Errors, Speed Up your slow PC.

  • DB CPU usage by %

    Hi,
    Is there anyone know how can we get the CPU usage by %?
    I noticed that in the Dbcontrol web page , it able to show the CPU used by %(in the Average Active Session chart), so I
    guess there must be some way to query it.
    I know V$SYSSTAT, V$SESSTAT ,V$RSRC_CONSUMER_GROUP can be queried to get CPU usage by number,
    V$SYSMETRIC_SUMMARY show the usage systemwise, not by Oracle process only.
    And V$sessmetric show CPU in number not by %.
    Is there any view we can queried to get DB CPU usage by %?
    Thanks
    Vincent Pek

    >
    Is there anyone know how can we get the CPU usage by %?Version of OS and DB please - my crystal ball is in for repairs.
    I know V$SYSSTAT, V$SESSTAT ,V$RSRC_CONSUMER_GROUP can be queried to get CPU usage by number,
    V$SYSMETRIC_SUMMARY show the usage systemwise, not by Oracle process only.
    And V$sessmetric show CPU in number not by %.
    Is there any view we can queried to get DB CPU usage by %?If you tell us the OS, then we can recommend tools that the OS has to
    measure CPU usage which should give you a very good idea about
    DB server CPU usage - the implicit assumption being that the
    server is used as a db and only as a db.
    Could you also please expand a little on the context of your request -
    what do want this information for?
    Do you want it for a particular statement/process or the whole server?
    It would be helpful to know exactly what you're looking for and why.
    For example, when you say "by %" - do you mean as a percentage
    of the machine CPU usage in total?
    In that case, Oracle can't help you, because it only knows about itself,
    you have to look to OS tools.
    Paul...
    Vincent Pek

  • How to maximize cpu usage

    this is about an app that i use, not one i am developing, i am just trying to see if i can help out the developer or see if he has really tried 'everything' to optimize the app. This app does some heavy duty signal processing, it receives a very high speed
    usb data stream from a custom device, it uses about as much of the usb 2.0 bandwidth as it can passing in pre-processed spectrum sampes. Then the computer side app takes that and does more processing to find and extract the data that it is supposed to work
    on. I am running it on a win8x64, I7 box with one socket, 4 cores, virtualization enabled, and 8 logical processors, 8gb ram and nothing else doing anything significant... the app only takes about 50% of the cpu time even though it is not finishing processing
    one block of data before the next arrives, this results in it automatically cutting back on the data decoders to process fewer signals until it can complete the processing before the next data arrives.  I am watching the cpu usage in the task manager
    or the resource monitor or the performance monitor and see about the same thing, but i suspect that the cpu is actually busier than those are showing, for instance if i show the kernal time in the task manager it seems to be hanging about 25%, does that
    account for receiving the usb data and putting it in memory?  or would that be done by hardware and not require cpu cycles??  is there any way to monitor background activity that might be using the rest of the cpu time?  the developer says
    he tried all sorts of things to get higher cpu usage but couldn't get it much higher, even if running the threads in real time priority.  are there any unusual pitfalls or built in limitiations??

    Well you are asking us to do the dev's job while you don't even know what the job is. If the dev needs help (a big if, it seems the dev knows what he/she is doing) then the dev can ask here with specific goals (e.g. what part of program can be paralleled
    to utilize idle CPUs), with details about the architecture of the program (which you don't have).
    Also such rewriting comes with risks of breaking stuff that are already working besides labor cost. The dev may decide it is not worth the rewriting if the cost is too high compared
    benefits to the user, just saying. 
    Visual C++ MVP

  • High CPU usage CTM message handler (i think)

    Hi
    I recently reboot my asa 5520, I was trying to remove webvpn listening from my outside nic, even though it wasn't configured !
    Since then I am getting these messages
    Jan 21 2013 12:00:59: %ASA-4-402127: CRYPTO: The ASA is skipping the writing of latest Crypto Archive File as the maximum # of files ( 2 ) allowed have been written to < disk0:/crypto_archive >. Please archive & remove files from < disk0:/crypto_archive > if you want more Crypto Archive Files saved
    Jan 21 2013 12:00:59: %ASA-4-402124: CRYPTO: The ASA hardware accelerator encountered an error (HWErrAddr= 0x0, Core= 226, HwErrCode= 32, IstatReg= 0x2, PciErrReg= 0x0, CoreErrStat= 0x8, CoreErrAddr= 0x48804F90, Doorbell Size[0]= 1024, DoorBell Outstanding[0]= 0, Doorbell Size[1]= 0, DoorBell Outstanding[1]= 0, SWReset= 42418851)
    Jan 21 2013 12:00:59: %ASA-4-402127: CRYPTO: The ASA is skipping the writing of latest Crypto Archive File as the maximum # of files ( 2 ) allowed have been written to < disk0:/crypto_archive >. Please archive & remove files from < disk0:/crypto_archive > if you want more Crypto Archive Files saved
    Jan 21 2013 12:01:03: %ASA-4-402124: CRYPTO: The ASA hardware accelerator encountered an error (HWErrAddr= 0x0, Core= 226, HwErrCode= 32, IstatReg= 0x2, PciErrReg= 0x0, CoreErrStat= 0x8, CoreErrAddr= 0x48804F90, Doorbell Size[0]= 1024, DoorBell Outstanding[0]= 0, Doorbell Size[1]= 0, DoorBell Outstanding[1]= 0, SWReset= 42418852)
    I have removed the archive files but it still keeps complaining !
    show processes cpu-usage shows
    0x08158ce1   0x6ddb69f4    57.1%    57.1%    57.1%   CTM message handler
    when i reloaded the asa I used the fast-reload option
    I can't seem to find anything about this process or maybe how to kill it or ...
    Cisco Adaptive Security Appliance Software Version 8.4(1)
    Device Manager Version 6.4(1)
    show processes cpu-hog
    Process:      Dispatch Unit, NUMHOG: 18030, MAXHOG: 49, LASTHOG: 2
    LASTHOG At:   12:10:30 AEDT Jan 21 2013
    PC:           0x081ecc51 (suspend)
    Call stack:   0x081ecc51  0x080680cc
    Process:      Dispatch Unit, PROC_PC_TOTAL: 6027722, MAXHOG: 268, LASTHOG: 3
    LASTHOG At:   12:10:39 AEDT Jan 21 2013
    PC:           0x081ececa (suspend)
    Process:      Dispatch Unit, NUMHOG: 6026714, MAXHOG: 268, LASTHOG: 3
    LASTHOG At:   12:10:39 AEDT Jan 21 2013
    PC:           0x081ececa (suspend)
    Call stack:   0x081ececa  0x080680cc
    Process:      CTM message handler, NUMHOG: 28781099, MAXHOG: 328, LASTHOG: 128
    LASTHOG At:   12:10:40 AEDT Jan 21 2013
    PC:           0x08158ce1 (suspend)
    Call stack:   0x080680cc
    Process:      CTM message handler, PROC_PC_TOTAL: 42421460, MAXHOG: 329, LASTHOG: 128
    LASTHOG At:   12:10:40 AEDT Jan 21 2013
    PC:           0x08158ce1 (suspend)
    I was planning to do another reload without the fast reload option but I am not sure that will solve the problem !
    Alex

    Sounds like a bug to me, i would open a TAC case to get it further troubleshot.

  • Dispatch Unit - High Cpu Usage

    Hi,
    ASA5510 8.2.5(50)
    The Dispatch unit process is contantly having high cpu usage for last 10 hours.
    Things checked:
    1. show proc cpu-usage
    2. show perf 
        It seems fine . Output attached
    3. Show interfaces for error
        No error, overruns, underrruns on interfaces
    4. show traffic 
        Total cumulative through put on approx 4 Mbps.
         drop rate max is 3 pkts /sec randomly and rare occurance on some interfaces
         5. Connections and Xlate seem normal.
             approx 1100.
          Counters were reset 1 hour before the data was collected.
    # sh cpu usage 
    CPU utilization for 5 seconds = 39%; 1 minute: 38%; 5 minutes: 44%
    # sh processes cpu-usage sorted 
    PC         Thread       5Sec     1Min     5Min   Process
    081aadc4   a79aff7c    35.7%    37.5%    42.5%   Dispatch Unit
    0853f89e   a79a0b68     0.4%     0.2%     0.2%   ARP Thread
    # show perfmon 
    PERFMON STATS:                     Current      Average
    Xlates                                0/s          0/s
    Connections                          21/s         32/s
    TCP Conns                            17/s         28/s
    UDP Conns                             1/s          1/s
    URL Access                            0/s          0/s
    URL Server Req                        0/s          0/s
    TCP Fixup                             0/s          0/s
    TCP Intercept Established Conns       0/s          0/s
    TCP Intercept Attempts                0/s          0/s
     sh interface e0/0 | inc overrun
    0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
    fw01/act# sh interface e0/1 | inc overrun
    0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
    # sh conn all
    1135 in use, 8777 most used
    # sh xlate count 
    112 in use, 265 most used
    # show asp drop frame 
      No route to host (no-route)                                                870
      Flow is denied by configured rule (acl-drop)                            103915
      First TCP packet not SYN (tcp-not-syn)                                    1317
      Bad TCP checksum (bad-tcp-cksum)                                             2
      TCP failed 3 way handshake (tcp-3whs-failed)                              6695
      TCP RST/FIN out of order (tcp-rstfin-ooo)                                 4025
      TCP packet SEQ past window (tcp-seq-past-win)                               13
      TCP Out-of-Order packet buffer full (tcp-buffer-full)                     1949
      TCP Out-of-Order packet buffer timeout (tcp-buffer-timeout)                600
      TCP RST/SYN in window (tcp-rst-syn-in-win)                                   5
      TCP dup of packet in Out-of-Order queue (tcp-dup-in-queue)                 617
      TCP packet failed PAWS test (tcp-paws-fail)                               1248
      IPSEC tunnel is down (ipsec-tun-down)                                        2
      Slowpath security checks failed (sp-security-failed)                      1699
      DNS Inspect id not matched (inspect-dns-id-not-matched)                      4
      FP L2 rule drop (l2_acl)                                                 15436
      Dropped pending packets in a closed socket (np-socket-closed)                2
    Please let us know what reason can be there for high cpu usage by Dispatch unit under current statistics?
    What else should be checked  to ensure cpu usage comes down?
    Regards,
    Gurjit Singh
    Network Engineer
    Spooster IT Services.

    Hi Gurjar,
    r u getting the below mentioned syslog messages?
    Flow is denied by configured rule (acl-drop)                            103915
    106023, 106100, 106004
    TCP Out-of-Order packet buffer full (tcp-buffer-full)                     1949
    TCP Out-of-Order packet buffer full:
    This counter is incremented and the packet is dropped when appliance receives an
    out-of-order TCP packet on a connection and there is no buffer space to store this packet.
    Typically TCP packets are put into order on connections that are inspected by the
    appliance or when packets are sent to SSM for inspection. There is a default queue size
    and when packets in excess of this default queue size are received they will be dropped.
    Recommendations:
    On ASA platforms the queue size could be increased using queue-limit configuration
    under tcp-map.
    Similarly you need to check many reasons for the asp drop logs that you have captured and you need to monitor how much it is increasing and the difference.......
    but 40 % CPU utilization is a okay kind of thing and you do not need to worry if that happens only during peak hours ans it is not increasing drastically more and more.
    http://www.cisco.com/c/en/us/td/docs/security/asa/asa82/command/reference/cmd_ref/s2.html#wp1435096
    Regards
    Karthik

Maybe you are looking for