XMLReader.parse causing 100% cpu

Hi
My Code looks like this:
InputSource inputsource = new InputSource(new StringReader(file);
System.out.println("V5");
reader.parse(inputsource);
System.out.println("v4");
"file" is an XML file from an engine that is of huge size. Around 7MB
The problem is V5 is getting printed.
And then cpu reaches 100% , and i never see v4 atall.
Would any one be able to give some inputs although my explanation doesnt look suffecient.
Thanks
Raam

nothing seems odd about that, except perhaps that it never ends. Try bumping your memory size up and try again
java -Xmx768m .....

Similar Messages

  • Some web pages causing 100% CPU use of iexplore.exe since Flash update

    I'm having a problem with certain Amazon.com pages hanging my
    Internet Explorer 6 using Flash Player 10,0,12,36, causing 100% CPU
    use for iexplore.exe and requiring me to End Task to quit. All the
    pages effected have an interactive mouseover Size and Color chart
    that intially says "Loading" but then says "Select Size and Color"
    once loaded. One mouseovers the various color patches and size
    options, each time giving item availability in that option. When
    the pages hang the IE browser with 100% CPU use that chart never
    gets to the "Select Size and Color" point, instead stuck at the
    "Loading" status. This happens most times, but not every time.
    Sometimes the pages load correctly, after a brief lag as it loads
    the chart.
    Amazon pages without this chart load fine.
    The start of this problem coincides with updating Flash.
    I can prevent the problem from happening almost every time if
    I can quickly get my cursor into that chart area while the page
    begins loading. If I allow the pages to load fully with no
    interaction they will hang almost every time.
    I have not noticed any problems on those same web pages using
    Firefox using Flash Player 9,0,124,0
    I also have not noticed any issues with other sites using
    Internet Explorer either. (YouTube, QVC, CNN...etc, all OK.)
    I had posted for assistance on the Experts Exchange site and
    there was some debate on whether the chart was a Java or
    Flash-based chart, so initially it was being approached as a
    possible Java issue, so I removed all Java versions on the system
    and installed various versions, but the same problem persists.
    I've downloaded but not run the Flash Uninstaller, as I'm
    reluctant to uninstall the Firefox Flash version without knowing
    for sure I could install 9,0,124,0 again.
    I've downloaded an archived fp9_archive.zip, which seems to
    indicate the contained files flashplayer9r124_winax.exe (Internet
    Explorer) and flashplayer9r124_win.exe (Netscape) would be versions
    9,0,124,0 to install after running the uninstaller.
    Can anyone check a few of the links below and see if the
    "Select Size and Color" chart is Flash based? If so, would
    executing the files listed above install 9,0,124,0 into my
    respective browsers again?
    http://www.amazon.com/FCS-Regular-7mm-Surf-Leash/dp/B00149XJ68
    http://www.amazon.com/Womens-Classic-Short-UGG-Boots/dp/B00064NH8W/ref=pd_ecc_rvi_cart_3
    http://www.amazon.com/Columbia-Sportswear-Womens-Benton-Springs/dp/B0006M6IQ2/ref=pd_ecc_r vi_cart_2
    http://www.amazon.com/Ladies-Chenille-Zip-Cardigan-Sweater/dp/B001E0YJ0C/ref=pd_ecc_rvi_ca rt_4
    XP IE 6 (error module : MSHTML.DLL)
    Flash Player version 10,0,12,36
    Firefox
    Flash Player version 9,0,124,0
    Thank you-
    Vickie

    I'm attempting to troubleshoot an issue with Amazon web pages
    since I've updated my Flash player. I would appreciate if someone
    could take a look at my initial post and advise if the issue seems
    to be Flash related.
    Thank you.
    I'm having a problem with certain Amazon.com pages hanging my
    Internet Explorer 6 using Flash Player 10,0,12,36, causing 100% CPU
    use for iexplore.exe and requiring me to End Task to quit. All the
    pages effected have an interactive mouseover Size and Color chart
    that intially says "Loading" but then says "Select Size and Color"
    once loaded. One mouseovers the various color patches and size
    options, each time giving item availability in that option. When
    the pages hang the IE browser with 100% CPU use that chart never
    gets to the "Select Size and Color" point, instead stuck at the
    "Loading" status. This happens most times, but not every time.
    Sometimes the pages load correctly, after a brief lag as it loads
    the chart.
    Amazon pages without this chart load fine.
    The start of this problem coincides with updating Flash.
    I can prevent the problem from happening almost every time if
    I can quickly get my cursor into that chart area while the page
    begins loading. If I allow the pages to load fully with no
    interaction they will hang almost every time.
    I have not noticed any problems on those same web pages using
    Firefox using Flash Player 9,0,124,0
    I also have not noticed any issues with other sites using
    Internet Explorer either. (YouTube, QVC, CNN...etc, all OK.)
    I had posted for assistance on the Experts Exchange site and
    there was some debate on whether the chart was a Java or
    Flash-based chart, so initially it was being approached as a
    possible Java issue, so I removed all Java versions on the system
    and installed various versions, but the same problem persists.
    I've downloaded but not run the Flash Uninstaller, as I'm
    reluctant to uninstall the Firefox Flash version without knowing
    for sure I could install 9,0,124,0 again.
    I've downloaded an archived fp9_archive.zip, which seems to
    indicate the contained files flashplayer9r124_winax.exe (Internet
    Explorer) and flashplayer9r124_win.exe (Netscape) would be versions
    9,0,124,0 to install after running the uninstaller.
    Can anyone check a few of the links below and see if the
    "Select Size and Color" chart is Flash based? If so, would
    executing the files listed above install 9,0,124,0 into my
    respective browsers again?
    http://www.amazon.com/FCS-Regular-7mm-Surf-Leash/dp/B00149XJ68
    http://www.amazon.com/Womens-Classic-Short-UGG-Boots/dp/B00064NH8W/ref=pd_ecc_rvi_cart_3
    http://www.amazon.com/Columbia-Sportswear-Womens-Benton-Springs/dp/B0006M6IQ2/ref=pd_ecc_r vi_cart_2
    http://www.amazon.com/Ladies-Chenille-Zip-Cardigan-Sweater/dp/B001E0YJ0C/ref=pd_ecc_rvi_ca rt_4
    XP IE 6 (error module : MSHTML.DLL)
    Flash Player version 10,0,12,36
    Firefox
    Flash Player version 9,0,124,0

  • Small Acrobat file causes 100% cpu usage with v. 7.09

    Using Acrobat professional 7.09
    I have a small acrobat file (94k) that causes my cpu to peg at 100% I used acrobat professional to convert an eps file to a pdf file. Is there a general known issue that could be causing this?
    Stephen

    > Looking at the plot, you might want to consider trying to use a vector graphic in the future. It looks like a plot that you may have created in MATLAB or such. In that case, why not just print to the PDF.
    I used matplotlib, which can generate png, eps, svg, or even pdf files. The pdf in question was converted by acrobat from eps, which has worked well for me in the past. I wish acrobat pro 7 could handle svg.
    Stephen

  • Recently FireFox often has been causing 100% CPU usage and locks up until it finishes the process (various ones). Clearing cookies/cache didn't help. Any ideas?

    Windows 2000 SP4, 1g RAM, Firefox 9.0.1
    We keep IE6 and Firefox open simultaneously for 2 different mail accounts. Firefox was always much faster even with 3 or 4 tabs open, but for the past couple of weeks when trying to update a screen the CPU suddenly goes to 100% usage and of course nothing will move until the particular process is finished. Closing one or more tabs does not help. If I close Firefox completely with Task Manager CPU usage goes back down to nil. After restarting Firefox CPU usage may or may not go back up depending upon whether it tries to continue the previous task that was locking it up.
    It did not do this with Firefox 3.6 but then again it didn't happen immediately after updating to 9.0.1 either.

    100% CPU usage occurred most often toward the end of the working day when busy trying to print on-line postage. We don't have any memory-consuming plugins but according to the knowledge base articles Firefox memory usage can gradually increase during the day even if you do nothing. It seems that may be the problem so we close and restart Firefox more often now as that usually fixes the problem. However, if we get stuck on a particular website update that causes the CPU to to go 100%, we can always start Firefox without previous tabs so the update will stop, or simply use a different browser until we have time to let the computer play games with itself.
    So our workaround of restarting Firefox turns out to be the final solution (until we find something better - will post it if we do). Vic

  • BT stack file TosBTMng.Exe causes 100% CPU Load

    I'm also facing the problem that the Toshiba Bluetooth Manager (TosBtMng.exe) very often starts looping and causes a CPU load of 100%.
    This happened with older versions of the Toshiba Bluetooth Stack and current version (5.1.0.12).
    The affected system is a Tecra S1, internal BT-Modul and Windows XP SP2.
    Installation of the BT-Stack went well and the notebook will boot succesfull while BT is enabled. I also checked for hidden COM-Ports and other hints found in this forum, no success.
    The lockup seems to happen at different times. Sometimes just after are reboot, clicking on the BT Tray symbol with the right mouse button. Then the context menu is shown just as white area, no entries. It may also trying to connect to an already paired device. If I kill the process with the task manager I can restart and it continues to work for some time.
    As found in another thread here I have enabled API logging of the Bluetooth Manager and found the following while connecting with the Nokia PC Suite to my mobile Phone:
    00042519 21:55:05 [7208] [TosBtAPI(PCCSTBTP)] Call BtCreateCOMM() -> BtCreateCOMM2()
    00042520 21:55:05 [7208] [TosBtAPI(PCCSTBTP)] Call BtCreateCOMM2()
    00042521 21:55:05 [7208] [TosBtAPI(PCCSTBTP)] BtCreateCOMM2 : InitCOMPort=COM6, CreateCOMPort=COM23
    00042522 21:55:05 [7208] [TosBtAPI(PCCSTBTP)] BlockingSDPCall : Send COPYDATASTRUCT / FuncNumber=00008000(32768), Size=00000036(54)
    00042523 21:55:05 [7208] [TosBtAPI(PCCSTBTP)] Receive WM_COPYDATA / fCloseAPI(BOOL)=0
    00042524 21:55:05 [7208] [TosBtAPI(PCCSTBTP)] SetReturnBackData : Received COPYDATASTRUCT / FuncNumber=00008000(32768), Size=00000028(40)
    00042525 21:55:05 [7208] [TosBtAPI(PCCSTBTP)] Call BlockingSDPCall() is returned.
    00042526 21:56:14 [7208] [TosBtAPI(PCCSTBTP)] Call BtGetLocalInfo()
    00042527 21:56:14 [7208] [TosBtAPI(PCCSTBTP)] BtGetLocalInfo2 : Input Paramers / pLocalBtDeviceInfo=00D9FE8C, plStatus=00D9FE84
    00042528 21:56:14 [7208] [TosBtAPI(PCCSTBTP)] BlockingSDPCall : Send COPYDATASTRUCT / FuncNumber=00001000(4096), Size=00000030(48)
    00042529 21:56:14 [7208] [TosBtAPI(PCCSTBTP)] Receive WM_COPYDATA / fCloseAPI(BOOL)=0
    00042530 21:56:14 [7208] [TosBtAPI(PCCSTBTP)] SetReturnBackData : Received COPYDATASTRUCT / FuncNumber=00001000(4096), Size=0000003F(63)
    00042531 21:56:14 [7208] [TosBtAPI(PCCSTBTP)] Call BlockingSDPCall() is returned.
    00042532 21:56:17 [7208] [TosBtAPI(PCCSTBTP)] Call BtGetRemoteDeviceList2()
    A new COM port is successfully created (COM23), and a few seconds later the CPU Load of TosBtMng goes up to 100%, but no API calls are performed. And if you wait long enough the phone gets connected and data can be transferred. However, very slowly.
    Probably due to the high CPU load a next COM (COM24) port will be created sometime later and this process is then repeated again:
    00042740 21:56:47 [7208] [TosBtAPI(PCCSTBTP)] Receive WM_COPYDATA / fCloseAPI(BOOL)=0
    00042741 21:56:47 [7208] [TosBtAPI(PCCSTBTP)] SetReturnBackData : Received COPYDATASTRUCT / FuncNumber=00008007(32775), Size=00000041(65)
    00042742 21:56:47 [7208] [TosBtAPI(PCCSTBTP)] Call BlockingSDPCall() is returned.
    00042743 21:56:47 [7208] [TosBtAPI(PCCSTBTP)] Call BtCreateCOMM() -> BtCreateCOMM2()
    00042744 21:56:47 [7208] [TosBtAPI(PCCSTBTP)] Call BtCreateCOMM2()
    00042745 21:56:47 [7208] [TosBtAPI(PCCSTBTP)] BtCreateCOMM2 : InitCOMPort=COM6, CreateCOMPort=COM24
    00042746 21:56:47 [7208] [TosBtAPI(PCCSTBTP)] BlockingSDPCall : Send COPYDATASTRUCT / FuncNumber=00008000(32768), Size=00000036(54)
    00042747 21:56:47 [7208] [TosBtAPI(PCCSTBTP)] Receive WM_COPYDATA / fCloseAPI(BOOL)=0
    00042748 21:56:47 [7208] [TosBtAPI(PCCSTBTP)] SetReturnBackData : Received COPYDATASTRUCT / FuncNumber=00008000(32768), Size=00000028(40)
    00042749 21:56:47 [7208] [TosBtAPI(PCCSTBTP)] Call BlockingSDPCall() is returned.
    00042750 21:57:52 [7208] [TosBtAPI(PCCSTBTP)] Call BtGetCOMMInfoList2()
    00042751 21:57:52 [7208] [TosBtAPI(PCCSTBTP)] Call BtCreateCOMM() -> BtCreateCOMM2()
    00042752 21:57:52 [7208] [TosBtAPI(PCCSTBTP)] Call BtCreateCOMM2()
    00042753 21:57:52 [7208] [TosBtAPI(PCCSTBTP)] Call BtCreateCOMM() -> BtCreateCOMM2()
    00042754 21:57:52 [7208] [TosBtAPI(PCCSTBTP)] Call BtCreateCOMM2()
    00042755 21:57:52 [7208] [TosBtAPI(PCCSTBTP)] Call BtCreateCOMM() -> BtCreateCOMM2()
    00042756 21:57:52 [7208] [TosBtAPI(PCCSTBTP)] Call BtCreateCOMM2()
    00042757 21:57:52 [7208] [TosBtAPI(PCCSTBTP)] Call BtCreateCOMM() -> BtCreateCOMM2()
    00042758 21:57:52 [7208] [TosBtAPI(PCCSTBTP)] Call BtCreateCOMM2()
    00042759 21:57:52 [7208] [TosBtAPI(PCCSTBTP)] Call BtCreateCOMM() -> BtCreateCOMM2()
    00042760 21:57:52 [7208] [TosBtAPI(PCCSTBTP)] Call BtCreateCOMM2()
    00042761 21:57:52 [7208] [TosBtAPI(PCCSTBTP)] Call BtGetLocalInfo()
    00042762 21:57:52 [7208] [TosBtAPI(PCCSTBTP)] Call BtGetLocalInfo()
    Maybe this helps to locate the origin of the CPU load problem of the Bluetooth Manager.
    Thanks
    Gerhard

    I was having the same problem, and it turned out to be the Data execution prevention settings. I had turned on (System->Advanced->Data execution protection) the execution prevention for all programs, causing TosBTMng.exe to max out one processor core all the time. The solution was to add TosBtMng.exe to the list of exceptions and restart. I'd looked high and low for a solution - hope this helps someone else!

  • Copying from USB NTFS device with Dolphin (KDE) causes 100% CPU usage

    I am copying +/- 30 GB of Music files (flac) from my external USB HDD which is formatted as NTFS.
    I have installed ntfs-3g and am experiencing near 100% CPU usage. What's wrong?
    Additional info: I am using KDE and initiated the copying through dolphin. KDE's system monitor only shows CPU usage near 100%, but no processes in the process view could be responsable.
    Thanks!

    What mount options are used for that ntfs drive?
    Edit: There are many similar threads but I couldn't find a solution other than trying out some kernel and cpufrequtils fun.
    Last edited by karol (2011-01-16 18:12:15)

  • [10.1.2] Protected Mode causing 100% CPU Usage/Extra Processes on Win XP 32-bit?

    Hello,
    I'm not 100% sure if the two are related, but I have a client who was seeing 100% CPU usage using Adobe Acrobat Reader X 10.1.2 on Windows XP 32-bit and Firefox 11. The acrord32.exe process would hang around after closing the main window and eventually leading to tons of processes and his CPU at 100% use. I believe disabling Protected Mode may have solved this issue. I didn't see it documented anywhere so I figure I'd post about it here and see if anyone else was seeing this resolved as well.

    I noticed 'only' 50 % CPU usage. Not during Reader usage with ~ 20 %, but it started after closing main window.
    Two instances of acrord32.exe were created - the moment pdf was opened - of which one was using zero CPU.
    After opening another pdf, 2 more processes were created, so 4 in total. Have seen 2 of them using 100 %.
    Issue is easily recreated.
    This is all in 10.1.3, no fix from Adobe, only THE fix from you: turning of Protected Mode!
    After which now only one proces is created, with 1 to 3 pdf documents opened at same time.
    This instance is then nicely shutdown after the last pfd is closed.

  • Repaint() causes 100%cpu useage

    im not sure where ive gone wrong but its using 100% of cpu. source below (a little messey - im a beginner)
    its a graphing extention to an applet - thanks for the help
    public class MyCanvasGraph extends Canvas {
    public void update(Graphics g) {
    paint(g);
    int graph1X = 0;
    int graph1Y = 20;
    int graph2X = 0;
    int graph2Y = 175;
         public void paint(Graphics g){     
         String whichStation = Team.convertInt(monitorSelected);
    int scaleBY = 10 ;
    int scaleBY2 = 100 ;
    int[] dataRecieved = Team.getRecieved();
         int timeForGraph = Team.timeCounter();
         int[] dataWaiting = Team.getWaiting();
    timeForGraph=timeForGraph/500;     
    // retrieve values of data at A - H and Scale to fit graph by value of scaleBY
    if (timeChange!=timeForGraph) { // only update graph if data has changed - allows applet to run smoother
         if ( monitorChange == monitorSelected ) { // make sure the monitored station is the same otherwise graph needs to be cleared
              System.arraycopy(graphArrayWaiting, 1, graphArrayWaiting, 0, 240);
    graphArrayWaiting[239] = dataWaiting[monitorSelected]/scaleBY ;
    System.arraycopy(graphArrayRecieved, 1, graphArrayRecieved, 0, 240);
    int ammountRecieved = dataRecieved[monitorSelected]/scaleBY2 ;
    if ( ammountRecieved>=1000) {ammountRecieved=1000;}
    graphArrayRecieved[239] = ammountRecieved ;
    else { monitorChange = monitorSelected;
         for(int t=0;t<=240;t++){
    graphArrayWaiting[t]=0;
    graphArrayRecieved[t]=0;}
    // KEY
    g.setColor(Color.blue);
    g.fillRect( 25, 147 ,12,12);
    g.drawString("Data Waiting", 40, 158);
    g.setColor(Color.black);
    g.drawRect( 25, 147 ,12,12);
    g.setColor(Color.red);
    g.fillRect( 125, 147 ,12,12);
    g.drawString("Data Sent", 140 , 158);
    g.setColor(Color.black);
    g.drawRect( 125, 147 ,12,12);
    g.setColor(new Color(192,192,192));
    g.drawRect( 20, 143 ,180,20);
         // TOP GRAPH
              g.setColor(Color.black);
              g.drawLine(graph1X + 20, graph1Y+10, graph1X + 20, graph1Y + 110); // draw Y axis
              g.drawLine(graph1X + 20, graph1Y + 110, graph1X + 260, graph1Y + 110); // draw X axis
              g.drawString("T I M E", graph1X + 225 , graph1Y + 125); // write TIME
              g.drawString("D", graph1X + 9 , graph1Y + 40); // write DATA
              g.drawString("A", graph1X + 9 , graph1Y + 60);
              g.drawString("T", graph1X + 9 , graph1Y + 80);
              g.drawString("A", graph1X + 9 , graph1Y + 100);
         // BOTTOM GRAPH     
    g.drawLine(graph2X + 20, graph2Y, graph2X + 20, graph2Y + 100); // draw Y axis
              g.drawLine(graph2X + 20, graph2Y + 100, graph2X + 260, graph2Y + 100); // draw X axis
              g.drawString("A", graph2X + 30 , graph2Y + 125); // WRITE a - h
              g.drawString("B", graph2X + 60 , graph2Y + 125);
              g.drawString("C", graph2X + 90 , graph2Y + 125);
              g.drawString("D", graph2X + 120 , graph2Y + 125);
              g.drawString("E", graph2X + 150 , graph2Y + 125);
              g.drawString("F", graph2X + 180 , graph2Y + 125);
              g.drawString("G", graph2X + 210 , graph2Y + 125);
              g.drawString("H", graph2X + 240 , graph2Y + 125);     
              g.drawString("D", graph2X + 9 , graph2Y + 30); // write DATA
              g.drawString("A", graph2X + 9 , graph2Y + 50);
              g.drawString("T", graph2X + 9 , graph2Y + 70);
              g.drawString("A", graph2X + 9 , graph2Y + 90);
    g.setColor(Color.white);
    g.fillRect(graph1X + 21, graph1Y -19,239,129); // Get rid of previous lines on graph 1
    g.fillRect(graph2X + 21, graph2Y +1 ,239,99); // Get rid of previous lines on graph 2
    g.setColor(new Color(192,192,192)); // set bar graph grid colour to grey
    for(int s=1;s<=10;s++){ // draws 10 lines to make a grid for graph 1
    g.drawLine(graph1X + 20, graph1Y + 10*s , graph1X + 260, graph1Y + 10*s );
    for(int s=1;s<=10;s++){ // draws 10 lines to make a grid for graph 2
    g.drawLine(graph2X + 20, graph2Y + 10*s - 10, graph2X + 260, graph2Y + 10*s - 10);
         // WHICH STATION IS BEING MONITORED
         g.setColor(Color.black);
    g.drawRect( 130, 12 ,120,13);
    g.setColor(Color.blue);
    g.drawString("Monitoring Station ", 137 , 23);
    g.setColor(Color.red);
    g.drawString(whichStation, 238 , 23);
    g.setColor(Color.blue); // set line colour to blue
    // PLOT GRAPH ONE LINE GRAPH
    for(int t=1;t<=2;t++){          
         timeChange=timeForGraph ;// see if the tame hs changed     
         for(int s=1;s<=238;s++){
              g.setColor(Color.red);
              g.drawLine(graph1X+20+s, 130-graphArrayRecieved[s], graph1X+s+21, 130-graphArrayRecieved[s+1]);
              g.setColor(Color.blue);
              g.drawLine(graph1X+20+s, 130-graphArrayWaiting[s], graph1X+s+21, 130-graphArrayWaiting[s+1]);
              // prepare data for graph 2
    int dataAt ;
    int recievedAt ;
    int dataAtA = dataWaiting[1];
    dataAtA = dataAtA/scaleBY;
    int recievedAtA = dataRecieved[1];
    recievedAtA = recievedAtA/scaleBY2;
    int dataAtB = dataWaiting[2];
    dataAtB = dataAtB/scaleBY;
    int recievedAtB = dataRecieved[2];
    recievedAtB = recievedAtB/scaleBY2;
    int dataAtC = dataWaiting[3];
    dataAtC = dataAtC/scaleBY;
    int recievedAtC = dataRecieved[3];
    recievedAtC = recievedAtC     /scaleBY2;
    int dataAtD= dataWaiting[4];
    dataAtD = dataAtD/scaleBY;
    int recievedAtD = dataRecieved[4];
    recievedAtD = recievedAtD/scaleBY2;
    int dataAtE = dataWaiting[5];
    dataAtE = dataAtE/scaleBY;
    int recievedAtE = dataRecieved[5];
    recievedAtE = recievedAtE/scaleBY2;
    int dataAtF = dataWaiting[6];
    dataAtF = dataAtF/scaleBY;
    int recievedAtF = dataRecieved[6];
    recievedAtF = recievedAtF/scaleBY2;
    int dataAtG = dataWaiting[7];
    dataAtG = dataAtG/scaleBY;
    int recievedAtG = dataRecieved[7];
    recievedAtG = recievedAtG/scaleBY2;
    int dataAtH = dataWaiting[8];
    dataAtH = dataAtH/scaleBY;
    int recievedAtH = dataRecieved[8];
    recievedAtH = recievedAtH/scaleBY2;
    for(int s=1;s<=8;s++){  
    switch (s) {
    case 1 : dataAt = dataAtA;
              recievedAt = recievedAtA ;     
              break ;           
    case 2 : dataAt = dataAtB;
    recievedAt = recievedAtB ;
    break;
    case 3 : dataAt = dataAtC;
              recievedAt = recievedAtC ;
    break;
    case 4 : dataAt = dataAtD;
    recievedAt = recievedAtD ;
    break;
    case 5 : dataAt = dataAtE;
    recievedAt = recievedAtE ;
    break;
    case 6 : dataAt = dataAtF;
    recievedAt = recievedAtF ;
    break;
    case 7 : dataAt = dataAtG;
    recievedAt = recievedAtG ;
    break;
    case 8 : dataAt = dataAtH;
    recievedAt = recievedAtH ;
    break;
    default : dataAt = dataAtA;      
              recievedAt = recievedAtA ;
              break ;
    }// end case
         // PLOT GRAPH 2 (BAR GRAPH)
         g.fillRect( graph2X - 5 + 30*s , graph2Y + 100 - dataAt, 10, dataAt ); // bar for A
    g.setColor(Color.red);
         g.fillRect( graph2X +5 + 30*s , graph2Y + 100 - recievedAt, 10, recievedAt ); // bar for A
         g.setColor(Color.blue);
    } // end loop
    } //end if statement (refresh control)
    } // closes for loop
    repaint();
    } // closes paint
         } // closes MyCanvasGraph

    This is the second %100 cpu utilization message I see in less than 24 hours.
    I recommend you start with the basics, and learn about about paint() repaint() logic, if you have to wonder why calling repaint() is not necessary inside of paint() you need to learn the basics first.
    http://java.sun.com/docs/books/tutorial/uiswing/painting/overview.html
    http://java.sun.com/products/jfc/tsc/articles/painting/index.html
    Please read these two links.

  • Spreadsheet functions causing 100% CPU usage

    Running ColdFusion Enterprise 9,0,0,251028 with JVM 1.6.0_14 on a Windows 2003 server.   I am finding that when using <cfspreadsheet> and the spreadsheet functions to build a spreadsheet the server CPU maxes out at 100% while the spreadsheet object is being built.   The spreadsheet is not overly large or complex:  10-15 columns and 400-500 rows.   This behavior is consistent - it happens every time, even when building a simple spreadsheet with 1 column and a few rows.  Is anyone else experiencing this?    Is it a known problem with a fix?  Thank you.
    Michael Mongeau
    Stratus Technologies

    I was able to root cause the excessive CPU usage to a single-CPU virtual machine.  When I ran the same code on dual-CPU virtual machines the CPU usage went to 50-60% but never reached 100% and stayed there as it does on the single-CPU virtual machine.   So there appears to be an issue with JRun and Apache POI on single-CPU machines.  I simply had my system administrator add another CPU to the virtual machine and the problem no longer occurs.

  • Adobe Reader 9.4-1 cause 100% CPU load on EL40 system

    Hi,
    when starting Adobe reader 9.4-1 on a Enterprise Linux 4 system the cpu load directly goes up to 100%
    This happens on EL40 update 4, 5 & 8
    I´m using gnome.
    uname -a
    Linux 2.6.9-89.0.0.0.1.ELsmp #1 SMP Tue May 19 04:23:49 EDT 2009 i686 i686 i386 GNU/Linux
    cat /etc/redhat-release
    Red Hat Enterprise Linux AS release 4 (Nahant Update 8)
    Kind regards
    Agent

    I had the same problem on a RHEL4 system, I think starting with 9.3.1.  The system requirements say only RHEL 5 is supported so I just uninstalled 9.3 and didn't look into it further.

  • SQL query against ConfigMgr DB causing 100% cpu usage on SQL server throughout day

    Hi, I am hoping someone here may have an idea of what I can do to resolve this as I am not much of a SQL guy. Here is what I know. Throughout the day, monday-friday, my ConfigMgr SQL server sits at 98-100% processor usage.
    Using the following query I have narrowed down the culprit of the high cpu usage throughout the day:
    SELECT p.spid, p.status, p.hostname, p.loginame, p.cpu, r.start_time, r.command,
    p.program_name, text
    FROM sys.dm_exec_requests AS r,
    master.dbo.sysprocesses AS p
    CROSS APPLY sys.dm_exec_sql_text(p.sql_handle)
    WHERE p.status NOT IN ('sleeping', 'background')
    AND r.session_id = p.spid
    Even though my knowledge of SQL is light, I believe the following output clearly defines the thread responsible for the high cpu usage. This "program_name" is present throughout the day and as long as its there, cpu usage remains at or near 100%:
    The text output of the above culprit is as follows (sorry this is long):
    -- Name : spDrsSummarizeSendHistory
    -- Definition : SqlObjs
    -- Scope : CAS_OR_PRIMARY_OR_SECONDARY
    -- Object : P
    -- Dependencies : <Detect>
    -- Description : Summarize DrsSendHistory information into DrsSendHistorySummary
    CREATE PROCEDURE spDrsSummarizeSendHistory
    AS
    BEGIN
    SET NOCOUNT ON;
    DECLARE @CurrentTime DateTime;
    DECLARE @SiteCode nvarchar(3);
    DECLARE @LastSummarizationTime DateTime;
    DECLARE @NextSummarizationTime DateTime;
    DECLARE @Interval INT; -- summarize interval in minutes
    DECLARE @ReplicationID INT
    DECLARE @iMaxID INT
    DECLARE @iCurrentID INT
    DECLARE @iBatchSize INT = 50
    DECLARE @ReplicationPattern NVARCHAR(255)
    DECLARE @TargetSite NVARCHAR(3);
    DECLARE @TimeTable TABLE (TargetSite NVARCHAR(3), StartTime DATETIME, EndTime DATETIME, PRIMARY KEY (TargetSite, StartTime, EndTime))
    DECLARE @TargetSites TABLE (SiteCode NVARCHAR(3) PRIMARY KEY)
    DECLARE @ChildTargetSites TABLE (TargetSite NVARCHAR(3), LastSummarizationTime DATETIME, [Interval] INT, PRIMARY KEY (TargetSite))
    DECLARE @ReplicationGroup TABLE (ID INT, ReplicationPattern NVARCHAR(255))
    IF OBJECT_ID(N'TempDB..#DrsSendHistorySummary') IS NOT NULL
    DROP TABLE #DrsSendHistorySummary
    CREATE TABLE #DrsSendHistorySummary (ID BIGINT IDENTITY(1, 1) NOT NULL, SourceSite NVARCHAR(3), TargetSite NVARCHAR(3), ReplicationGroupID INT, SyncDataSize BIGINT, CompressedSize BIGINT, UnCompressedSize BIGINT, MessageCount INT, ChangeCount INT, SummarizationTime DATETIME, PRIMARY KEY (ID))
    SET @CurrentTime = GETUTCDATE();
    SET @SiteCode = dbo.fnGetSiteCode();
    INSERT INTO @ReplicationGroup (ID, ReplicationPattern)
    SELECT RD.ID, RD.ReplicationPattern
    FROM ReplicationData RD
    WHILE EXISTS (SELECT * FROM @ReplicationGroup)
    BEGIN
    SELECT TOP (1) @ReplicationID = ID, @ReplicationPattern = ReplicationPattern FROM @ReplicationGroup
    TRUNCATE TABLE #DrsSendHistorySummary
    IF (((@ReplicationPattern = N'global' OR @ReplicationPattern=N'site') AND dbo.fnIsPrimary() = 1)
    OR (@ReplicationPattern = N'global_proxy' AND dbo.fnIsSecondary() = 1))
    BEGIN -- when current site is child
    SET @LastSummarizationTime = ISNULL(( SELECT MAX(SummarizationTime) FROM DrsSendHistorySummary WHERE SourceSite = @SiteCode AND ReplicationGroupID = @ReplicationID),
    (SELECT MIN(EndTime) FROM DrsSendHistory WHERE ReplicationGroupID = @ReplicationID) );
    SET @Interval = ISNULL((SELECT VALUE FROM RCMSQLCONTROLPROPERTY SCP, RCMSQLCONTROL SC
    WHERE SCP.ControlID = SC.ID AND SCP.Name = N'Send History Summarize Interval' AND SC.TypeID = 3 and SC.SiteNumber = dbo.fnGetSiteNumber()), 15); -- default 15 minutes
    DELETE @TargetSites
    INSERT INTO @TargetSites (SiteCode)
    SELECT DISTINCT SiteCode FROM DRS_MessageActivity_Send WHERE ReplicationID = @ReplicationID
    IF @LastSummarizationTime IS NOT NULL AND EXISTS (SELECT * FROM @TargetSites)
    BEGIN
    SET @NextSummarizationTime = DATEADD( minute, DATEDIFF(minute, 0, @LastSummarizationTime)/@Interval *@Interval + @Interval, 0);
    -- Summarized according to interval
    DELETE @TimeTable
    WHILE (@CurrentTime >= @NextSummarizationTime )
    BEGIN
    INSERT INTO @TimeTable (TargetSite, StartTime, EndTime)
    SELECT SiteCode, @LastSummarizationTime, @NextSummarizationTime FROM @TargetSites
    SET @LastSummarizationTime = @NextSummarizationTime;
    SET @NextSummarizationTime = DATEADD(mi, @Interval, @NextSummarizationTime );
    END
    INSERT INTO #DrsSendHistorySummary (SourceSite, TargetSite, ReplicationGroupID, SyncDataSize, CompressedSize, UnCompressedSize, MessageCount, ChangeCount, SummarizationTime)
    SELECT @SiteCode, T.TargetSite, @ReplicationID, SUM(ISNULL(D.SyncDataSize, 0)), SUM(ISNULL(D.CompressedSize, 0)), SUM(ISNULL(D.UnCompressedSize, 0)), SUM(ISNULL(D.MessageCount, 0)), SUM(ISNULL(ChangeCount, 0)), T.EndTime
    FROM DrsSendHistory D RIGHT JOIN @TimeTable T ON D.EndTime >= T.StartTime AND D.EndTime < T.EndTime AND ReplicationGroupID = @ReplicationID AND T.TargetSite = D.TargetSite
    GROUP BY T.TargetSite, T.StartTime, T.EndTime;
    END
    END
    ELSE IF ((@ReplicationPattern = N'global' AND dbo.fnIsCAS() = 1)
    OR (@ReplicationPattern = N'global_proxy' AND dbo.fnIsPrimary() = 1))
    BEGIN -- when current site is parent
    DELETE @ChildTargetSites
    INSERT INTO @ChildTargetSites(TargetSite, LastSummarizationTime, [Interval])
    SELECT DISTINCT(DSH.SiteCode),
    ISNULL(( SELECT MAX(SummarizationTime) FROM DrsSendHistorySummary WHERE SourceSite = @SiteCode AND ReplicationGroupID = @ReplicationID AND TargetSite=DSH.SiteCode),
    (SELECT MIN(EndTime) FROM DrsSendHistory WHERE ReplicationGroupID = @ReplicationID) ) AS LastSummarizeTime,
    ISNULL((SELECT VALUE FROM RCMSQLCONTROLPROPERTY SCP, RCMSQLCONTROL SC WHERE SCP.ControlID = SC.ID AND SCP.Name = N'Send History Summarize Interval' AND SC.TypeID = 3 and SC.SiteNumber = dbo.fnGetSiteNumberBySiteCode(DSH.SiteCode)), 15) AS Interval
    FROM DRS_MessageActivity_Send DSH WHERE DSH.ReplicationID = @ReplicationID
    GROUP BY DSH.SiteCode;
    DELETE @TimeTable
    WHILE EXISTS (SELECT * FROM @ChildTargetSites)
    BEGIN
    SELECT TOP (1) @TargetSite = TargetSite, @LastSummarizationTime = LastSummarizationTime, @Interval = Interval FROM @ChildTargetSites
    SET @NextSummarizationTime = DATEADD( minute, DATEDIFF(minute, 0, @LastSummarizationTime)/@Interval *@Interval + @Interval, 0);
    -- Summarized according to interval
    WHILE (@CurrentTime >= @NextSummarizationTime )
    BEGIN
    INSERT INTO @TimeTable (TargetSite, StartTime, EndTime)
    SELECT @TargetSite, @LastSummarizationTime, @NextSummarizationTime
    SET @LastSummarizationTime = @NextSummarizationTime;
    SET @NextSummarizationTime = DATEADD(mi, @Interval, @NextSummarizationTime );
    END
    DELETE @ChildTargetSites WHERE TargetSite = @TargetSite
    END;
    INSERT INTO #DrsSendHistorySummary (SourceSite, TargetSite, ReplicationGroupID, SyncDataSize, CompressedSize, UnCompressedSize, MessageCount, ChangeCount, SummarizationTime)
    SELECT @SiteCode, T.TargetSite, @ReplicationID, SUM(ISNULL(D.SyncDataSize, 0)), SUM(ISNULL(D.CompressedSize, 0)), SUM(ISNULL(D.UnCompressedSize, 0)), SUM(ISNULL(D.MessageCount, 0)), SUM(ISNULL(D.ChangeCount, 0)), @NextSummarizationTime
    FROM DrsSendHistory D RIGHT JOIN @TimeTable T ON D.EndTime >= T.StartTime AND D.EndTime < T.EndTime AND ReplicationGroupID = @ReplicationID AND T.TargetSite = D.TargetSite
    GROUP BY T.TargetSite, T.StartTime, T.EndTime;
    END;
    SELECT @iMaxID = MAX(ID), @iCurrentID = 0 FROM #DrsSendHistorySummary
    -- BATCH INSERT TO REAL TABLE
    WHILE (@iCurrentID < @iMaxID)
    BEGIN
    INSERT INTO DrsSendHistorySummary (SourceSite, TargetSite, ReplicationGroupID, SyncDataSize, MessageCount, ChangeCount, SummarizationTime)
    SELECT SourceSite, TargetSite, ReplicationGroupID, SyncDataSize, MessageCount, ChangeCount, SummarizationTime
    FROM #DrsSendHistorySummary WHERE ID > @iCurrentID AND ID <= (@iCurrentID + @iBatchSize)
    SET @iCurrentID = @iCurrentID + @iBatchSize
    END
    TRUNCATE TABLE #DrsSendHistorySummary
    DELETE @ReplicationGroup WHERE ID = @ReplicationID
    END
    END
    If anyone has any experience with this issue or anything similar and might be able to point me in the right direction, any responses would be greatly appreciated. Thanks for reading!

    Normally, this summary job every few mins which only summarize last few mins sending history. If the job was not running for long time, the first time, this sproc will summarize a lot more data than normal. So it could fail which will make things worse and
    worse over time.
    If sending summary data is not a big concern here, you can manually insert a dummy row with most recent time as Summarizationtime, so that, when summary job kicks in next time, it will only summary short interval data.
    DrsSendHistory is that the table records every sending on every group. This table is one of the key of replication logic. For your environment, on primary site, it could have up to 24(hrs) * 60 (mins) / 2 (sync interval) * 36(secondary sites) records per
    day for Secondary_Site_Replication_Configuration group and 24 * 60 / 5 * 22 records for Secondary Site Data.
    Umair Khan | http://blogs.technet.com/umairkhan
    Hi Umair,
    Thank you for the reply. My plan was to go ahead with your suggestions but what I tried first was to get my VM guy to give the SQL server access to more CPU resources. We had already configured it with what would have seemed to be plenty, as per Microsoft's
    sizing requirements, but I figured it couldn't hurt to rule out - he gave the SQL server access to a huge portion of the host processing power and since then CPU usage on the server has NOT been an issue.
    It would appear that the large amounts of secondary sites we have just simply put a lot of stress on the SQL server with out of the box replication settings. Since the entire VM host is for System Center only, and our other System Center servers are using
    very little resources, this solution has ended up being valid.
    Thanks again for everyone's help with this.

  • Large-scale swf causes 100% CPU usage

    Hi,
    I've created an interactive map that loads data from XML. The
    map is made from several areas (MCs, currently 16) - all positioned
    in a "mega MC" that holds the map together. The JPG are loaded
    externally respectively to the area MC that it belongs to.
    The problem is that the Map MC (that contains all the area
    MCs) is too big (around 6000X6000 Pxs) and therefore slows down the
    computer significantly (The CPU reaches 100% usage). This happens
    also when there's no loading of the external JPGs - meaning, I
    think, that the problem is only with the "physical" size of the MC
    and not its actual MB size.
    I hope I was clear enough.. Would appreciate any help!
    Link to map

    Hi,
    I had a similar problem when I needed a really big area. I
    think the cpu usage wasn't that bad in Flash Player 7 and 8.5 (now
    9), but in Flash 8 it was really high. I decided to not move the
    big MC around, only the smaller parts that where needed. I guess
    the whole map is never shown completely, only parts of it, so you
    can write a scroll function that determines the active MCs and only
    moves those around instead of the big holder MC. To achieve this, I
    added a variable to each MC that holds the position of that part in
    the big MC. Then I kept track of the position of the display in the
    map, and used this to decide which parts are actually displayed.
    Only these MCs have to be moved when scrolling, reducing the cpu
    usage a lot. When a part moves out of the display, I set its real
    position to -5000, and when a new part comes into display, its
    position is set from -5000 to the proper _x value so it gets
    displayed.
    hth,
    blemmo

  • Tab selection property causing 100% CPU usage

    Hi,
    I've having some trouble with using property nodes to tab selection. After 1-2 hours the CPU usage is 100%. The VI is attached. I'm using LV 6.0.2 on win2000. Does anyone have a clue of what's happening?
    Attachments:
    tab_selector_property.vi ‏22 KB

    Every time the while loop executes, you open *new* pages reference array. Whitout closing them, you quickly fill the memory and hog the computer usage. As in the modified VI attached, get the references only once outside the while loop and reuse them. Close any reference after use. As much as possible, you shoud use the control terminal to read its value instead of reading the value property.
    LabVIEW, C'est LabVIEW
    Attachments:
    tab_selector_property.vi ‏25 KB

  • Grid Control Perl Scripts Causing 100% CPU

    I have a Grid installation on a cluster of three databases. It periodically shows that the CPU is at 100%. When I check, it is a number of Perl scripts that are executed by the agent.
    Killing the Perl scripts returns CPU usage back to normal. The operating system is Red Hat, and the databases and clusterware Oracle 10.2.0.4.
    Anyone have experience with this. I've looked on Metalink, but haven't seen anything.
    Thanks,
    John

    I nearly fell off my chair laughing at the ludicrous suggestion of bouncing the box!!!
    When you say: Grid installation on a cluster of three databases
    What do you mean?!
    Grid control monitoring 3 rac databases?
    Grid control with a rac database as its repository?
    Version of Grid control?!

  • Bluetooth process causes 100% CPU

    Hi,
    After installing Toshiba BT stack my CPU usage is 100%.
    It seams like the process TosOBEX is the one consuming most of it.
    How can I solve this?
    Thanks!
    /Tommy

    So your OBEX COM ports are not installed. This explains your problems. I would try the following:
    Download the latest Toshiba Bluetooth stack (URL mentioned above). Confirm all questions during the installation and uninstallation process with "yes" so that it will be completely removed.
    Check after the installation if you see COM ports 15-19. Now use the Bluetooth stack which was delivered with your USB adapter and install it again. Confirm all questions during the uninstallation and installation process with "yes". Check if if your can see COM ports 10-14 after the installation.

Maybe you are looking for

  • Unit of Measurement in Material Master

    Hello Experts... I have an intresting issue on Unit of Measurement. I would like to maintain alternative unit of measurement as per below.. 1 EA = 1 EA 1 ROLL = 5000 EA 1 CT = 150,000 EA However the field UMREZ length in the material master allows me

  • My MacBook Pro is stuck on the loading screen and sounds as if its about the take off?!

    Hi everyone. About 3 hours ago my laptop suddenly became very unresponsive and began freezing a lot. I cleared the cookies on Firefox, but the problem carried on so I tried rebooting. Now it has been stuck on the loading screen for about half an hour

  • Keynote presenter notes cut off

    Help - when I print slides with presenter notes, my notes get cut off at the end of the page. Apart from making the font really tiny (which makes it difficult when I'm presenting), is there any workaround?

  • Load API with SQL Loader

    Hi: Does somebody know if it is possible to upload data using an API in SQL Loader? Or SQL Loader is limited only to INSERT statements? I need to bulk a lot of employees and their usernames and resposibilities. They are almost 200 employees. What I w

  • Malware removal

    Hello, sorry if I put this in the wrong category, as I didn't see one for malware, viruses, etc. I'm trying clean up my sister-in-laws Toshiba L305 laptop with AMD Sempron processor.  She didn't have current a/v software on the laptop and accidentall