ITunes causes 90% CPU usage when the info window scrolls the song title

What's up with that little info window under the iTunes title? When the song title exceeds the width of the window iTunes does a little right to left banner scroll of the text. Whenever this happens the CPU jumps to 90% and stays there. This is especially bad for radio stations that have long text message strings in their titles. I have to keep iTunes minimized to avoid this GUI bug.
This just started happening with iTunes 7 and 7.0.1
  Windows XP  

iTunes on MBP in miniplayer mode and streaming to airport express.  Wife changes songs through iPad remote and the CPU spikes to 90% and stays there.  If I then select regular window mode, the CPU drops back to 7-8% (where it was before song change).  It doesn't happen if I change songs through the MBP iTunes, only through the iPad remote.  It's like it starts a process and doesn't close it out.
There's a couple of different things that can be going on here. Let's check on the one that involves the Mini Player first.
It seems to happen when the main iTunes player is set to Cover Flow rather than List view.
If you set iTunes to List view prior to switching to the Mini Player, does that stop the excessive CPU use while in Mini Player?

Similar Messages

  • 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

  • High cpu usage when moving application windows

    Hello all,
    I have two machines with arch installed:
    - an eeepc 701 surf/intel gpu(xorg driver) with xfce
    - an amd 3800+ X2/nvidia 8860 gt(proprietary driver) with kdemod3(also checked with xfce4)/arch amd64 installed.
    I noticed that when i move a window of an application(for example konsole, etc..) too fast i get high cpu usage(30-40 %), when checking with htop.
    Is it normal that the X server uses the cpu so much when moving a window??
    EDIT: up to now i tested it in a friends windows machine, and it happens exactly the same, so i guess is normal. It seems i need to be informed better about how X works :-)
    Last edited by mechmg93 (2008-10-15 08:04:10)

    today i switced back my desktop system to debian unstable and tried to see what the difference is concerning this problem.
    I found out that in kde3 the solution to the "problem" is debians kde default configuration about window behaviour.
    Especially the one mentioned below :
    In debian this is not ticked and this has as a result zero cpu usage when windows are moved.
    Last edited by mechmg93 (2008-10-23 18:36:58)

  • Upgrade to iTunes to 10.4.0.80 caused 100% CPU usage when I start iTunes. Task manager shows iTunes 50% mobile 50%. I am running Windows XP Professional sp3. iPhone 3 ios 4.3.5

    I upgrade to iTunes 10.4.0.80. Since then iTunes uses 50% of the CPU and Mobile uses 50% CPU. I let it run for hours and the CPU usage stayed at 100%. The phone will partially sync but takes a very long time. This was not a problem before the iTunes upgrade. I am running iTunes on Windows XP professional SP3. It does not matter if the phone is connected to the USB port of the PC. When iTunes starts it runs the CPU at 100%.

    Yes!  I am not the only one with this problem.  Ever since the latest iTunes update, the CPU runs up to 100% using both the mobiledevice and itunes itself.  The store won't work either!  I'm also on Windows XP.  I too have tried everything I can think of but nothing has helped.  I really hope they get an update out with fixes soon.  This is really annoying!!

  • ITunes won't let me edit the song titles

    I click on a song title, and click the Get Info and it won't let me edit the song.
    The text is light gray instead of being black. When it's black I know I can edit it.
    I don't know how this happened... can someone please help me??

    Its one of two things,
    1) You don't have the rights to those files/location
    or
    2) The file is read only. Don't change just change the folder rights, go right to the files and uncheck readonly.
    Of course it could be something else I'm not aware of.

  • ITunes 10.6 has High CPU Usage when switched to Mini Player

    iTunes has high CPU usage when switched to mini player. The CPU usage goes to 80-100% when the next song is played in Mini Player. iTunes then stays at high CPU usage.
    Upon exiting mini player the CPU usage will drop back to the normal 0-5% levels.
    This only happens when playing from the main music library; which my library is at 7089 items, 42.04 GB.
    When playing from a smaller playlist such as a smart playlist with about 15 songs in it for example, the CPU usage stays low/normal.

    Do you have any better luck with that if you update to iTunes 10.6.1.7?
    From the notes for the release:
    iTunes 10.6.1 provides a number of improvements, including:
    • Fixes several issues that may cause iTunes to unexpectedly quit while playing videos, changing artwork size in Grid view and syncing photos to devices.
    • Addresses an issue where some iTunes interface elements are incorrectly described by VoiceOver and WindowEyes.
    • Fixes a problem where iTunes may become unresponsive while syncing iPod nano or iPod shuffle.
    • Resolves an ordering problem while browsing TV episodes in your iTunes library on Apple TV.
    http://www.apple.com/itunes/download/

  • High CPU & Memory issues - Excessive and unnecessary CPU usage in Firefox for Windows (see also questions1003966 & 998289)

    I am using the latest version of Firefox, 32.0.1, on an HP Pavilion dv7-4141sa laptop computer, running Windows 8.1 Pro 64-bit. There should be more than enough power here to run a browser without any problem, yet the computer is regularly being overloaded by the browser's resource usage.
    I am currently measuring typical average CPU usage of 45% - with the browser minimised. That is to say, Firefox is not doing any browser jobs - it is not drawing on the screen - but it is using the most CPU of any process currently running. Why?
    I am an ex-software engineer, and my understanding of current application development technology is limited, but I think I can say with some confidence that many techniques and software architectures exist that enable the suspension of program activity, or at least its reduction to a very low bare minimum, when the program is not actually carrying out its design function, which is in this case to draw pictures of website data on a screen.
    There is a very serious problem here, one which means that I cannot run Firefox all the time, but have to kill it when I am not actively browsing, otherwise other applications cannot run to their full capacity. This is a great pity, because I have committed a lot of effort to making Firefox my primary web tool. It manages all my many bookmarks, contains my secure password manager (LastPass), manages my web security (via NoScript, AdBlock, and FlashBlock), just for a start.
    Before any well-meaning moderators or other commenters start down the usual trail of "have you done this, tried that, disabled the other", I should point out that I have followed all the advice I can find, with no positive outcome. This computer is running a fresh installation of Windows, and a fresh installation of Firefox. At the moment I am running a new test Firefox profile.
    The latest version of Adobe Flash, 14.0.0.179, is installed but disabled. When it is enabled and in use, Firefox's CPU usage seems high over longer periods, but overall there is little difference. It doesn't look as though the problem can be laid at Flash's door. A few other add-ins are installed, mainly those mentioned above, and Firefox is skinned with LavaFox v2-Green, but I have previously started from a clean installation, which has made little difference after an initial period during which things seemed to be better. Turning off or disabling various add-ons has made no discernible difference.
    Just now I turned Flash on, and after a long period with Firefox minimised, Resource Monitor reported Firefox at 8% average CPU and FlashPlayerPlugin at 0.32%. While running a small video, RM reports FlashPlayerPlugin at about 45% and Firefox at 8%. After the video, Flash went back down to around 0.4%, and after a bit more browsing Firefox went to around 17% minimised. There seems little rhyme or reason here, except that Flash does not seem to be the culprit, although Firefox does seem to consume less when fewer tabs are actually active, as you might expect. I just refreshed more than a dozen tabs, and now Firefox is at 30%, but still not back up to the higher figures. Weird.
    The CPU usage does vary a lot around the average, but 30% is still a lot for a program that shouldn't be doing anything above the minimum status maintenance, and still puts it at the top of my Top Process Monitor list. (Right now it's gone back up to 45%, without my using it in any way).
    I have Telemetry turned on, so presumably Mozilla is recording some of the relevant data.
    This is a very serious fault, which is more or less reproducible and which a lot of people seem to be experiencing. Probably more people have it than realise, because most users will not know anything other than that their computer slows down for some non-obvious reason; they may just think it's something to do with the computer itself, not knowing how to use the Resource Monitor and interpret the results.
    Oddly, the problem does not seem to occur when running Firefox under Linux Mint 17, where the response is snappy and the CPU usage ostensibly low; I am going to look at this in more detail shortly.
    I am not posting here for advice, but for information and as a form of bug report which hopefully other users will see. It will hopefully spare them a lot of effort and time in trying a lot of recommended "solutions" which will not work. The problem is inherent in the software, and can be solved only by Mozilla.
    I am willing to supply any diagnostic data requested; as I said above, I have also turned on "Telemetry". However, I will not be trying out any more reinstallation/new-profile/add-on disable-enable-delete cycles unless I am asked to for very specific reasons. Please do not suggest courses of action which have already been mentioned elsewhere on this forum. I have tried them all.
    The situation is very disappointing, but I have confidence that the Firefox developers will pin down the fault eventually and engineer a satisfactory solution that makes it viable to leave Firefox open all the time. Even with that restriction, it's still far better than the alternatives.

    I share jmward's frustration. This is not a bug report so much as a request for a badly needed feature, ie the ability to have Firefox be able to tell us which tabs on which windows are eating time so we can target them. There are some very poorly written web pages out there which just plain loop while making no updates or inconsequential updates on the page.
    This is not a OS problem; jmward runs Windows and I run Linux but we have the same issue. It is not a question of Firefox plugins or extensions, or even viruses; I have a new, clean Linux install but have the same problem on both my regular Firefox AND on a FRESH install of the latest Firefox (35.0.1) which has *NO* non-default plugins or extensions.
    Here is an example of a web page which will eat 100% of one CPU's time:
    http://patch.com/massachusetts/arlington/arlington-woman-allegedly-attacks-neighbor-snow-blower-0
    I will attach 3 images to back up my claim. All of the images show my dark blue system monitor (gkrellm) superimposed on the web page. The top graph shows CPU time. I have 4 CPUs in my machine, so 25% means the web page is eating 100% of one CPU equivalent.
    The first image shows the load of the offending page with elevated CPU usage along with the download net activity on eth0, but the CPU activity does not stop when the download activity is over.
    The second images show the steady state 100% CPU equivalent of this page just sitting there apparently doing nothing. It IS, however, doing at least two different things. I know from my regular Firefox where I have "Remove It Permanently" installed that if I remove the the little weather indicator in the upper right of the offending page that CPU utilization drops to about 40% of one CPU equivalent. If I use RIP to remove everything else right down to a bare screen that 40% utilization stays until I delete the tab.
    The third image shows the CPU utilization drop to zero when I delete the tab holding the offending page.
    Now I will add a note here: If the offending page is NOT the top tab in a window then it stops eating time. The offender will also stop eating time if I minimize the window. However if I have another window up but leave the offender up on top in its window it continues to eat time even tho I am looking at another window. The offender will continue to eat time even if its window is completely covered by another window, and it will also eat time if I switch to another desktop.
    I will often have half a dozen windows open, and there are many pages out there which will suck endless CPU time. Unless I want to open up a new tab on each window before I leave it there is likely to be some tab on top eating time uselessly. Get a couple of those going and Firefox becomes sluggish and can even stop responding for many seconds.
    I guess I not only want to have Firefox tell us which tabs are eating time, but I would also like it if Firefox would stop giving CPU time to any tab which is not visible because it is covered by some other window and/or it is on a desktop which is currently not showing. If you can stop a tab's CPU usage by reason of tab-not-showing then you should also be able to stop its CPU usage when the window is covered or on the not-top desktop. Indeed is there any reason to not schedule absolute CPU utilization priority to the visible tab on the window with focus and give time to the other tabs only when the visible tab isn't using time?
    My final thought on this is that I have had Firefox SO tied up sometimes that I swear their are web pages which are eating time even tho they are not the top tab. I regret that I do not have an example to show you. But Firefox grinds to a complete halt on a regular basis, and that is not acceptable. I am a programmer with long experience in multi-threaded programs so I *know* there is no reason you cannot do better. If there were another browser around which had the commitment to privacy which Firefox has I would probably switch out of shear annoyance. :-(

  • High CPU usage when downloading from ITunes Match

    When attempting to download matched songs from ITunes Match, ITunes utilization spikes to over 70% and makes it almost impossible to do any other function on the computer.  Eventually ITunes fails to respond.  I have tried several remedies including reseting winsock.  Is there any other options I should try?

    Hiya,
    could it have something to do with the write speed/ cache/ram? On a "slow" disk, or one that is nearly full or one that is partitioned, it will take a great deal more ram and cache to "digest" the faster download and write it onto disk. I tend to do downloads to a separate drive. Have you got one? and can you repeat the high CPU usage when downloading / saving to the external drive? I note your drive might have 5,400 rpm, with "just" 8mB cache and 320 GB (quite a few SATA's have 7,200 rpm and 32 mB cache).
    NB: If anything, I found SL more efficient, especially on my 4 year old Macbook, which is running much faster and has got more responsive after installation of (full version of) SL.
    Message was edited by: Alexandre

  • Google Earth Plugin and LabVIEW: High CPU usage when adding placemarks

    Hi,
    I posted this question on stackoverflow earlier this week but feel it might be better suited to the LabVIEW community specifically so I'm reposting here:
    I'm writing an application which uses the Google Earth Plugin to display events on the globe. Each event is a single point kml placemark with an icon which is a 3kb png file. Placemarks are uploaded to the plugin as they are received by the software. I am experiencing increasing CPU usage with the number of placemarks that are added.
    I have tested displaying a new placemark every second and running until the software running the plugin completely froze (graph attached). The GEPlugin (green trace) stopped responding (i.e. the globe did not respond to the mouse) at around 1200 placemarks added and CPU usage was at ~30%. When the software itself (red trace) froze the plugin was using around 50% CPU and ~3700 placemarks had been added). After the freeze, no new placemarks were added which caused the software to respond (but not the plugin) so I could clear all the placemarks. After the placemarks were cleared from the globe, the CPU usage of the plugin returned to around 5% CPU.
    So what I've seen is that GEPlugin CPU usage increases linearly with each kml placemark added. Is this the expected behaviour/ a normal limitation of the plugin? If not is there a more efficient way of adding many placemarks to the globe?
    I am using GEPlugin version 7.1.1.1580 (API version 1.010) and LabVIEW 12.0f3
    Please see the test results attached. Any input greatly appreciated!
    Original stackoverflow post:
    http://stackoverflow.com/questions/20994323/google-earth-plugin-with-labview-high-cpu-usage-when-add...
    Attachments:
    Performance Log 020114_095115.png ‏82 KB

    Hello,
    I have had a look at your graphs and understood what you are trying to do. To me it seems that as the image gets more complex it gets harde to render which wold likely cause increase in CPU usage resulting in the freeze. I would suggest you try running the program on anoher computer to check on the RAM front of things. If this is a limitation of the GE Plugin then unfortunately I can not do much to help, but if you think this is a problem coming from your LabVIEW code then you can post your code here and I can take a look.

  • High CPU usage when graphics card is put at work

    I have a 13inch Air with 2GB RAM and 256GB  with Windows 7 Ultimate 64bit. All possible updates have been installed.
    I noticed some tearing when trying to move program windows across the screen so I started checking the CPU usage. I saw that it is spiking to 25-35% when moving a window across the screen.When you drag down a window you can see the different copies of the top bar across the screen. Not smooth at all like on a standard PC windows system. Same issue when scrolling through webpages which spikes the cpu
    I also noticed a high cpu usage when playing mkv files 25-30% while on an Atom HTPC i get a lower load playing the same file. The Air should be faster than an atom with a nvidia 9400m when playing video files.
    I already tried updating the nvidia files to the latest version on their site by hacking the driver inf but this did not resolve the issue.
    Has anyone experienced the same or know what could be causing the beavior?
    Many thanks

    Maybe my initial post was not clear so let me add some clarifications.
    I have the problem with Aero disabled
    I have the problem on the Apple site which does not have any flash content.
    I have already hacked the lastest nvidia drivers to get them on my system which did not change anything. Can you provide a link to some other 'supported' beta drivers?
    I am using the new 13 inch air so it has the newer graphics card so I would expect it to be faster than an old HTPC with a 9400m in it. I wasn't stating that my Air had a 9400m.
    It would be great if someone you also do the test to check the cpu load:
    - when playing a 720 mkv
    - when dragging a window across the screen
    Just open task manager and see if the CPU spikes.
    Many thanks!

  • Websites with flash content are causing tremendous CPU usage!!

    Greetings!
    I finally installed the long-awaited version 4 of firefox, and I am really disappointed. In addition to slight sluggishness now and again, it turns out that websites with Flash content (even those sites with a little flash advertising banner) are causing my CPU usage to really go up.
    It's slowing down my machine, making my CPU fans spin loudly, and making for a disappointing web browsing experience.
    I have disabled all add-ons, and done the usual. Even tried installing Chrome for the first time ever!
    The problem is definitely Flash + Firefox 4.
    I have created a brand new profile, but no dice. Wondering if anyone else experiences a high CPU load on pages with flash...

    Adobe Flash Player has also been crashing periodically on 2 of my computers, I'm still running XP, one of them a powerful HTPC, Dell Optiplex 755 SFF over a new Cable Internet Connection. Buffering, Lagging, crashing when streaming video for Catchup TV (Freeview) via Firefox Adobe Flash Player Add-On, does not happen on Youtube though. Lagging & Crashing does NOT occur AT ALL in Google Chrome, but I hate that browser.
    Have tried the usual disabling Flash Hardware Acceleration + Protected Mode, setting storage to Unlimited, disabling FF Ad Blockers + Hardware Acceleration, cleaning Caches, updating program versions, everything bar reinstalling programs. It's not happening in Chrome, why in Firefox?

  • How do I stop all of my music in my itunes library syncing to my iphone 5 even when the songs aren't ticked?

    How do I stop all of my music in my itunes library syncing to my iphone 5 even when the songs aren't ticked?

    The frustrating part about the restore is that is seems to be finished when it in fact is not.  The restore will look "finish" and your phone will be at the Swipe to Unlock screen. If you swipe and look at your home screen at this point of the restore, you'll see everything is not quite right.  While the process seems to be not doing anything just leave the phone attached and do something else for about an hour.  This part of the process is not mentioned during the restore operation.  I believe there are about two steps to the restore process: 1) restore the phone settings (ringtones, background, notification settings, etc.) and give the user the unlock screen; 2) without letting the user know there is still more to do, begin the slow process of restoring all the music, movies, apps and what not.  It's this second step that causes the confusion.  Nothing lets you know to wait that process out.  I've restored a couple devices from a computer backup and the 2-step process looks the same.

  • Kernel_task high cpu usage when using external monitor at 1080p

    Specs
    Model Name:          MacBook Pro
      Model Identifier:          MacBookPro6,2
      Processor Name:          Intel Core i7
      Processor Speed:          2.66 GHz
      Number Of Processors:          1
      Total Number Of Cores:          2
      L2 Cache (per core):          256 KB
      L3 Cache:          4 MB
      Memory:          4 GB
      Processor Interconnect Speed:          4.8 GT/s
      Boot ROM Version:          MBP61.0057.B0C
      SMC Version (system):          1.58f15
    My external display is a Samsung PX2370 connected to my MBP using an HDMI cable with a HDMI-to-miniDP adapter
    I first noticed this after the last EFI update several months back. At first I thought kernel_task eats up too much cpu cycles whenever an external display is attached, but it turns out this only happens when the external display is set to 1080p. When external display is set to 720p, kernel_task is pretty much normal (~5% cpu usage) but rises up to ~150% cpu usage once the external display is set to 1080p.
    kernel_task cpu usage is also with normal range when my MBP is connected to a Samsung LCD TV at 720p.
    Anyone having the same problem or know of any fix/workarounds?

    Seems like the problem persists when playing a 720p video on the external display set to 720p. To sum it up
    Video Resolution
    Main Display
    External  (1280x720)
    External (1920x1080)
    480p
    ok
    fluctuating kernel_task cpu usage (~5 to ~150 cpu usage)
    high kernel_task cpu usage
    720p
    ok
    high kernel_task cpu usage
    high kernel_task cpu usage
    1080p
    ok
    high kernel_task cpu usage
    high kernel_task cpu usage

  • Reduce CPU Usage when Runnig Telnet on Win2000

    Does any one knows how to reduce CPU usage when iam running my telnet developed using java classes.Every time when i start Telnet CPU usage is shooting to 100%.Can any one help to me solve my problem.

    You are probably doing some kind of loop that is eating all the CPU idle time. You could reduce your use of the CPU by calling Thread.yield() when you do not need to do anything for a bit, or even better, Thread.sleep(...) to pause your program for a specified number of milliseconds.
    Hope this helps some.

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

Maybe you are looking for

  • Century gothic displays in adobe reader 8 and not in 9

    Hi I have created a pdf using adobe livecycle and i have set the address font in my header to Century Gothic. When i view the doc in Adobe reader 8, it shows it exactly the way i want. When i view it in adobe 9, it has changed to arial. Why is this h

  • CREATE TEMPORARY TABLE USING EXECUTE IMMEDIATE

    Hi All, i have a question, how can i create a temporary table using EXECUTE IMMEDIATE ?? Like: CREATE GLOBAL TEMPORARY table new_table as (Select * from old_table); Thanks, Edited by: xDeviates on Jun 11, 2012 3:13 PM

  • Urgent: array on jsp

    hi can you please help me. i want to create an array, i get my data which is stored on the array on mysql database. here is my code: <% String[] subjects = {rsstudents.getObject("subj1"), rsstudents.getObject("subj2"), rsstudents.getObject("subj3"),

  • ProcessTCPEvents & priority inheritance

    Hello, I'm working with CVI RT on a dual core PXI. One CPU is dealing with TCP (server) and the other one is running a 1kHz custom regulator. When a windows client connect on the PXI, the server receive the configuration and the start command. During

  • Data Origin Configuration path in IMG for Plant Maintenance

    PM Experts, Could anyone tell me the path where in IMG the "Data origin configuration lies"  under Plenat maintenance and Customer services and the steps to be followed for deactivating this functionality. I do not know how this Data transfer across