Java thread with high CPU usage

Hi,
Running prstat -L -p pid on Solaris produces a list of lwp threads running in that process that are consuming the most CPU. Out of about 7 threads that were associated with kernel threads in pstack output, only 5 of them were mapped to a JVM thread dump. How is it possible to have a Java thread consuming CPU that doesn't show up in a thread dump?
Thanks,
J.S.

And, any idea what this thread is doing?
Here's pstack output for this missing thread 12:
----------------- lwp# 18 / thread# 12 --------------------
fe0e48b4 __1cHCompileSflatten_alias_type6kMpknHTypePtr__3_ (b6001780, 100360, fe4c8000, b6001780, 100360, 0) + 4d8
fe0f42ac __1cHCompilePget_alias_index6kMpknHTypePtr__I_ (b6001780, 100360, b6001264, 7e2bb8, 41f4, 7e2bb8) + 8
fe11131c __1cJStoreNodeFIdeal6MpnIPhaseGVN_pnLPhaseDefUse__pnENode__ (0, 7dd5b4, 5035ec, 7e2bb8, b6001144, b6001264) + 128
fe0c1224 __1cMPhaseIterGVNNtransform_old6MpnENode__2_ (0, b6001144, 7e2bb8, b6001264, 7e2bb8, b600116c) + 47c
fe17349c __1cMPhaseIterGVNIoptimize6M_v_ (24, 0, a37700, b6001110, b6001100, 3442f0) + b4
fe1943b0 __1cOPhaseIdealLoop2t6MrnMPhaseIterGVN_pk0_v_ (b6000ee8, a3772c, 1, 4ff37c, 2000, 269568) + 7cc
fe1cc89c __1cHCompileIOptimize6M_v_ (b6001780, b60015b8, b6001780, b60015dc, 0, b60013dc) + a0
fe1cb69c __1cHCompile2t6MpnFciEnv_pnHciScope_pnIciMethod_ill_v_ (91f504, b6001800, db8a24, fe5296b4, b60018a0, b60018b0) + 7bc
fe1c73f8 __1cKC2CompilerOcompile_method6MpnFciEnv_pnHciScope_pnIciMethod_il_v_ (27b18, b6001af8, db8a24, db8938, ffffffff, 1) + 70
fe1c79fc __1cNCompileBrokerZinvoke_compiler_on_method6FpnLCompileTask__v_ (db8938, db8a24, fe4eacec, 0, 0, 8d9) + 40c
fe280964 __1cNCompileBrokerUcompiler_thread_loop6F_v_ (28758, 13a570, fe4c8000, b6001d10, fe4c8000, ffffffff) + 168
fe216200 __1cKJavaThreadDrun6M_v_ (b5e02000, fe4d3e34, fe4c8000, 1ffd70, 13a570, 1ffd70) + 3d8
fe213ec8 _start   (fe4c8000, ff325d10, 0, 5, 1, fe401000) + 20
ff36b734 threadstart (13a570, 0, 0, 0, 0, 0) + 40

Similar Messages

  • Since 10.4.6 Update: "ATSServer" with high CPU-usage when opening PDFs

    Since I've updated to 10.4.6 my system is very slow when I open PDFs (in "Preview" or "Acrobat").
    This is caused by the process "ATSServer" which goes through every file in "~/Library/Fonts" (I have over 4.800 files there - but just a view are activated by "FontBook") and so it takes very high CPU-usage.
    I didn't have this problem bevore the update and I didn't make any changes on my font settings.
    I've cleaned the font cache, but it doesn't help.
    Any ideas?
    Ciao
    Mephizo
    PS: Excuse my poor English.
    PowerBook G4 17'' 1.67 GHz   Mac OS X (10.4.6)  
    PowerBook G4 17'' 1.67 GHz   Mac OS X (10.4.6)  

    I haven't noticed any change myself, Dan, but I have the 2 GHz model.
    One thing I HAVE noticed though after OS updates is that they can often result in a fair amount of file and free space fragmentation immediately after installation. OSX's routines will deal with fragmentation of small files , but not of large ones (over 20 Meg), and it won't deal very effectively with free space fragmentation. If your HD is getting full this can cause significant slowdowns, especially where video is involved.
    You should also run DiskUtility and check for any directory and permissions issues.
    Cheers
    Rod

  • High number of threads and high CPU usage on a single instance

    Without any apparent reason, in some moments of day the website reports an increment of the HTTP Queue Length from an average of 10/20 queued requests to 100/200 and more.
    In that period of time the Average Response Time increases but the number of the requests on the website don't. Even increasing the instances it doesn't help to resolve the problem (maybe it just reduced it).
    It seems that the problem is not related to the traffic on the site. This issue happens either when the traffic is high or low.
    The autoscaling works well, we don't have peak of traffic but always a slow increasing of requests and the CPU is always below the 50% (memory too). The issue is resolved by the swap of the site and sometimes it's resolve by itself after a while.
    What I discovered when the issue happens, is that there's an instance (just an instance only), that has an high number of threads and CPU usage on the W3WP.exe process and these values are above the mean than the other instances. Eg, instances are around
    50/60 threads and 10/20% of CPU, the instance with the problem has 200 threads and 50/60% of CPU. If I kill the W3WP process on that instance the issue is resolved. 
    I monitored the HTTP requests, I tried the website extension "Diagnostics as service" but I can't discover anything that can help me to understand the problem. Of course, there are many requests that go in timeout but it is a consequences of a
    unresponsive instance.
    On the web hosting plan there are only two sites: the production site and its staging which is used for update of the production only and it's always sleeping. Plus, no webjobs are running on this site.
    What can I do to gather useful information that can help me to understand the reason of this problem?
    Thank you!

    "Does the instance with the high counts receive more traffic than the other instances? Is it possible that the load balancer not
    working the way it should be?"
    How can I get that information? I can't see metrics for a specific instance
    "Does it always happen to the first instance?"
    I will check it better, but in the order given by the Processes panel it's the second instance which has the issue. The scaling is at 2 instances for the most part of the time (it's the minimum).
    Maybe one time it was the 3th instance but I'm not sure, I'll give it more attention.
    " How long do these moment last?"
    The time can be 10 to 30 minutes, but I fix it as soon as I see the problem. It's not the down-scaling to resolve it because in these situations the CPU as well is high so the scaling holds or increases the number of instances.
    "- How often do these moments occurs?"
    It occurs quite often, 2/4 times a week.

  • Having Issues with High CPU Usage with fluxbox & pekwm

    Greetings,
    I have searched for this issue and it seems that something similar has happened in the past with an old xorg, and it seems that someone is having a similar issue that they can point to kde as being the culrpit. However in my case, this is a fresh install and is not using any kde libs. Please allow me to explain the issue.
    The power supply on my main computer finally gave out, and being incredibly poor at the moment I can not yet replace it. So, I pull out an older computer that I had once set up for my kids, but took it away from them when they were abusing it. I always make backup dvds and such monthly so I didn't have to worry about any lose of data, however I desired to keep my larger hard drives from my main computer. After testing to ensure that the hard drives were fine, I did some minor surgery, and did a fresh install of arch linux onto my back up computer. Since I prefer pekwm, I installed pekwm as my wm of choice, and outfitted it quickly with mpd+sonata, firefox, pcmanfm, and tint2. Then I rebooted into my pekwm 'desktop'.
    It was running sluggish. Firefox was easily maxing the cpu up and beyond 100% and it felt ten times worse than any heavy DE I used in the past. I checked to make sure I had the right video driver installed. As this computer runs a 64MB nVidia GeForce2 MX with TV out video card, I searched nvidia's page and the arch wiki, noting that the driver needed is nvidia-96xx. Well I had already suspected that during install, and thus had installed such driver. I double checked my xorg.config and it has the right driver listed.
    So I checked out some lighter browsers. I tried both Midori and Iron (which is similar to Chrome but without google spyware or whatever). Well both run better than firefox, Midori being the lightest one, but Iron quickly being my favorite. Still, the problem remained. Moving windows caused cpu spikes, opening more than one tab, or more than one program caused cpu spikes and the computer to slow down and sputter, freezing at times.
    So I tried out another wm, fluxbos, which is another of my favorites. Seemed somewhat better but only fractionally, which I consider odd because pekwm has always seemed snappier than fluxbox to me in the past. Running lxtask (still mouse dependent, sorry lol), I was able to take note of the following...
    FLUXBOX
    lxtask 6% CPU usage average
    PCManFM 5% CPU Average
    Fluxbox 1% to 2% cpu usage
    gksu 3% cpu usage
    pidgin 3% to 7% cpu usage
    firefox up to 62% cpu usage
    midori up to 38% cpu usage
    iron up to 50% cpu usage
    mpd 11% cpu uage
    Xorg (with no window movement) 2% cpu usage
    Xorg (moving windows around) up to 80% cpu usage
    PEKWM
    lxtask 6% CPU
    pidgin 7% cpu
    tint2 1% cpu
    pekwm 1% to 5% cpu
    pcmanfm 7% cpu
    firefox up to 85% cpu
    python 1% cpu
    midori up to 38% cpu
    iron up to 25% cpu (odd...)
    Xorg (with no window movement) 1% cpu
    Xorg (when moving windows around) up to 80% cpu
    Both were using around 118 MB RAm and weren't yet touching swap. As I see it I am  thinking xorg  or video driver related, yet I already made sure that I had the correct video driver. Here's my Xorg.conf
    # nvidia-xconfig: X configuration file generated by nvidia-xconfig
    # nvidia-xconfig: version 1.0 (buildmeister@builder63) Thu Jun 25 18:57:07 PDT 2009
    Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0" 0 0
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Mouse0" "CorePointer"
    EndSection
    Section "Files"
    EndSection
    Section "InputDevice"
    # generated from default
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "no"
    Option "ZAxisMapping" "4 5"
    EndSection
    Section "InputDevice"
    # generated from default
    Identifier "Keyboard0"
    Driver "kbd"
    EndSection
    Section "Monitor"
    Identifier "Monitor0"
    VendorName "Unknown"
    ModelName "Unknown"
    HorizSync 30.0 - 110.0
    VertRefresh 50.0 - 150.0
    Option "DPMS"
    EndSection
    Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    Modes "1600x900" "1024x768" "800x600" "640x480"
    EndSubSection
    EndSection
    Here's some specs on this computer, including video cards and such...
    Computer
    Summary
    Computer
    Processor Intel(R) Pentium(R) 4 CPU 1.60GHz
    Memory 1034MB (239MB used)
    Operating System Arch Linux
    User Name mythus (Travis K. Randall)
    Date/Time Thu 08 Oct 2009 05:24:52 PM CDT
    Display
    Resolution 1600x900 pixels
    OpenGL Renderer GeForce2 MX/AGP/SSE2
    X11 Vendor The X.Org Foundation
    Multimedia
    Audio Adapter ICH - Intel 82801BA-ICH2
    Input Devices
    Macintosh mouse button emulation
    AT Translated Set 2 keyboard
    Power Button
    Power Button
    PC Speaker
    Logitech USB Optical Mouse
    Printers
    No printers found
    SCSI Disks
    ATA ST3160212A
    ATA IC35L090AVV207-0
    LITE-ON LTR-16102B
    TSSTcorp CD/DVDW TS-H552D
    Operating System
    Version
    Kernel Linux 2.6.30-ARCH (i686)
    Compiled #1 SMP PREEMPT Wed Sep 9 12:37:32 UTC 2009
    C Library GNU C Library version 2.10.1 (stable)
    Default C Compiler GNU C Compiler version 4.4.1 (GCC)
    Distribution Arch Linux
    Current Session
    Computer Name norova
    User Name mythus (Travis K. Randall)
    Home Directory /home/mythus
    Desktop Environment Unknown (Window Manager: Fluxbox)
    Misc
    Uptime 11 hours, 38 minutes
    Load Average 0.20, 0.38, 0.34
    Kernel Modules
    Loaded Modules
    ipv6 IPv6 protocol stack for Linux
    reiserfs ReiserFS journaled filesystem
    usbhid USB HID core driver
    hid
    arc4 ARC4 Cipher Algorithm
    ecb ECB block cipher algorithm
    snd_seq_dummy ALSA sequencer MIDI-through client
    rt2500pci Ralink RT2500 PCI & PCMCIA Wireless LAN driver.
    snd_seq_oss OSS-compatible sequencer module
    rt2x00pci rt2x00 pci library
    snd_seq_midi_event MIDI byte <-> sequencer event coder
    rt2x00lib rt2x00 library
    snd_seq Advanced Linux Sound Architecture sequencer.
    led_class LED Class Interface
    snd_seq_device ALSA sequencer device management
    input_polldev Generic implementation of a polled input device
    mac80211 IEEE 802.11 subsystem
    snd_intel8x0 Intel 82801AA,82901AB,i810,i820,i830,i840,i845,MX440; SiS 7012; Ali 5455
    uhci_hcd USB Universal Host Controller Interface driver
    snd_pcm_oss PCM OSS emulation for ALSA.
    fan ACPI Fan Driver
    cfg80211 wireless configuration support
    ppdev
    ehci_hcd USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    snd_mixer_oss Mixer OSS emulation for ALSA.
    snd_ac97_codec Universal interface for Audio Codec '97
    nvidia
    lp
    eeprom_93cx6 EEPROM 93cx6 chip driver
    parport_pc PC-style parallel port driver
    ohci1394 Driver for PCI OHCI IEEE-1394 controllers
    parport
    psmouse PS/2 mouse driver
    ac97_bus
    ieee1394
    serio_raw Raw serio driver
    8139too RealTek RTL-8139 Fast Ethernet driver
    e100 Intel(R) PRO/100 Network Driver
    snd_pcm Midlevel PCM code for ALSA.
    pcspkr PC Speaker beeper driver
    battery ACPI Battery Driver
    8139cp RealTek RTL-8139C+ series 10/100 PCI Ethernet driver
    snd_timer ALSA timer interface
    i2c_core I2C-Bus main module
    iTCO_wdt Intel TCO WatchDog Timer Driver
    mii MII hardware support library
    evdev Input driver event char devices
    snd Advanced Linux Sound Architecture driver for soundcards.
    ac ACPI AC Adapter Driver
    iTCO_vendor_support Intel TCO Vendor Specific WatchDog Timer Driver Support
    usbcore
    soundcore Core sound module
    sg SCSI generic (sg) driver
    shpchp Standard Hot Plug PCI Controller Driver
    snd_page_alloc Memory allocator for ALSA system.
    processor ACPI Processor Driver
    thermal ACPI Thermal Zone Driver
    pci_hotplug PCI Hot Plug PCI Core
    intel_agp
    button ACPI Button Driver
    agpgart AGP GART driver
    rtc_cmos Driver for PC-style 'CMOS' RTCs
    rtc_core RTC class support
    rtc_lib
    ext4 Fourth Extended Filesystem
    mbcache Meta block cache (for extended attributes)
    jbd2
    crc16 CRC16 calculations
    sr_mod SCSI cdrom (sr) driver
    cdrom
    sd_mod SCSI disk (sd) driver
    ata_piix SCSI low-level driver for Intel PIIX/ICH ATA controllers
    ata_generic low-level driver for generic ATA
    pata_acpi SCSI low-level driver for ATA in ACPI mode
    libata Library module for ATA devices
    floppy
    scsi_mod SCSI core
    Display
    Display
    Display
    Resolution 1600x900 pixels
    Vendor The X.Org Foundation
    Version 1.6.3.901
    Monitors
    Monitor 0 1600x900 pixels
    Extensions
    BIG-REQUESTS
    Composite
    DAMAGE
    DOUBLE-BUFFER
    DPMS
    DRI2
    GLX
    Generic Event Extension
    MIT-SCREEN-SAVER
    MIT-SHM
    NV-CONTROL
    NV-GLX
    RANDR
    RECORD
    RENDER
    SECURITY
    SHAPE
    SYNC
    X-Resource
    XC-MISC
    XFIXES
    XFree86-DGA
    XFree86-VidModeExtension
    XINERAMA
    XInputExtension
    XKEYBOARD
    XTEST
    XVideo
    OpenGL
    Vendor NVIDIA Corporation
    Renderer GeForce2 MX/AGP/SSE2
    Version 1.5.8 NVIDIA 96.43.13
    Direct Rendering Yes
    Processor
    Processor
    Processor
    Name Intel(R) Pentium(R) 4 CPU 1.60GHz
    Family, model, stepping 15, 1, 2 (Pentium 4)
    Vendor Intel
    Configuration
    Cache Size 256kb
    Frequency 1594.77MHz
    BogoMIPS 3190.44
    Byte Order Little Endian
    Features
    FDIV Bug no
    HLT Bug no
    F00F Bug no
    Coma Bug no
    Has FPU yes
    Cache
    Cache information not available
    Capabilities
    fpu Floating Point Unit
    vme Virtual 86 Mode Extension
    de Debug Extensions - I/O breakpoints
    pse Page Size Extensions (4MB pages)
    tsc Time Stamp Counter and RDTSC instruction
    msr Model Specific Registers
    pae Physical Address Extensions
    mce Machine Check Architeture
    cx8 CMPXCHG8 instruction
    apic Advanced Programmable Interrupt Controller
    sep Fast System Call (SYSENTER/SYSEXIT)
    mtrr Memory Type Range Registers
    pge Page Global Enable
    mca Machine Check Architecture
    cmov Conditional Move instruction
    pat Page Attribute Table
    pse36 36bit Page Size Extensions
    clflush Cache Line Flush instruction
    dts Debug Store
    acpi Thermal Monitor and Software Controlled Clock
    mmx MMX technology
    fxsr FXSAVE and FXRSTOR instructions
    sse SSE instructions
    sse2 SSE2 (WNI) instructions
    ss Self Snoop
    ht HyperThreading
    tm Thermal Monitor
    up smp kernel running on up
    pebs Precise-Event Based Sampling
    bts Branch Trace Store
    Memory
    Memory
    Total Memory 1034084 kB
    Free Memory 94276 kB
    Buffers 40536 kB
    Cached 700112 kB
    Cached Swap 0 kB
    Active 170788 kB
    Inactive 726844 kB
    Active(anon) 74112 kB
    Inactive(anon) 88348 kB
    Active(file) 96676 kB
    Inactive(file) 638496 kB
    Unevictable 12 kB
    Mlocked 12 kB
    High Memory 139144 kB
    Free High Memory 252 kB
    Low Memory 894940 kB
    Free Low Memory 94024 kB
    Virtual Memory 2931852 kB
    Free Virtual Memory 2931852 kB
    Dirty 12 kB
    Writeback 0 kB
    AnonPages 156996 kB
    Mapped 57392 kB
    Slab 24260 kB
    SReclaimable 18864 kB
    SUnreclaim 5396 kB
    PageTables 1376 kB
    NFS_Unstable 0 kB
    Bounce 0 kB
    WritebackTmp 0 kB
    CommitLimit 3448892 kB
    Committed_AS 404212 kB
    VmallocTotal 122880 kB
    VmallocUsed 27648 kB
    VmallocChunk 52368 kB
    DirectMap4k 32760 kB
    DirectMap4M 876544 kB
    Benchmarks
    CPU Blowfish
    CPU Blowfish
    This Machine 1595 MHz 50.176
    Intel(R) Celeron(R) M processor 1.50GHz (null) 26.1876862
    PowerPC 740/750 (280.00MHz) (null) 172.816713
    CPU CryptoHash
    CPU CryptoHash
    This Machine 1595 MHz 11.071
    CPU Fibonacci
    CPU Fibonacci
    This Machine 1595 MHz 74.202
    Intel(R) Celeron(R) M processor 1.50GHz (null) 8.1375674
    PowerPC 740/750 (280.00MHz) (null) 58.07682
    CPU N-Queens
    CPU N-Queens
    This Machine 1595 MHz 132.704
    FPU FFT
    FPU FFT
    This Machine 1595 MHz 104.630
    FPU Raytracing
    FPU Raytracing
    This Machine 1595 MHz 212.639
    Intel(R) Celeron(R) M processor 1.50GHz (null) 40.8816714
    PowerPC 740/750 (280.00MHz) (null) 161.312647
    So what I am wanting help with is finding the solution to the cpu usage so that I can use this computer at least until I can afford a new power supply or whatever. I am open to any good suggestions, though I must state I am not really interested in tiling wm's at the moment. I am just not a true minimalist.
    Thanks in advance for any and all help. I understand that there is a lot of info in this post, but it is my hope that with this info the problem can be solved. If there is info I didn't provide that is needed, please let me know.

    also check that you have
    session.screen0.opaqueMove false
    in your .fluxbox/init  this will probably help a bit if it is currently true,
    Last edited by Cyrusm (2009-01-26 13:52:13)

  • Constant SBBOD with high cpu usage

    Hi
    since a couple of days ago I constantly get the SBBOD (spinning beach ball of death) on a Mac mini 2011 with Lion 10.7.3.
    The system hangs up completely and the only this I can do is click around  and move the windows but the clicks don't do anything and at some point after that everything just stops responding.
    At this point I'm forced to do a hard reboot (power switch).
    After that the system works for a while and then gets the SBBOD again.
    During the SBBOD I can see syslog hogging all my cpu usage in activity monitor, but when I try to kill it or click into activity monitor the programm doesn't respond.
    I guessed that something else was spaming syslogd with messages but after the hard reboot I don't see anything in console.
    Since then I tried almost everything.
    - hardware test, the short and long one -> nothing found
    - repairing hard drive and permissions -> didn't help
    - S.M.A.R.T says  verified
    - PRAM and NVRAM reset
    - logged into guest account and started nothing -> SSBOD after ~hour
    - started into save mode and left the comp running -> SSBOD after ~hour
    - reformated(not zeroed) and reinstalled Lion(not from a backup) -> SSBOD after ~hour
    Currently I'm trying to disable syslogd to see if some other process hogs all my cpu load instead of it.
    I really hope one of you can help me, this thing is driving me nuts :/

    Repairing the permissions of a home folder in Lion is a complicated procedure. I don’t know of a simpler one that always works.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the page that opens.
    Drag or copy – do not type – the following line into the Terminal window, then press return:
    chmod -R -N ~
    The command will take a noticeable amount of time to run. When a new line ending in a dollar sign ($) appears below what you entered, it’s done. You may see a few error messages about an “invalid argument” while the command is running. You can ignore those. If you get an error message with the words “Permission denied,” enter this:
    sudo !!
    You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up.
    Next, boot from your recovery partition by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the recovery desktop appears, select Utilities ▹ Terminal from the menu bar.
    In the Terminal window, enter “resetpassword” (without the quotes) and press return. A Reset Password window opens.
    Select your boot volume if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select  ▹ Restart from the menu bar.

  • Java Process with High CPU

    I have a java process running on HP-UX with a 1.4.2 JVM. This program is using some third-party code (quartz) to act as a batch scheduler similar to cron. When running in production, the process runs fine for several days and then starts maxing out the CPU. The server has 8 cpu's and the last time the problem occured, 4 of the cpu's were 100% in use with this process.
    I've tried sending a "kill -3 pid" but I can't seem to get a thread dump. I've eventually gotten some 700Meg core files. Is there anyway to use these core files to tell me what is going on?
    Any ideas on how to trouble shoot this problem? We've used some profilers but we can't duplicate the problem on test servers so we aren't learning anything new.
    Thanks,
    Brian

    Try pstack to read the stacks of the threads in the process.
    Try pldd to determine the shared libraries in the process then
    use truss to trace calls in any of these libraries to determine where
    the cycles are being spent.

  • Timer-thread with xtreme cpu usage

    Hi,
    I have a loop which looks like this
    while(true) {
    ntime = my.format(newDate());
    if(ntime.equals(trigtime) {
    do_somezing();
    well, this loop is in the public void run() and the problem is that it consumes the whole cpu.
    is there a way to start something at a fixed time? Working with start in x hours is not possilbe it as to start at 17:30 for example......starting every x hour is much more friendly to the system...no wonder....as it put's the thread to sleep.
    big thx
    LoCal

    You're not giving up any CPU time in your Thread. In any given Thread, you need to "rest" for some time to allow other processes on your computer to run:while (true) {
       nTime = myFormat(newDate());
       if (nTime.equals(trigtime)) {
          // do something
       try {
          this.sleep(200);
       catch (InterruptedException iE) {
          // Handle Interrupted Exception
    That will wait 200ms between time checks.  You can adjust this time as necessary.
    Michael Bishop                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • High CPU Usage on Terminalserver (Win2k3)

    Hi,
    at the moment we are running an Exchange 2010 SP3 in combination with Outlook 2010 (Ver. 14.0.6123.5001 32bit).
    Outlook is installed on Windows 7 fat clients, but most users access their mailbox with Outlook running on a Win2k3 Terminalserver (extended support till 2016).
    While the users on the fat clients don't have any problems, the thin client users experience problems with high cpu usage.
    Following example:
    Terminalserver, 12 users, 6 running Outlook, 2 users splitting almost the whole cpu between them (usage around 90-100%).
    This makes working on that terminalserver nearly impossible.
    I tried safe mode, I tried disabling their add-ins, I tried deleting their terminalserver profile to no avail.
    How can I figure out what's causing this?

    Hi,
    Anti Virus email scanners are known to cause similar behavior, please first check if you have any Anti Virus scanner integrated with Outlook. Try to disable it, and check result.
    A corrupted data file might also cause this kind of issue, try to repair your data file with Scanpst.exe tool.
    Please refer to this article on how to use scanpst.exe:
    http://office.microsoft.com/en-us/outlook-help/repair-outlook-data-files-pst-and-ost-HA102749454.aspx
    Please also have a look at this thread, try the workarounds in it and see if issue persists:
    http://answers.microsoft.com/en-us/office/forum/officeversion_other-outlook/constant-high-cpu-usage-when-outlook-open/b9a66791-ab73-4ecd-a73d-edf27102aa4e
    Hope this helps.
    Thanks,
    Ethan Hua CHN
    TechNet Community Support

  • SCCM 2012 R2 Linux\Unix Client High CPU Usage

    Hello,
    We have recently implemented SCCM 2012 R2 in a mixed Windows \ Solaris \ RHEL environment. The Unix\Linux client are at the SCCM 2012 R2 CU2 - Version
    5.00.7958.1024.
    A small number of system outages have occured recently on the Linux & Solaris systems. SCCM is one of several candidate causes.
    One issue we have seen on these systems is high CPU usage by ccmexed.bin
    The TOP command shows the process regulalry using more than 100% of a single CPU core.
    The PRSTAT command shows a more resonable CPU usage accross all cores.
    However, in both cases the process is using significantly more CPU resource than other systems processes - including SAP and Oracle.
    Are there any known issues\reported bugs with high CPU usage on RHEL 5 & 6 and Solaris 10 x86?
    I know CU3 for Unix\Linux has just been released and I will certainly be looking at applying that in the environment - more
    expeditiously
    if this is a recognised issue and fixed in CU3
    Regards, Chris

    Hi Chris,
    Yes, the latest Clients Clients Clients including bug fixes and added support for RHEL 7, CentOS 7, and Oracle Linux 7
    Please apply the fix and see how it goes.
    http://www.microsoft.com/en-us/download/details.aspx?id=39360
    Thanks.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • High cpu usage after a while

    Sometimes, after a while, firefox (36.0.4) uses up 1 core of my CPU (is a quad core due to hypertreading). The way it happens is really strange. Many tabs without a problem until suddenly ff decides to floor it. This is alway in the run, not on startup or close. All add-ons need to ask my permissions to be activated, this includes flash.
    On close, I ordered ff to clear all history and cookies.
    Notes that could be important (The behavior encountered while using it. This varies from time to time):
    opening new tabs (a lot or a few) => "heavy" load during site loading, then idling
    ==> The above makes sense
    - same as above but load continues to be heavy. => could be some badly written javascript on the site, however, sometimes this occurs with sites I know have no stressful javascript
    ==> The above seems odd
    - Browser is idle in the background (not actively using it). Then all of the sudden "lets floor it until closed".
    ==> The above seems pretty odd
    - When confronted with high CPU usage, closing ff doesn't close it (the ff process remains active. Not a ff process, THE ff process). => High CPU usage remains
    ==> The above looks like that there is definitely something wrong here
    This last one has some other things to keep in mind
    - When it happens and I close ff, upon restarting it it will ALWAYS ask to close ff. After confirming to close it, it will start and behave normally.
    - When killing ff via the task-manager, or other means like powershell commands, restarting it will result in an idle ff even after every tab is loaded again.
    I hope this isn't a heisenbug and there is a solution to this, a reboot ff button would be a nice workaround though. I personally think that it must be some routine in the code that decides to go nuts for no reason.
    If you need further details, feel free to ask.
    Thanks in advance

    Tried those before and tried them again. Unfortunately, the problem keeps repeating itself at random times. As said, sometimes it doesn't occur and sometimes suddenly it does. Keep the following things in mind about this, what seems like a heisenbug, behavior.
    - opening new tabs (a lot or a few) => "heavy" load during site loading, then idling
    ==> The above makes sense
    - same as above but load continues to be heavy. => could be some badly written javascript on the site, however, sometimes this occurs with sites I know have no stressful javascript
    ==> The above seems odd
    - Browser is idle in the background (not actively using it). Then all of the sudden "lets floor it until closed".
    ==> The above seems pretty odd
    - When confronted with high CPU usage, closing ff doesn't close it (the ff process remains active. Not a ff process, THE ff process). => High CPU usage remains
    ==> The above looks like that there is definitely something wrong here
    As stated, a reboot ff button would be a nice workaround. I personally think that something like a tread must get stuck in some sort of infinite loop. Browsing in ff works just fine though. I just don't like the fact that I turns into a "gasoline guzzler".
    Again, thanks in advance

  • High CPU Usage on C6509

    Good day, can someone analyze this for me, in regards with high cpu usage.
    2222222222222222222222222222222222333332222244444222222222
         8888555559999955555777773333344444000007777711111555559999
    100                                                           
    90                                                           
    80                                                           
    70                                                           
    60                                                           
    50                                                           
    40                                              *****        
    30  ************************          ************************
    20  **********************************************************
    10  **********************************************************
        0....5....1....1....2....2....3....3....4....4....5....5....
                  0    5    0    5    0    5    0    5    0    5   
                   CPU% per second (last 60 seconds)
         4443333334443433334333333333333333333333343333333333333333
         1006530591135079734601132535328062177773414263667168577916
    100                                                           
    90                                                           
    80                                                           
    70                                                           
    60                                                           
    50                                                           
    40  *****  ********** **     * *  * *  ****  *  * *** ****** *
    30  #############**##*####*#*##*###*#*#########*##*****###****
    20  ##########################################################
    10  ##########################################################
        0....5....1....1....2....2....3....3....4....4....5....5....
                  0    5    0    5    0    5    0    5    0    5   
                   CPU% per minute (last 60 minutes)
                  * = maximum CPU%   # = average CPU%
         4744444545444444444444444444333344444444444444444434444444433344344444
         4547425182436632379924402500899822115303104140406471591734499730802883
    100                                                                       
    90                                                                       
    80   *                                                                   
    70   *                                                                   
    60   *                                                                   
    50   * *  ****  **   ***     *          *           *   ** *           **
    40  **********************************************************************
    30  #*******###**********##**********#********************************####
    20  ######################################################################
    10  ######################################################################
        0....5....1....1....2....2....3....3....4....4....5....5....6....6....7.
                  0    5    0    5    0    5    0    5    0    5    0    5    0
                       CPU% per hour (last 72 hours)
                      * = maximum CPU%   # = average CPU%
    Local_Backbone#sh proc cpu sorted 5sec
    CPU utilization for five seconds: 24%/16%; one minute: 27%; five minutes: 27%
    PID Runtime(ms)   Invoked      uSecs   5Sec   1Min   5Min TTY Process
    123  1380698152 938782622       1470  6.07%  6.66%  6.52%   0 IP Input        
       9    71590456 190912340        374  0.39%  0.48%  0.47%   0 ARP Input       
    213    53552228 246488976        217  0.23%  0.42%  0.48%   0 SNMP ENGINE     
    176     2804332  35409778         79  0.15%  0.02%  0.00%   0 OSPF Hello      
    319      918144  11719407         78  0.15%  0.01%  0.00%   0 OSPF Router 100 
       4         236       195       1210  0.07%  0.00%  0.00%   1 Virtual Exec    
    169     2374788   2035919       1166  0.07%  0.03%  0.00%   0 Adj Manager     
    118     5885520  15709517        374  0.07%  0.07%  0.07%   0 CDP Protocol    
      36       69788   9934569          7  0.07%  0.00%  0.00%   0 TTY Background  
    179    30669516 309965501         98  0.07%  0.23%  0.24%   0 IP SNMP
    need a quick opinion as i have another backbone abroad that uses only 5-10% of cpu usage.
    - same config
    - same setup (2BB for Sec/firewall, 2BB for Integration, 6Distro SW)
    - different number of users
    thank you and god bless.

    I also agree with Stephan that this is not a concern that the cpu you are seeing it sohuld reduce down.
    If in case still want to do the troubleshooting here is the procedure:
    Here are some of the commands you can refer while you see the high cpu:
    •1-  Show proc cpu sorted | ex 0.00%  >> First check whether CPU is due to Interrupt or due to Process Switching.
    Eg: CPU utilization for five seconds: 6%/2%; one minute: 2%; five minutes: 2%
    6% is total CPU utilization and 2 % is due to Interrupt. You would see this on a higher bit when you have the high cpu. Total-interrupt will give you the value of Process.
    More info: http://www.cisco.com/en/US/products/hw/switches/ps708/products_tech_note09186a00804916e0.shtml
    b) Show proc cpu history :---Check since how long is the CPU been affected.
    2- Check if there is any interface drops are been seen:
    show interface | include line|drops   ( Check if any vlan/interface are having input drops)
    3- check if there are any STP issue:
    show spanning tree detail
    show spann det | in ieee|from|occur|is exec
    show spann det | in executing | changes
    show interface | include line|drops
    show cef drop
    show ip traffic   >> Check the traffic utilization.
    4- There are some internal debugging which would help to find out which packets ( from Src,dst) is hitting the CPU:
    debug netdr capture rx  <<<<( DEBUG OF NETDR IS VERY USEFULL TO CHECK WHAT PACKETSS ARE COMING TO CPU)
    show netdr capture-packet  >> This will give you the captured outputs were you can see the Src and dst . Then you can take the action with those src ip address guys to check why they are punting the traffic.
    HTH
    Regards
    Inayath
    ***Plz rate if this info is helpfull.

  • DNS server process, high CPU usage

    Hello,
    I am having a problem with high CPU usage on DNS process. We have 1921 setup in network of about 100 workstations that use it as DNS server. It also performs split view functionality for couple of domains in order to avoid hairpin NAT. I know that a router is not fit for heavy server duty but such setup was unfortunately necessary.
    In peak work hours we oftenly have CPU hitting 100%  with DNS server process being the root cause,and on several occasions we had DNS process stuck in such state for prolonged periods of time during which other router functions were affected (t's a default gateway, IPsec concentrator etc.). Sometimes shutting the process and restarting it would solve the problem, but once it required a full reload in order to restore functionality (such was the description that engineer on duty reported to me).
    Forwarder queue statistics:
    Current size = 0
    Maximum size = 86
    Drops        = 0
    IOS upgrade did not help, we are currently running 15.2(2)T.
    The question is ... is such behaviour (CPU load) to be expected on LAN with 100 workstations due to slow CPU on router or we have bugged IOS DNS server (requiring a TAC case)?
    The previous solution seem to do this functionality quite nicely (even though it was also a router), so I am not inclined to think that we are dealing with someone DoS-ing the DNS (WAN access to DNS is of course forbidden)
    P.S.
    Since we moved servers off the routers DNS, we do not receive complaints, but we had a couple of unresolved messages a day while mail server was using router for DNS. I am suspecting that an old bug where IOS DNS servers occasionaly sends clients back empty DNS replies (properly formatted message but without A record) could be still around?

    hi,
    i have the same problem on UC540 and 2911 on IOS 15.0.1. CPU high, router crashed. Reboot helps but until CPU usage spikes again. the only fix is to remove "ip dns server" from config and use a different DNS server
                        111                       1111    1111111111
              999999999900077777777799999777778888000099990000000000
        322222111119999900077776666622222111119999000088880000000000
    100            ********                       ******************
     90       *************         *****     **********************
     80       ***************************     **********************
     70       ******************************************************
     60       ******************************************************
     50       ******************************************************
     40       ******************************************************
     30       ******************************************************
     20       ******************************************************
     10       ******************************************************
       0....5....1....1....2....2....3....3....4....4....5....5....6
                 0    5    0    5    0    5    0    5    0    5    0
                   CPU% per second (last 60 seconds)
    after removed IP dns server
                                           111                      
                                 99999999990007777777779999977777888
                  33333333332222211111999990007777666662222211111999
    100                               ********                      
     90                          *************         *****     ***
     80                          ***************************     ***
     70                          ***********************************
     60                          ***********************************
     50                          ***********************************
     40                          ***********************************
     30                          ***********************************
     20                          ***********************************
     10                          ***********************************
       0....5....1....1....2....2....3....3....4....4....5....5....6
                 0    5    0    5    0    5    0    5    0    5    0
                   CPU% per second (last 60 seconds)

  • Continuous Audio, Jerky Video, High CPU Usage

    Hello,
    I've been browsing the forum for a while and tried a few searches. I found some problems similar to mine, but nothing with a solution that worked. Here is my situation. I was running Windows XP Home SP3 with the latest IE, Firefox and Chrome browsers. I updated my flash player (to 10) and I hulu didn't work any more. The audio would play but the video would freeze and change to a different frame every now and then, usually a couple minutes behind the audio. I had already decided that I wanted to switch over to Ubuntu 10 so I just did a fresh install. I updated everything over night and then I tried to watch hulu using the latest firefox. I had the same problem. The audio will play, but the video freezes. I downloaded the latest Chrome. Same problem, both with high cpu usage. I am using a Dell Inspirion 2200 with 1.5 ghz cpu and 512 mb ram with integrated graphics. So far the only thing I've tried is disabling hardware acceleration. My internet connection is 1.5 mb. I would really appreciate any help.
    Thanks,
    ralphcholo

    I noticed it's the "audiodg.exe" program that is acting weird with high cpu usage.  Some tutorials say to disable 'audio enhancements' but I can't find that option available in windows 10. In device manager, I notice 2 separate audio drivers.  The Acer download page only has 1 realtek audio driver.  I'm wondering if there is supposed to be another driver to update?  My audio seems to be working fine without this problem coming back.   I've attached a screenshot showing the 2 different audio fields in device manager.  The bottom one is the driver listed on the Acer driver page, I'm not sure where the other upper audio driver is to download.

  • High cpu usage when the system is idle

    I do have a high cpu usage problem when the system is idle. I bought the laptop (lenovo x230 tablet) with windows 7 installed in it. Then upgraded to windows 8. But ever since I have problems with high cpu usage by the system even when the computer is idle.
    Only the system by itself uses around 30% of the cpu all the time. I ran xperf, and here is the result of it:
    http://sdrv.ms/Kj6CFN
    I appreciate any help you can provide.
    Thanks,

    Hi,
    I'm sorry for that the log you provide can't be opened on my computer. While according to your description, it should had a special process that consume CPU usage when system idle Iguess, isn't it?
    You can use
    Process Explorer to monitor the process activity, may be we can find the reason of this problem.
    Note: We can use Process Explorer to check the Stack of every process then analyize the problem in deep.
    To gave a better insight about this problem, you can take a ScreenShot for this problem and provide the picture here.
    Roger Lu
    TechNet Community Support

  • Opera and high cpu usage

    Hello all!
    I have this annoying problem with opera.
    After 1-2 hours of running opera cpu usage jumps to about 60-80%. To stop this I have to close opera and restart it.
    I mostly have about 30+ tabs opened, but this shouldn't affect the cpu usage. It didn't in the past. I used the opera-devel-qt4 (10.20_4744-1) package from AUR and now I switched back to the "default" opera (10.10-2) package.
    This started some days ago, and i cannot find out what causes this.
    Any suggestions?
    Vlad
    Last edited by DonVla (2010-01-07 22:37:58)

    I have no plugins running and killed the wrapper.
    However it worked fine for the most time. I noticed opera has a higher usage than firefox. But now it's barely usable. Every 3-5 hours I have to stop and then restart opera. With the bundled version it's a little better. But it still freezes for some seconds with high cpu usage.

Maybe you are looking for

  • PO Report by Purchasing Group

    Hello Experts, Is there a way to run a report by purchasing group?  The report should output at a minimum: PO # Vendor Name Line Item Number Line Item $ Value Line Item $ Actual (Invoiced) Value Charge Number (WBS) Performance key input or ME2N almos

  • Filter Custom Component

    I'm trying to build a Filter custom component, which will convert a binary file to an XML file on the fly and send to the requester. I'm trying to use the 'checkDownloadOverride' filter event for this case. But I cant find the content bytes in any ob

  • How to run the application in Background?

    Hi, I am creating an enterprise app with Xcode 5.1.1 & iOS 7.1.1 which is to be run in background mode. How long the app will run in background mode? Whether NSTimer will run in background mode?

  • Depreciation Run -"Last Posting run terminated Restart in period 03 2010"

    Hello Friends, Please help me for this. I am trying to run depreciation for a CoCd 2002 in production. When I do AFAB for FY 2010 Period 04. It gives a error message "Last Posting run terminated, restart in period 2010 003" Diagnosis* The last postin

  • Change PCR processes in MSS

    Hello Experts, i am using standard PCR processes like Change employee group and subgroup,change working time,Change position, etc. In PCR - Personnel Change Requests processes, i would like to remove/hide Request for Transfer and Request for Transfer