Making a thread so it doesn't consume so much CPU Usage

I have a simple application consisting of merely a timer that counts down from 2 minutes to 0. Running the timer is a simple thread that uses a run() method which has the following form:
public void run() {
   while(threadContinue) {
      updateTimer();
}And then I start the read like this:
new Thread(this).start();But from viewing my processes in the task manager, it is apparent that this java application is using up a huge amount of my computer's CPU usage. How can I make a thread that is not so heavily run on my computer, per se.
Thank you!

Well you're updating the time awfully a lot especially by using a while loop (considering the computer is trying to jam a lot of update executions for just a second), how about inserting a Thread.sleep(<inc. of time>) then have your updateTimer() method update in increments of the inc. you supplied?

Similar Messages

  • ORACLE CONSUMING 99% OF CPU USAGES

    Hello All,
    We are using Oracle DB Personal Edition 10.2.0.3. In our one of the dev test bed ORACLE CONSUMING 99% OF CPU USAGES.
    There is core dump error in the alret log.
    Thu Aug 28 14:20:29 2008
    Errors in file e:\sc\sc14.1\databases\oracleconfig\nm45_ora_6412.trc:
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [unable_to_trans_pc] [PC:0x7C9111E0] [ADDR:0x4] [UNABLE_TO_READ] []
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [unable_to_trans_pc] [PC:0x7C9111E0] [ADDR:0x4] [UNABLE_TO_READ] []
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [unable_to_trans_pc] [PC:0x7C9111E0] [ADDR:0x4] [UNABLE_TO_READ] []
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [unable_to_trans_pc] [PC:0x7C9111E0] [ADDR:0x4] [UNABLE_TO_READ] []
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [unable_to_trans_pc] [PC:0x7C9111E0] [ADDR:0x4] [UNABLE_TO_READ] []
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [unable_to_trans_pc] [PC:0x7C9111E0] [ADDR:0x4] [UNABLE_TO_READ] []
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [unable_to_trans_pc] [PC:0x7C9111E0] [ADDR:0x4] [UNABLE_TO_READ] []
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [unable_to_trans_pc] [PC:0x7C9111E0] [ADDR
    Restart of machine dose not help. With in minutes oracle is consuming the 99% CPU. Our test bed is windows XP with service packe 2 (32 bit) having 2.5GB RAM.
    Any suggestion ?
    Thanks
    With Regards
    Hemant Joshi.

    What information is in the referenced trace file. You should probably open a SR with Oracle support and upload the alter log entry for the time of the problem and the referenced trace file.
    You should probably search the metalink web site but here is one known issue on 10.2.0.3
    Problem: High CPU on box / server
    excessive CPU to be used for the checksum routine.
    Affects: 10.2.0.3
    Bug: 6814520
    Fix: 10.2.0.5, 11.1.0.7, patch being develop for 10.2.0.4
    Workaround: alter system set db_block_checksum=FALSE
    Because of the 07445 errors I would search for other causes of your problem but i thought I would post the error information since it is for your version and involves excessive cpu consumption.
    HTH -- Mark D Powell --

  • Why does coreaudiod consume so much cpu?

    I looked into activity monitor and found coreaudiod consuming 30-40% cpu cycles on my iBook. I have no songs, videos or alert sounds playing.
    Can any one tell me what is happening? Why is coreaudiod bugging my cpu? How can i prevent it?
    iMac G4 FP 17, iBook G4 14, iPod G3 Mac OS X (10.4.3) PC on XP, 2k & Linux

    Edit: i tried to quit it then the trash empty sound came out
    [i empty my trash like 30mins ago] - a coreaudiod hang?

  • [solved...kind of]"xpad" consumes too much CPU power constantly

    I have just upgraded xpad from 2.12-1 to 2.13-1 and found this:
    PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                             
    5936 bsdson    20   0 53696  14m 9908 R 34.3  2.8   6:52.08 xpad
    I don't know what's happened to xpad and I think it's not right!
    Some other informations that may help to audit the situation are as follows:
    output of "lsof"
    [503 ~:bsdson 14:07]$ lsof -p 5936
    COMMAND  PID   USER   FD   TYPE     DEVICE     SIZE    NODE NAME
    xpad    5936 bsdson  cwd    DIR        3,3     4096   16578 /home/bsdson
    xpad    5936 bsdson  rtd    DIR        3,3     4096       2 /
    xpad    5936 bsdson  txt    REG        3,3   106784 1167614 /usr/bin/xpad
    xpad    5936 bsdson  mem    REG        3,3    70888 1229138 /lib/libbz2.so.1.0.4
    xpad    5936 bsdson  mem    REG        3,3  1383016  460167 /usr/lib/libxml2.so.2.6.30
    xpad    5936 bsdson  mem    REG        3,3   260714  469032 /usr/lib/libcroco-0.6.so.3.0.1
    xpad    5936 bsdson  mem    REG        3,3   244598  465457 /usr/lib/libgsf-1.so.114.0.7
    xpad    5936 bsdson  mem    REG        3,3   229672  469372 /usr/lib/librsvg-2.so.2.18.2
    xpad    5936 bsdson  mem    REG        3,3    39960  622977 /usr/lib/gtk-2.0/2.10.0/engines/libxfce.so
    xpad    5936 bsdson  mem    REG        3,3     7407  628487 /usr/lib/gtk-2.0/2.10.0/loaders/svg_loader.so
    xpad    5936 bsdson  DEL    REG        0,8            98307 /SYSV00000000
    xpad    5936 bsdson  mem    REG        3,3    65932  541280 /usr/share/fonts/TTF/Vera.ttf
    xpad    5936 bsdson  mem    REG        3,3  1203565  459788 /usr/lib/libstdc++.so.6.0.9
    xpad    5936 bsdson  mem    REG        3,3  1102863  460619 /usr/lib/libscim-1.0.so.8.2.3
    xpad    5936 bsdson  mem    REG        3,3    97079  835608 /usr/lib/scim-1.0/1.4.0/IMEngine/socket.so
    xpad    5936 bsdson  mem    REG        3,3    32923  938695 /usr/lib/scim-1.0/1.4.0/Config/socket.so
    xpad    5936 bsdson  mem    REG        3,3   192752  938704 /usr/lib/gtk-2.0/immodules/im-scim.so
    xpad    5936 bsdson  mem    REG        3,3     9103  579077 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
    xpad    5936 bsdson  mem    REG        3,3   110289  458822 /usr/share/locale/zh_TW/LC_MESSAGES/libc.mo
    xpad    5936 bsdson  mem    REG        3,3 20890468  541939 /usr/share/fonts/TTF/uming.ttf
    xpad    5936 bsdson  mem    REG        3,3    64176 1130585 /var/cache/fontconfig/8d4af663993b81a124ee82e610bb31f9-x86.cache-2
    xpad    5936 bsdson  mem    REG        3,3    19808 1130584 /var/cache/fontconfig/a98d8961fa319a64d3cfd8640c79e62d-x86.cache-2
    xpad    5936 bsdson  mem    REG        3,3    12112 1130560 /var/cache/fontconfig/5a02e0a9ca9b27d0aa4bd0c42ba2438d-x86.cache-2
    xpad    5936 bsdson  mem    REG        3,3    60824 1130555 /var/cache/fontconfig/d62e99ef547d1d24cdb1bd22ec1a2976-x86.cache-2
    xpad    5936 bsdson  mem    REG        3,3   184848 1130554 /var/cache/fontconfig/f6b893a7224233d96cb72fd88691c0b4-x86.cache-2
    xpad    5936 bsdson  mem    REG        3,3   284528 1130552 /var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-x86.cache-2
    xpad    5936 bsdson  mem    REG        3,3   285224 1130540 /var/cache/fontconfig/df311e82a1a24c41a75c2c930223552e-x86.cache-2
    xpad    5936 bsdson  mem    REG        3,3  5817880  508074 /usr/share/icons/hicolor/icon-theme.cache
    xpad    5936 bsdson  mem    REG        3,3    45839 1229021 /lib/libnss_files-2.7.so
    xpad    5936 bsdson  mem    REG        3,3    17728  474987 /usr/share/locale/zh_TW/LC_MESSAGES/glib20.mo
    xpad    5936 bsdson  mem    REG        3,3     4975 1278022 /usr/share/locale/zh_TW/LC_MESSAGES/xpad.mo
    xpad    5936 bsdson  mem    REG        3,3    99824  469427 /usr/share/locale/zh_TW/LC_MESSAGES/gtk20-properties.mo
    xpad    5936 bsdson  mem    REG        3,3  1541072  557747 /usr/lib/locale/locale-archive
    xpad    5936 bsdson  mem    REG        3,3    20620  459252 /usr/lib/libXdmcp.so.6.0.0
    xpad    5936 bsdson  mem    REG        3,3     9736  468831 /usr/lib/libXau.so.6.0.0
    xpad    5936 bsdson  mem    REG        3,3   164278  464007 /usr/lib/libexpat.so.1.5.2
    xpad    5936 bsdson  mem    REG        3,3   126332 1540527 /usr/lib/libxcb.so.1.0.0
    xpad    5936 bsdson  mem    REG        3,3     6054  471891 /usr/lib/libxcb-xlib.so.0.0.0
    xpad    5936 bsdson  mem    REG        3,3   168315 1231016 /lib/libpcre.so.0.0.1
    xpad    5936 bsdson  mem    REG        3,3    76174 1231017 /lib/libz.so.1.2.3
    xpad    5936 bsdson  mem    REG        3,3   563882  465462 /usr/lib/libfreetype.so.6.3.16
    xpad    5936 bsdson  mem    REG        3,3   211710  475007 /usr/lib/libpangoft2-1.0.so.0.1800.3
    xpad    5936 bsdson  mem    REG        3,3    39845 1540334 /usr/lib/libXcursor.so.1.0.2
    xpad    5936 bsdson  mem    REG        3,3    25962  469760 /usr/lib/libXrandr.so.2.1.0
    xpad    5936 bsdson  mem    REG        3,3    35209  467377 /usr/lib/libXi.so.6.0.0
    xpad    5936 bsdson  mem    REG        3,3     8764 1540137 /usr/lib/libXinerama.so.1.0.0
    xpad    5936 bsdson  mem    REG        3,3    35203  469295 /usr/lib/libXrender.so.1.3.0
    xpad    5936 bsdson  mem    REG        3,3    63628  467168 /usr/lib/libXext.so.6.4.0
    xpad    5936 bsdson  mem    REG        3,3   212151  465792 /usr/lib/libfontconfig.so.1.2.0
    xpad    5936 bsdson  mem    REG        3,3   176772 1229019 /lib/libm-2.7.so
    xpad    5936 bsdson  mem    REG        3,3   156478  464218 /usr/lib/libpng12.so.0.23.0
    xpad    5936 bsdson  mem    REG        3,3    17791  461410 /usr/lib/libXfixes.so.3.1.0
    xpad    5936 bsdson  mem    REG        3,3     8331  469208 /usr/lib/libXdamage.so.1.1.0
    xpad    5936 bsdson  mem    REG        3,3     8800  474244 /usr/lib/libXcomposite.so.1.0.0
    xpad    5936 bsdson  mem    REG        3,3  1045771 1540528 /usr/lib/libX11.so.6.2.0
    xpad    5936 bsdson  mem    REG        3,3  1488269 1229055 /lib/libc-2.7.so
    xpad    5936 bsdson  mem    REG        3,3   786780  465417 /usr/lib/libglib-2.0.so.0.1400.4
    xpad    5936 bsdson  mem    REG        3,3    13474 1229031 /lib/libdl-2.7.so
    xpad    5936 bsdson  mem    REG        3,3    13014  465310 /usr/lib/libgmodule-2.0.so.0.1400.4
    xpad    5936 bsdson  mem    REG        3,3   300452  464093 /usr/lib/libgobject-2.0.so.0.1400.4
    xpad    5936 bsdson  mem    REG        3,3   568682 1540439 /usr/lib/libcairo.so.2.11.6
    xpad    5936 bsdson  mem    REG        3,3   289114  475000 /usr/lib/libpango-1.0.so.0.1800.3
    xpad    5936 bsdson  mem    REG        3,3    44703  474474 /usr/lib/libpangocairo-1.0.so.0.1800.3
    xpad    5936 bsdson  mem    REG        3,3   129100  461455 /usr/lib/libgdk_pixbuf-2.0.so.0.1200.3
    xpad    5936 bsdson  mem    REG        3,3   361631 1540328 /usr/lib/libatk-1.0.so.0.2009.1
    xpad    5936 bsdson  mem    REG        3,3   668823  461445 /usr/lib/libgdk-x11-2.0.so.0.1200.3
    xpad    5936 bsdson  mem    REG        3,3  4429835  461439 /usr/lib/libgtk-x11-2.0.so.0.1200.3
    xpad    5936 bsdson  mem    REG        3,3    97607 1540312 /usr/lib/libICE.so.6.3.0
    xpad    5936 bsdson  mem    REG        3,3    33356  473707 /usr/lib/libSM.so.6.0.0
    xpad    5936 bsdson  mem    REG        3,3    21314 1277960 /usr/share/locale/zh_TW/LC_MESSAGES/scim.mo
    xpad    5936 bsdson  mem    REG        3,3    51006  459861 /usr/lib/libgcc_s.so.1
    xpad    5936 bsdson  mem    REG        3,3     9247  460625 /usr/lib/libscim-x11utils-1.0.so.8.2.3
    xpad    5936 bsdson  mem    REG        3,3    59076  469420 /usr/share/locale/zh_TW/LC_MESSAGES/gtk20.mo
    xpad    5936 bsdson  mem    REG        3,3   127601 1228807 /lib/ld-2.7.so
    xpad    5936 bsdson    0r   CHR        1,3             6003 /dev/null
    xpad    5936 bsdson    1w   REG        3,3     3139   23446 /home/bsdson/.xsession-errors
    xpad    5936 bsdson    2w   REG        3,3     3139   23446 /home/bsdson/.xsession-errors
    xpad    5936 bsdson    3u  unix 0xdede0600            13342 socket
    xpad    5936 bsdson    4u  unix 0xdede0c00            13345 /home/bsdson/.config/xpad/server
    xpad    5936 bsdson    6u  unix 0xde908a00            13424 socket
    xpad    5936 bsdson    7u  unix 0xde908e00            13426 socket
    xpad    5936 bsdson    8u  unix 0xde908400            13428 socket
    [503 ~:bsdson 14:07]$
    and partial of the output from "strace":
    socket(PF_FILE, SOCK_STREAM, 0)         = 3
    connect(3, {sa_family=AF_FILE, path="/tmp/.X11-unix/X0"}, 110) = 0
    getpeername(3, {sa_family=AF_FILE, path="/tmp/.X11-unix/X0"}, [20]) = 0
    uname({sys="Linux", node="bsdson", ...}) = 0
    access("/home/bsdson/.Xauthority", R_OK) = 0
    open("/home/bsdson/.Xauthority", O_RDONLY) = 4
    fstat64(4, {st_mode=S_IFREG|0600, st_size=548, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7441000
    read(4, "\0\0\0\4\300\250\250\245\0\0010\0\22MIT-MAGIC-COOKIE-1\0"..., 4096) = 548
    close(4)                                = 0
    munmap(0xb7441000, 4096)                = 0
    getpid()                                = 6064
    time(NULL)                              = 1197527142
    fcntl64(3, F_GETFL)                     = 0x2 (flags O_RDWR)
    fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
    fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
    select(4, [3], [3], NULL, NULL)         = 1 (out [3])
    writev(3, [{"l\0\v\0\0\0\23\0\30\0", 10}, {"\0\0", 2}, {"XDM-AUTHORIZATION-1", 19}, {"\0", 1}, {"\310\254@g\317\37
    read(3, 0x80895f0, 8)                   = -1 EAGAIN (Resource temporarily unavailable)
    select(4, [3], NULL, NULL, NULL)        = 1 (in [3])
    read(3, "\1\0\v\0\0\0\231\0", 8)        = 8
    read(3, "\0\261\236\0\0\0\340\0\377\377\37\0\0\1\0\0\24\0\377\377\1\7\0\0  \10\377\264\26\36\10"..., 612) = 612
    select(4, [3], [3], NULL, NULL)         = 1 (out [3])
    writev(3, [{"7\0\5\0\0\0\340\0\203\0\0\0\10\0\0\0\377\377\377\0b\0\5\0\f\0\0\0BIG-"..., 40}], 1) = 40
    select(4, [3], [], NULL, NULL)          = 1 (in [3])
    read(3, "\1\0\2\0\0\0\0\0\1\203\0\0008\252\261\277\313\260\24\10\334\n \10\20\252\261\277(\252\261\277", 4096) = 3
    select(4, [3], [3], NULL, NULL)         = 1 (out [3])
    writev(3, [{"\203\0\1\0", 4}], 1)       = 4
    select(4, [3], [], NULL, NULL)          = 1 (in [3])
    read(3, "\1\327\3\0\0\0\0\0\377\377?\0\313\260\24\10\334\n \10\20\252\261\277,\252\261\277X/\35\10", 4096) = 32
    select(4, [3], [3], NULL, NULL)         = 1 (out [3])
    writev(3, [{"\24\0\6\0\203\0\0\0\27\0\0\0\37\0\0\0\0\0\0\0\0\341\365\5", 24}], 1) = 24
    select(4, [3], [], NULL, NULL)          = 1 (in [3])
    read(3, "\1\10\4\0%\0\0\0\37\0\0\0\0\0\0\0\222\0\0\0\313\260\24\10\334\n \10\20\252\261\277"..., 4096) = 180
    poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=9, events=POLLIN}, {fd=9, events=0}, {fd=9, events=0}], 5,
    read(3, 0x8089e54, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
    gettimeofday({1197527190, 966688}, NULL) = 0
    poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=9, events=POLLIN}, {fd=9, events=0}, {fd=9, events=0}], 5,
    read(3, 0x8089e54, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
    gettimeofday({1197527190, 966897}, NULL) = 0
    <conitnues forever>
    Can anyone help me to audit this?
    BR,
    bsdson.tw
    Last edited by bsdson.tw (2007-12-13 07:00:59)

    The "xpad" process constantly tries to read the fd 3 which may be a socket to file "/tmp/.X11-unix/X0".
    and this file's information:
    srwxrwxrwx 1 root root 0 2007-12-13 12:05 /tmp/.X11-unix/X0

  • ThinkVantage Registry Monitor Service consuming too much CPU!

    My X200 Tablet is often in an unusable stable for 10~20 minutes after a reboot or a wakeup from a sleep/hibernation state. I noticed it's mainly because CPU is busy with the ThinkVantage Registry Monitor Service.
    I noticed that although the CPU usage of "tvt_reg_monitor_svc.exe" is often <10%, another process "System" is often taking >80% CPU when "tvt_reg_monitor_svc.exe" is running. "System" CPU usage immediately comes down when "tvt_reg_monitor_svc.exe" is killed. Is it a kind of camouflage? Thanks!
    I was not able to disabling the registry monitor service completely either. Although I can stop and disable it in the Services control panel, it will automatically come back to life after a reboot. I heard that it may be because some other lenovo services, such as the Fingerprint Server, Rescue & Recovery, may need the Registry monitor service.
    Anyone know how can I continue to use RnR and the fingerprint service but keep the annoying Registry Monitor service disabled? I'd like to use the fingerprint reader for convenience, and use RnR for saving data too! (my laptop, half a year old, crashed once already, and RnR saved my data!) Or, how to make the Registry Monitor use less CPU?
    BTW, my X200 tablet is running Windows XP SP3, and currently up-to-date using both lenovo's "ThinkVantage System Update" and microsoft's "Windows Update".
    Thanks!

    Hi,
    this situation was fixed by one patch, so please try to install following patch, if this fixes your situation too:
    http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovo&lndocid=MIGR-69109
    Let me know, if this helps.
    Cheers

  • DBSNMP user consumes too much cpu resource

    Hello,
    for a couple of weeks, I realized that DBSNMP user is always in top user list and it seems at least 15 percent of cpu has being used! as i know this is not normal. is there any one who experienced something like that ? I search for it but couldnt find anything useful.
    thanks

    HI,
    DBSNMP is the account used by Oracle’s intelligent agent to logon automatically to remote servers in order to provide information for presentation via Enterprise Manager. DNSMP has the SELECT ANY DICTIONARY system privilege which can read the passwords from SYS.USER$ and enables the account to do its work for the Intelligent Agent. The problem is that an Attacker could log on to Oracle as DBSNMP especially if the default password has not been changed. The attacker could then read the password hashes from SYS.USER$.
    dbsnmp is used by OEM as Intelligent agent for nodes discovery
    Can you please restart dbconsole service and check.
    export ORACLE_SID=
    ./emctl status dbconsole
    ./emctl stop dbconsole
    ./emctl start dbconsole
    Regards,
    Praful Kawaji

  • Db2acd Process consumes all available CPU.

    Folks,
              We are on DB2 9.5 and we have recently updated the FixPak to 4 on the Sandbox environment.
    The environment is flatlined on cpu with the db2acd process consuming as much cpu as it can. If you stop the system this process does not stop, you have to physically kill it.
    Has anybody else had issues with this process ( db2 health monitor ), I think it was previously known as db2hmon.
    We are not sure if the problem existed before the FixPak upgrade, however we cannot upgrade our FixPaks with confidence.
    The operating system is aix 6.1.
    Thanks
    Regards Russell

    Hi Russell,
    perhaps this is the problem:
    IC63064: THE DB2ACD PROCESS SHOWS HIGH CPU USAGE:
    https://www-304.ibm.com/support/entdocview.wss?rs=203&context=SW000&dc=DA410&dc=DA450&dc=DA430&dc=DA440&dc=D600&dc=D700&dc=DB510&dc=DB520&dc=D800&dc=D900&dc=DA900&dc=DA800&dc=DB540&dc=DB400&dc=DB560&dc=DB530&dc=DA600&dc=DB550&dc=DA420&dc=DA460&dc=DA470&dc=DA480&dc=DA4A10&dc=DA4A20&dc=DA4A30&dc=DA400&dc=DA500&dc=DB700&dc=DB600&q1=IC63064&uid=swg1IC63064&loc=en_US&cs=UTF-8&lang=all
    Contact SAP/IBM for a special build.
    best regards,
    Joachim

  • Mdnsresponder will not quit.  Consumes above 100% CPU and kills my battery.  Also causes my fan to run constantly and my computer to get extremely hot.  Force quitting doesn't work.  It just comes back.

    The mdnsresponder will not quit.  Consumes above 100% CPU and kills my battery.  Also causes my fan to run constantly and my computer to get extremely hot.  Force quitting doesn't work.  It just comes back.   I posted about this earlier and never got an answer.  Somebody, please help. 
    Thanks.

    mDNSResponder is a background process that runs all the time. If you kill it, it's relaunched automatically.
    Please launch the Console application and select "system.log" from the file list. Enter "mDNSResponder" (without the quotes) in the search field. Post a sample of the log messages in the Console window -- only one example of each repeated message, please.

  • OSB: Proxy doesn't consume JMS messages

    Guys, I'm getting stuck with this one ...
    I've got four JMS proxy services. One of them uses Publish to enqueue a message into the three others. This way I get three copies of a single message, each in dedicated JMS queue. The same three JMS proxies are supposed to consume messages from JMS queues and process them. The configuration is the same for all three proxies and all three JMS queues. In fact all was cloned and the difference is only in suffix. So, I've got QueueA, QueueB, QueueC and ProxyA, ProxyB and ProxyC. So if I stick to these names, ProxyMain uses 3x Publish actions to enqueue a message into ProxyA, ProxyB and ProxyC at the same time. This is a proved solution and it has worked for years flawlessly!
    However, something weird happened a couple of days ago. All of a sudden, one of those three consuming JMS proxies doesn't consume anything. There's no issue on producing side (the first proxy) as the numbers of messages in all three queues are still increasing. Still, only messages from QueueA and QueueB are being consumed by ProxyA and ProxyB. The third queue (QueueC) doesn't have any consumer attached from ProxyC and I don't know why.
    I've already checked everything I know - proxy is enabled, there are no errors in logs related to the proxy or JMS, the issue is not reproducible in test environment with the same configuration, there are no JMS Quota or connection factory restrictions, consuming flag is enabled on queue ...
    The lack of errors in logs makes me feel like the ProxyC is connected to something else. However, the same proxy is used for producing messages (from ProxyMain) and messages are incoming to the queue so the endpoint set in proxy must be correct!
    Any help, hint or idea is appreciated ...

    The third queue (QueueC) doesn't have any consumer attached from ProxyC and I don't know whyTry renaming ProxyC to say ProxyC1 and activate the session. This will create a new underlying MDB for the jms proxy and you will see consumers getting set on the queue.. Faced this issue many times in our production environment and easiest workaround we found was to rename the proxy service [ toggling enable/disable proxy doesn't seem to have ny effect).. you can change the name to the original proxy once the consumers are set..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Asynchronous consumer doesn't consume?

    Can anyone tell my why my message consumer doesn't consume a TextMessage put in a Queue by a MessageDrivenBean?
    Another part of my client successfully sent a message to the MDB, and the MDB put a TextMessage in another Queue (queue\goAdminOut) with this property set on the message:
    key="Selector"
    value="ADCD"
    I know the TextMessage is waiting on the Queue, because I can see it using the servers web-consloe.
    Its just that the message does not trigger the onMessage () method of the Listener I set on the MessageConsumer in my client.
    The MessageConsumer was created with:
    Session.createConsumer(Destination destination, java.lang.String messageSelector)
    Here is a list of the relevant code included below.
    1. Two classes the mimic my client.
    TestConsumerView
    -- A JFrame that stays alive till it is closed.
    TestConsumer
    -- An object that is instantiated as a field in TestConsumerView
    -- It establishes the connection, session and message consumer
    2. The screen print when I run TestConsumerView
    3. A screen print from the JBoss JMX web console confirming that the message is in the queue
    TestConsumerView Codeimport javax.swing.JFrame;
    class TestConsumerView extends JFrame {
      // members
      private static final long    serialVersionUID = 1L;
      private TestConsumer consumer;
      // main ()
      public static void main(String args[]) {
        System.out.println ("** BEGIN: TestConsumerView.main ()");
        System.out.println ("** instantiate TestConsumerView");
        new TestConsumerView();
        System.out.println ("\n** TestConsumerView instantiated");
        System.out.println ("** END:   TestConsumerView.main ()");
      // constructor
      private TestConsumerView () {
        super ();
        System.out.println ("\n**** BEGIN: TestConsumerView.constructor");
        consumer = new TestConsumer ();
        this.setDefaultCloseOperation(EXIT_ON_CLOSE);
        this.setVisible (true);
        System.out.println ("\n**** END:   TestConsumerView.constructor");
    } TestConsumer Code import javax.swing.JFrame;
    class TestConsumerView extends JFrame {
      // members
      private static final long    serialVersionUID = 1L;
      private TestConsumer consumer;
      // main ()
      public static void main(String args[]) {
        System.out.println ("** BEGIN: TestConsumerView.main ()");
        System.out.println ("** instantiate TestConsumerView");
        new TestConsumerView();
        System.out.println ("\n** TestConsumerView instantiated");
        System.out.println ("** END:   TestConsumerView.main ()");
      // constructor
      private TestConsumerView () {
        super ();
        System.out.println ("\n**** BEGIN: TestConsumerView.constructor");
        consumer = new TestConsumer ();
        this.setDefaultCloseOperation(EXIT_ON_CLOSE);
        this.setVisible (true);
        System.out.println ("\n**** END:   TestConsumerView.constructor");
    }Screen Output ** BEGIN: TestConsumerView.main ()
    ** instantiate TestConsumerView
    **** BEGIN: TestConsumerView.constructor
    ****** BEGIN: TestConsumer.constructor
    ****** calling connect ()
    ******** BEGIN: TestConsumer.connect ()
    ******** InitialContext Returned
    ******** Connection instantiated
    ******** Session instantiated
    ******** MessageConsumer instantiated with the selector phrase = Selector='ABCD'
    ******** add a MessageListener to consumer
    ********** TCListener.constructor called
    ******** MessageListener added
    ******** Connection started
    ******** END:   TestConsumer.connect ()
    ****** call to connnect () completed
    ****** END:   TestConsumer.constructor
    **** END:   TestConsumerView.constructor
    ** TestConsumerView instantiated
    ** END:   TestConsumerView.main () WEB CONSOLE OUTPUT [SpyTextMessage {
    Header {
       jmsDestination  : QUEUE.goAdminOut
       jmsDeliveryMode : 2
       jmsExpiration   : 0
       jmsPriority     : 4
       jmsMessageID    : ID:9-11218101942431
       jmsTimeStamp    : 1121810194243
       jmsCorrelationID: null
       jmsReplyTo      : null
       jmsType         : null
       jmsRedelivered  : false
       jmsProperties   : {Selector='ABCD'}
       jmsPropReadWrite: false
       msgReadOnly     : true
       producerClientId: ID:9
    Body {
       text            :The DialogPack was received

    Sorry,
    I guess I screwed up and put TestConsumerView code twice.
    Anyway, the missing TestConsumer code is below.
    I am not sure I understand your comment about MDB and a Java GUI client.
    Right now I am testing my app on a local server.
    Ultimately I intend to use a remote server that mediates between two WebStart downloaded Java GUI clients running on independent PCs.
    Kind of a game model with two players.
    Both clients can send ObjectMessages to a server side Queue that is listened to by an MDB (i.e. the object would contain all the data needed to enroll a new player, or to describe a new play by one client to the other).
    The MDB would process the data in the object attached to the Object Message using Entity Beans and any other server side components required, i.e. to add the new member to the database or update the copy ot the game history.
    When done, the MDB would send messages to one or two Queues.
    Queue-1 would be listend to by the client that sent the origianl ObjectMessage letting it know if the object was processed correctly.
    That is why I want to use a selector. There could be multiple pairs of clients being served by the MDB, so I need to attach a selector to the original Object message that the MDB then sets on its response message so the original client can find the MDB response in Queue-1.
    Queue-2 would be listened to by the other client (i.e. to let it know a play has been made). Same concept.
    Right now I am just trying to test the original client cycle, i.e. the original client listening to Queue-1 to see if the MDB succeeded.
    The Object message to MDB and the MDB message to Queue-1 works because I can use the JBoss web-consloe to see the TextMessaage waiing with the correct selector in the correct Queue.
    I just can't seem to write code for an asynchromous consumer in the original client that continuously listens to Queue-1.
    Anyway here is the code.
    TestConsumer CODEimport java.util.Hashtable;
    import javax.jms.JMSException;
    import javax.jms.ConnectionFactory;
    import javax.jms.Connection;
    import javax.jms.Message;
    import javax.jms.MessageConsumer;
    import javax.jms.MessageListener;
    import javax.jms.Destination;
    import javax.jms.Session;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    public class TestConsumer {
      // constructor
      public TestConsumer () {
        super ();
        System.out.println ("\n****** BEGIN: TestConsumer.constructor");
        System.out.println ("****** calling connect ()");
        connect ();
        System.out.println ("\n****** call to connnect () completed");
        System.out.println ("****** END:   TestConsumer.constructor");
      // members
      private final String selector = "Selector='ABCD'";
      private Session session;
      // members - inner class
      private class TCListener implements MessageListener {
        TCListener () {
          super ();
          System.out.println ("\n********** TCListener.constructor called\n");
        public void onMessage (Message msg) {
          try {
            System.out.println ("    ** BEGIN: TestConsumer.Listen.onMessage ()");
            System.out.println ("       Msg property 'Selector'=" + "\"" + msg.getStringProperty ("Selector") + "\"");
          } catch (JMSException e) {
            System.out.println ("       JMSException");
          System.out.println ("    ** END:   TestConsumer.Listen.onMessage ()");
      // methods
      private void connect () {
        System.out.println ("\n******** BEGIN: TestConsumer.connect ()");
        try {
           Hashtable<String, String> env =
             new Hashtable<String, String> ();
           env.put(Context.INITIAL_CONTEXT_FACTORY,
                  "org.jboss.naming.HttpNamingContextFactory");
           env.put(Context.PROVIDER_URL,
                  "http://localhost:8080/invoker/JNDIFactory");
           env.put(Context.URL_PKG_PREFIXES,
                   "org.jboss.naming:org.jnp.interfaces");
          Context jndiContext = new InitialContext(env);
          System.out.println ("******** InitialContext Returned\n");
          ConnectionFactory factory = (ConnectionFactory)
              jndiContext.lookup("HTTPConnectionFactory");
          Connection connection = factory.createConnection();
          System.out.println ("\n******** Connection instantiated");
          session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
          System.out.println ("******** Session instantiated");
          Destination destination = (Destination) jndiContext.lookup("queue/goAdminOut");
          MessageConsumer consumer = session.createConsumer(destination, selector);
          System.out.println ("******** MessageConsumer instantiated with the selector phrase = " + selector);
          System.out.println ("******** add a MessageListener to consumer");
          consumer.setMessageListener (new TCListener ());
          System.out.println ("******** MessageListener added");
          connection.start ();
          System.out.println ("******** Connection started");
        } catch (NamingException e) {
          System.out.println ("******** Naming Exception");
        } catch (JMSException e) {
          System.out.println ("******** JMS Execption");
        System.out.println ("******** END:   TestConsumer.connect ()");
    }

  • 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

  • Why is ArchLinux consuming so much RAM?

    I really don't know where to start with this thread.  Hoping a few of you veterans will be able to help pinpoint my memory consumption by ArchLinux.   I have read lots of places where ArchLinux runs with a very small memory footprint, but that hasn't been my experience, which is tragic becuase I really like ArchLinux the most of all the distros I've tried.
    I don't have anything that usual installed, I don't think.  If I go from a fresh boot up, my experience is that I end up using about 400MB out of the 768 MB total physical memory (eventually my system will slow to a crawl with about 95% of RAM used).  And I'm not really doing much.  A little Audacious, a little file mgmt with Thunar, a little web browsing...that's it really.  I expected some rogue application to be to blame but that doesn't seem to be the case.   It appears to be XFCE stuff mostly (and Thunar).  Here's what my system shows right now if I do
    $ps -aux
    USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
    root 1 0.0 0.0 1592 536 ? Ss Sep03 0:00 init [3]
    root 2 0.0 0.0 0 0 ? S< Sep03 0:00 [kthreadd]
    root 3 0.0 0.0 0 0 ? S< Sep03 0:00 [migration/0]
    root 4 0.0 0.0 0 0 ? SN Sep03 0:00 [ksoftirqd/0]
    root 5 0.0 0.0 0 0 ? S< Sep03 0:00 [watchdog/0]
    root 6 0.0 0.0 0 0 ? S< Sep03 0:00 [events/0]
    root 7 0.0 0.0 0 0 ? S< Sep03 0:00 [khelper]
    root 31 0.0 0.0 0 0 ? S< Sep03 0:00 [kblockd/0]
    root 32 0.0 0.0 0 0 ? S< Sep03 0:00 [kacpid]
    root 33 0.0 0.0 0 0 ? S< Sep03 0:00 [kacpi_notify]
    root 113 0.0 0.0 0 0 ? S< Sep03 0:00 [kseriod]
    root 135 0.0 0.0 0 0 ? S Sep03 0:00 [pdflush]
    root 136 0.0 0.0 0 0 ? S Sep03 0:00 [pdflush]
    root 137 0.0 0.0 0 0 ? S< Sep03 0:00 [kswapd0]
    root 138 0.0 0.0 0 0 ? S< Sep03 0:00 [aio/0]
    root 273 0.0 0.0 0 0 ? S< Sep03 0:08 [ata/0]
    root 274 0.0 0.0 0 0 ? S< Sep03 0:00 [ata_aux]
    root 278 0.0 0.0 0 0 ? S< Sep03 0:00 [scsi_eh_0]
    root 280 0.0 0.0 0 0 ? S< Sep03 0:18 [scsi_eh_1]
    root 614 0.0 0.0 0 0 ? S< Sep03 0:00 [ksuspend_usbd]
    root 617 0.0 0.0 0 0 ? S< Sep03 0:00 [khubd]
    root 1186 0.0 0.0 0 0 ? S< Sep03 0:00 [kjournald]
    root 1231 0.0 0.0 1772 636 ? S<s Sep03 0:01 /sbin/udevd --daemon
    root 1781 0.0 0.0 0 0 ? S< Sep03 0:00 [kgameportd]
    root 3980 0.0 0.0 0 0 ? S< Sep03 0:00 [kpsmoused]
    root 4368 0.0 0.0 0 0 ? S< Sep03 0:00 [scsi_eh_2]
    root 4369 0.0 0.0 0 0 ? S< Sep03 0:00 [usb-storage]
    root 4993 0.0 0.0 0 0 ? S< Sep03 0:00 [kjournald]
    root 4994 0.0 0.0 0 0 ? S< Sep03 0:00 [kjournald]
    root 4995 0.0 0.0 0 0 ? S< Sep03 0:00 [kjournald]
    root 5151 0.0 0.1 2220 792 ? Ss Sep03 0:00 /usr/sbin/syslog-ng
    root 5165 0.0 0.0 1740 504 ? Ss Sep03 0:00 /sbin/dhcpcd -t 30 -h TuxTixi eth
    root 5177 0.0 0.0 1620 544 ? S Sep03 0:00 /usr/sbin/crond
    root 5189 0.0 0.1 14404 1252 ? Ss Sep03 0:00 ./hpiod
    root 5193 0.0 0.6 11608 4996 ? S Sep03 0:00 python ./hpssd.py
    root 5202 0.0 0.3 5316 2364 ? Ss Sep03 0:08 /usr/sbin/cupsd
    dbus 5216 0.0 0.1 2232 1000 ? Ss Sep03 0:00 /usr/bin/dbus-daemon --system
    hal 5219 0.0 0.4 4936 3144 ? Ss Sep03 0:00 /usr/sbin/hald
    root 5220 0.0 0.1 3136 1152 ? S Sep03 0:00 hald-runner
    hal 5227 0.0 0.1 2000 880 ? S Sep03 0:00 hald-addon-keyboard: listening on
    hal 5228 0.0 0.1 2000 876 ? S Sep03 0:00 hald-addon-keyboard: listening on
    hal 5229 0.0 0.1 1996 872 ? S Sep03 0:00 hald-addon-keyboard: listening on
    hal 5232 0.0 0.1 1996 868 ? S Sep03 0:00 hald-addon-acpi: listening on acp
    root 5246 0.0 0.1 3188 1088 ? S Sep03 0:01 hald-addon-storage: polling /dev/
    root 5248 0.0 0.1 3184 1084 ? S Sep03 0:08 hald-addon-storage: polling /dev/
    root 5250 0.0 0.1 3184 1088 ? S Sep03 0:08 hald-addon-storage: polling /dev/
    root 5253 0.0 0.1 2340 1136 tty1 Ss Sep03 0:00 /bin/login --
    root 5254 0.0 0.0 1588 496 tty2 Ss+ Sep03 0:00 /sbin/agetty 38400 vc/2 linux
    root 5255 0.0 0.0 1588 492 tty3 Ss+ Sep03 0:00 /sbin/agetty 38400 vc/3 linux
    root 5256 0.0 0.0 1592 500 tty4 Ss+ Sep03 0:00 /sbin/agetty 38400 vc/4 linux
    root 5257 0.0 0.0 1592 500 tty5 Ss+ Sep03 0:00 /sbin/agetty 38400 vc/5 linux
    root 5258 0.0 0.0 1588 496 tty6 Ss+ Sep03 0:00 /sbin/agetty 38400 vc/6 linux
    tom 5269 0.0 0.2 4532 1736 tty1 S Sep03 0:00 -bash
    tom 5273 0.0 0.1 4484 1396 tty1 S+ Sep03 0:00 /bin/sh /usr/bin/startx
    tom 5289 0.0 0.0 2572 720 tty1 S+ Sep03 0:00 xinit /home/tom/.xinitrc -- -auth
    root 5290 4.3 3.0 28088 23512 tty7 S<s+ Sep03 74:03 X :0 -auth /home/tom/.serverauth.
    tom 5308 0.0 0.1 4220 1376 tty1 S Sep03 0:00 /bin/sh /etc/xdg/xfce4/xinitrc
    tom 5311 0.0 0.0 4480 760 tty1 S Sep03 0:00 /bin/sh /etc/xdg/xfce4/xinitrc
    tom 5313 0.0 0.3 4484 2584 tty1 S Sep03 0:00 xscreensaver -no-splash
    tom 5318 0.0 0.0 2708 632 tty1 S Sep03 0:00 /usr/bin/dbus-launch --sh-syntax
    tom 5319 0.0 0.1 2236 1020 ? Ss Sep03 0:00 /usr/bin/dbus-daemon --fork --pri
    tom 5321 0.0 1.6 26060 13048 tty1 S Sep03 0:01 /usr/bin/xfce4-session
    tom 5325 0.0 1.3 29588 10324 ? Ss Sep03 0:01 xfce-mcs-manager
    tom 5326 0.0 0.8 14264 6832 tty1 S Sep03 0:01 xfwm4 --sm-client-id 11c0a8126400
    tom 5327 0.0 2.1 62196 16964 tty1 S Sep03 0:01 Thunar --sm-client-id 11c0a812640
    tom 5328 0.0 2.3 41252 18336 tty1 S Sep03 0:17 xfdesktop --sm-client-id 11c0a812
    tom 5330 0.0 1.8 28088 14436 tty1 S Sep03 0:02 xfce4-panel --sm-client-id 11c0a8
    tom 5332 0.0 3.7 59400 28948 ? Ssl Sep03 0:04 mono /usr/lib/tomboy/Tomboy.exe
    tom 5335 0.0 0.7 12988 5732 tty1 S Sep03 0:08 /usr/lib/xfce4/xfce4/panel-plugin
    tom 5336 0.0 1.7 28264 13956 tty1 S Sep03 0:01 /usr/lib/xfce4/xfce4/panel-plugin
    tom 5337 0.0 1.6 26544 13140 tty1 S Sep03 0:13 /usr/lib/xfce4/xfce4/panel-plugin
    tom 5339 0.0 0.2 5048 2216 ? S Sep03 0:00 /usr/lib/GConf/gconfd-2 21
    tom 7011 0.0 2.3 32168 18612 ? Ss 17:35 0:01 Terminal
    tom 7012 0.0 0.0 2420 652 ? S 17:35 0:00 gnome-pty-helper
    tom 7013 0.0 0.2 4532 1668 pts/0 Ss 17:35 0:00 bash
    tom 7183 0.0 0.1 4228 1428 ? S 21:04 0:00 /bin/sh /opt/mozilla/bin/firefox
    tom 7187 0.0 0.1 4224 1432 ? S 21:04 0:00 /bin/sh /opt/mozilla/lib/firefox-
    tom 7192 5.3 7.8 158728 61260 ? Sl 21:04 1:21 /opt/mozilla/lib/firefox-2.0.0.6/
    root 7205 0.0 0.1 3600 924 pts/0 S 21:04 0:00 su
    root 7206 0.0 0.2 4264 1672 pts/0 S 21:04 0:00 bash
    root 7211 0.0 0.5 10708 4024 pts/0 S+ 21:07 0:00 vi /etc/rc.conf
    tom 7258 0.0 0.2 4532 1668 pts/1 Ss 21:28 0:00 bash
    tom 7260 0.0 0.1 3552 996 pts/1 R+ 21:29 0:00 ps -aux
    I'm astounded that xfce-related items would consume so much memory.  Also, Tomboy and Firefox really eat up memory in a hurry.  Thunar, too.  Is this normal?   Doesn't seem like it should be... 
    Oh, fyi, the daemons loaded at startup are: 
    DAEMONS=(syslog-ng network netfs crond alsa hplip cups hal)
    Any help would be appreciated here.  I can send over any specifics about my system or outputs of a command as needed for remote troubleshooting.  Thanks!
    Last edited by wrycatcher (2007-09-05 05:01:07)

    wrycatcher wrote:I don't have anything that usual installed, I don't think.  If I go from a fresh boot up, my experience is that I end up using about 400MB out of the 768 MB total physical memory (eventually my system will slow to a crawl with about 95% of RAM used).
    If it never exceeds 95% , I don't see why there should be any slow downs.
    Does it swap ? Thats much more important to check than the memory usage (even if its obviously linked).
    If a lot of swap is used, then it's very bad indeed, and you're left with the two obvious choices :
    1) get more memory
    2) use less memory hungry apps
    Recently, I set up Ubuntu (which is more bloated than Arch, with a ton of unneeded crap by default) on a box with 256 MB.
    Just booting into an empty gnome session filled up all ram. Then trying to start OpenOffice made the system swap badly,
    and it was very slow.
    I upgraded it to 512 mb, and everything is fine now.
    So I find it strange that 768 mb can't handle arch + xfce.

  • Flash animation consume 90-95% memory usage

    Hi,
    http://ww3.virtualvox.com/jyoti/option1/
    please check the url above.....
    i have used the dropdown menu in "About Us" and "Product"
    links...
    and the effect of dropdown menu is being very slow......bcoz
    of middle flash....
    when i removed the flash the dropdown menu working fine...
    bcoz the middle flash animation consume upto 90-95% of memory
    usage of PC...
    middle animation is very simple nothing extra ordinary in
    that animation....
    than why it consume full memory .... and why that JS menu
    being slow....to open
    please give me some suggetion for flash animation so that it
    doesn;t consume full memory and JS menu working smoothly
    Thanks

    You are making your life miserable by bouncing your database every now and again. Rather then analyzing your SGA and other things to look out for performance bottelneck, you prefer to bounce your database to, which seems to be temporary solution. Since I don't have enough information to offer suggestions,
    I would ask you run a statspack report for no more then 20 minutes when you feel the performnce at it's worst and analyze it for perfromnce bottelnecks.
    hare krishna
    Alok

  • Queue consumer stops with 100% cpu usage

    I'm trying to use Berkeley DB queue with transactions. When I tested what happens when transactions with DB_APPEND are aborted I found that while it works and DB_CONSUME correctly skips over rolled back records, unfortunately extents that have those records are never deleted, which causes database to always grow. Next I tried DB_CONSUME with database opened using DB_INORDER flag and it seems there's a serious regression in Berkeley DB that causes it to loop indefinitely with 100% cpu usage when it encounters a rolled back record. I tested various versions and found that this bug doesn't happen with 5.1.29, but it is reproducible with 5.2.42, so this regression might have been introduced in 5.2. I have also tested 5.3 and 6.0, and both have this behavior. There may be something wrong with the way queue records are rolled back, one indication of that would be that in 5.1.29 doesn't have neither of the two problems I found with DB_QUEUE: extents are deleted after being consumed, and there are no issues when consuming with DB_INORDER either.
    You can find Python code to reproduce this issue here:
    https://gist.github.com/snaury/027a3c546f5b0a62a440
    Sorry for using Python and not e.g. C++, but it's a lot shorter that way.

    We have looked at the issues and they are valid.   We will roll the fixes out for this in our next release of BDB.   The test case was very useful and really helped to speed the process up.    If you have any questions, please contact me directly at [email protected]  Thanks again for bringing this to our attention.
    thanks
    mike

  • 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.

Maybe you are looking for