Get-MailboxExportRequest script causes high cpu utilization

Our Exchange configuration is as follows:
Exchange 2013 Ent on single server with 4 dbs
DB1 - 191 users
DB2 - 19 users
DB3 - 72 users
DB4 - 7 users
When I run a script that exports all of the users from each db to a pst file the CPU utilization peaks as expected, however DB1 never completes.  Is there a way to throttle the performance somewhat or limit the number of users the script processes at
a time?  Here is my script:
#Establish variables
$mailserver = "Exchange"
$path = "\\FileServer"
$userlist = Get-Mailbox -database DB1
$ReportShare = "\\FileServer\pst$\reports"
$file = "\\FileServer\pst$\reports\*.txt"
$SMTP = "smtp.domain.com"
#delete files from previous nights export
if (Test-Path $file)
Remove-Item $file
#Clear previously completed & failed tasks
Get-MailboxExportRequest | where {$_.status -eq "Completed"} | Remove-MailboxExportRequest -confirm:$false
Get-MailboxExportRequest | where {$_.status -eq "Failed"} | Remove-MailboxExportRequest -confirm:$false
#Perform Mailbox Export
foreach ($user in $userlist)
$useralias = $user.alias
New-MailboxExportRequest -Mailbox $useralias -filepath $path\pst$\$useralias.pst
#Create a loop which checks if the task has completed or not
$exstat = Get-MailboxExportRequest | Get-MailboxExportRequestStatistics | where {$_.status -eq 'inprogress'}
do {start-sleep -seconds 5; $exstat = Get-MailboxExportRequest | Get-MailboxExportRequestStatistics | where {$_.status -eq 'inprogress'}}
until ($exstat.percentcomplete -eq '100')
#Create a pause for the exports to finish before writing logfile output
start-sleep -seconds 7200
#Write output to a log file
if ($ReportShare)
Write-Output "Writing reports to $($ReportShare)"
$Completed = Get-MailboxExportRequest -BatchName $BatchName | Where {$_.Status -eq "Completed"} | Get-MailboxExportRequestStatistics | Format-List
if ($Completed)
$Completed | Out-File -FilePath "$($ReportShare)\$($BatchName)_Completed.txt"
$Incomplete = Get-MailboxExportRequest -BatchName $BatchName | Where {$_.Status -ne "Completed"} | Get-MailboxExportRequestStatistics | Format-List
if ($Incomplete)
$Incomplete | Out-File -FilePath "$($ReportShare)\$($BatchName)_Incomplete_Report.txt"
#Send a mail notification the task has completed
Get-ChildItem $ReportShare | where {-NOT $_.PSIsContainer} | foreach {$_.fullname} | Send-MailMessage -to "[email protected]" -from "[email protected]" -Subject "PST EXPORT REPORT DB1" -Body "Export of DB1 complete."
-SmtpServer $SMTP -BodyAsHtml

I have to ask why you have a nightly job that exports each mailbox to PST?  It's unusual.
Anyway, you could split your script as follows:
Get-Mailbox -Database DB1 | ? {$_.samaccountname -like "[a-m]*"}
Get-Mailbox -Database DB1 | ? {$_.samaccountname -like "[n-z]*"}
Tony www.activedir.org Blog: www.open-a-socket.com

Similar Messages

  • BTServer causing high CPU utilization

    Just got a new MacBook Pro with OS X Lion and updated to 10.7.1. I've seen the BTServer process cause high CPU utilization twice now. One morning I also noticed that the fan was running loudly while the lid was closed and the computer was locked up; I had to force power it off. Anyone seeing similar issues? Doing a search for BTServer on Google or even here in the Apple Support Communities does not bring up anything related to Lion at all, only iPhone-related articles.

    yup, i had this problem too.  i have a new 2.2ghz macbook pro and while at a coffee shop, i noticed my battery draining very quickly, and a look at activity monitor showed that BTServer was running away with high-cpu utilization.    i killed off the process and didn't notice any loss of functionality. 
    not sure what it was supposed to do with so much freaking cpu cycles!!!
    is this for bluetooth? i dont even have bluetooth on.  im not happy about this having to be something i'd need to keep a eye on when i'm trying to maximize my battery life. 

  • Multiple Adobe Readers causing High CPU utilization

    Recently I've had a couple of instances where my system performance degraded significantly. I checked Task Manager and discovered two Adobe processes  accounted for + 80% CPU utilization. Adobe Reader was not showing as an open application.  I had closed the application earlier. I rebooted and things went back to normal. The processes were no longer active.
    Note: Recently I had a problem with Nitro Pro hijacking my ability to open PDFs. It even removed Adobe Reader from my list of options for opening a PDF.
    Has anyone had similar issues? Cause? Fix?

    Hi keeperdan ,
    Thank You for posting on the forums. Which version of Adobe Reader are you working with? My suggestion would be to use the latest Adobe Reader 11. Also, if you are already using Reader 11 kindly update it to 11.0.06.
    Kindly reply if this does not resolve the issue.
    Thanks,
    Vikrantt Singh

  • LR4 - dynamiclinkserver.exe causes high CPU utilization

    Hardware / OS
    I7 960 CPU, 12GB drives, two 2TB drives internal.   The lightroom catalog is on the 2nd drive.
    I hava a master folder called "photos".  Numerous folders underneath that.   It totals to about 200,000 photos.
    I right click on photos, start the "synchronize this folder" process.   It does the search, gives me a count of missing photos.   That happens pretty quickly.
    I click the synchronize button, it's now 7 hours later.  The CPU's are pegged at 100%
    I pull up the task manager
    dynamiclinkmediaserver.exe *32 is at 88% CPU.   Doesn't seem to be accumulating an IO accounts
    lightroom.exe is about 10% CPU.  Is accumulating read and other counds
    I look at the drive meter gadget on my deskop - it shows just very minimal IO
    I look at the network meter gadget, it shows very minimal IO
    Any ideas?

    And it is STILL in lightroom cc 5.7, exactly as described. My machine is pretty fast and this bug eats it alive.
    And it doesn't seem like Adobe cares to fix it.

  • WCCP causing high cpu utilization on 7613

    Hi
    We installed 2x WAE and 1 x Central Manager as per diagram at the Core, rolling out more WAE devices (appliances and SRE-900) at the branches.
    I configured as follows:
    Configured IP wccp version 2
    Ip wccp 61
    Ip wccp 62
    On the LAN
    Configured ip wccp 61 redirect in
    On the WAN
    Configured ip wccp 62 redirect in
    On the WAE interfaces configured ip wccp redirect exclude
    On  COR 1 it is giving us a 90% cpu util while COR 2 is at 5%
    Both 7613's config of wccp are identical, IP CEF is enabled, both WAE 7341 appliances configs are identical.
    Once we remove on the LAN side  ip wccp 61 redirect in, the cpu util on COR1 comes down to 5%.
    Does anyone have an idea why? Your help is greatly appreciated. Many thanks

    Hi Bhavin
    Many thanks for your reply, I have narrowed down to one link, going down to DIS3, I removed the ip wccp 61 redirect in from that interface and the CPU is normal, Below is the info you requested. I was thinking in moving the WAE devices to the DIS chassis, and monitor the outcome.
    Core 1
    c7600rsp72043_rp Software (c7600rsp72043_rp-ADVENTERPRISEK9-M), Version 12.2(33)SRE2,
    GNUMCOR1#sh ip wccp 61 detail
    WCCP Client information:
            WCCP Client ID:          192.168.xx.xx
            Protocol Version:        2.0
            State:                   Usable
            Redirection:             GRE
            Packet Return:           GRE
            Assignment:              HASH
            Initial Hash Info:       00000000000000000000000000000000
                                     00000000000000000000000000000000
            Assigned Hash Info:      FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
                                     FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
            Hash Allotment:          256 (100.00%)
            Packets s/w Redirected:  5197687
            Connect Time:            2d14h
            GRE Bypassed Packets
              Process:               0
              CEF:                   1
              Errors:                0
    GNUMCOR1#sh ip wccp 62 detail
    WCCP Client information:
            WCCP Client ID:          192.168.xx.xx
            Protocol Version:        2.0
            State:                   Usable
            Redirection:             GRE
            Packet Return:           GRE
            Assignment:              HASH
            Initial Hash Info:       00000000000000000000000000000000
                                     00000000000000000000000000000000
            Assigned Hash Info:      FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
                                     FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
            Hash Allotment:          256 (100.00%)
            Packets s/w Redirected:  71001191
            Connect Time:            2d14h
            GRE Bypassed Packets
              Process:               0
              CEF:                   0
              Errors:                0
    sh run | in wccp
    wccp router-list 8 192.168.xx.xx 172.xx.xx.xx
    wccp tcp-promiscuous service-pair 61 62 failure-detection 30
    wccp tcp-promiscuous service-pair 61 62 router-list-num 8
    wccp version 2
    Core 2
    Cisco IOS Software, c7600rsp72043_rp Software (c7600rsp72043_rp-ADVENTERPRISEK9-M), Version 12.2(33)SRE2,
    GNUMCOR2#sh ip wccp 61 detail
    WCCP Client information:
            WCCP Client ID:          192.168.yy.yy
            Protocol Version:        2.0
            State:                   Usable
            Redirection:             GRE
            Packet Return:           GRE
            Assignment:              HASH
            Initial Hash Info:       00000000000000000000000000000000
                                     00000000000000000000000000000000
            Assigned Hash Info:      FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
                                     FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
            Hash Allotment:          256 (100.00%)
            Packets s/w Redirected:  22954398
            Connect Time:            2d14h
            GRE Bypassed Packets
              Process:               0
              CEF:                   0
              Errors:                0
    GNUMCOR2#sh ip wccp 62 detail
    WCCP Client information:
            WCCP Client ID:          192.168.yy.yy
            Protocol Version:        2.0
            State:                   Usable
            Redirection:             GRE
            Packet Return:           GRE
            Assignment:              HASH
            Initial Hash Info:       00000000000000000000000000000000
                                     00000000000000000000000000000000
            Assigned Hash Info:      FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
                                     FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
            Hash Allotment:          256 (100.00%)
            Packets s/w Redirected:  17373518
            Connect Time:            2d14h
            GRE Bypassed Packets
              Process:               0
              CEF:                   1
              Errors:                0
    GNUMNUMWAE3#sh run | inc  wccp 
    wccp router-list 8 192.168.yy.yy 172.yy.yy.yy
    wccp tcp-promiscuous service-pair 61 62 failure-detection 30
    wccp tcp-promiscuous service-pair 61 62 router-list-num 8
    wccp version 2
    GNUMNUMWAE3#

  • CB21AG High CPU Utilization

    We have a problem with CB21AG cards causing high CPU utilization on WinXP. Task manager shows the CPU pegged at 100%, but the individual processes don't add up to 100%. IE, there are "missing" CPU cycles. Using Process Monitor from SysInternals, we see that NDIS (Windows network wrapper) is creating numerous DPCs and causing the CPU usage. Shutting down the wireless card fixes the problem. It's an LWAPP environment (WiSM 4.0.217), with various versions of the client drivers up to ADU 3.6.
    Does anyone know anything about this?

    It'd be hard to say anything for certain without seeing all the test stuff ... but it sounds like old or corrupt drivers / utilities.
    There are some Microsoft-side patches / updates that may be useful as well.
    Try reloading the (and / or updating) the drivers & utilities. If you're using Zero Wireless Config, try (at least for experimentation) the Cisco utilities (ADU) or vice-versa. It might narrow down which specific software modules are involved.
    IF you have a spare card, it might also be worth a shot ... there could be a bad software component in EPROM that's causing the problem.
    I believe some of the driver/utility updates include updated firmware loads for the NIC too.
    Good Luck
    Scott

  • Does debug ip OSPF adjacency will cause high CPU

    Hello All,
    We are finding a OSPF flapping issue on Cisco 3750x switches. To isolate the issue TAC has suggested "debug ip ospf adj"
    Does this command will cause high CPU utilization?
    There are 12 OSPF neighbours connected to that switch and we have the hello interval of 1 second.
    Any of your help would be appreciable.
    Regards,
    Thiyagu

    It may do... But unlikely. There is always a risk with debug commands that have large output. Especially that you have hello intervals set to 1 second. I would advise to do out of hours if necessary to mitigate risks of impacting production.
    What version of ios are you on and show the output of 'show proc cpu sorted'
    I have had a similar experience and multicast was the problem. It was high CPU and dropping ospf adjacencies. We downgraded to 12.2 55 SE 8
    It helped the problem for CPU utilisation but didn't fix it. Since then we are using 6509Es in VSS

  • High CPU Utilization by J2EE engine

    Dear team,
    I want to find the tread causing high CPU utilization within the "jlaunch" process. As stated in SAP note: 743204. I ran the command "tps -a <pid> -a" in the development box and it it running fine. But the same command in the production portal is giving us the following error:
    jueppci:/#/usr/sap/tps -a                                                                               
    Initialize measurement (10 sec) ...Memory fault(coredump)    
    I did a strings command om the core and  I got
    jueppci:/#strings core                                       
    libdl.so                                                    
    Why is tps not running properly ?

    Hello,
    Thanks Russell. It is HP-UX 11.31 (11i v3). We have opened a Very High Message with SAP. SAP AG and HP are working with us to solve this issue. We will be applying some patches and doing a lot of Java parameter changes !
    I'll update the solution once the system is stable and the case with SAP is closed.

  • High CPU Utilization in GEIP

    Hi folk,
    Does anyone know what could cause high CPU utilization on GEIP in Cisco
    7513? I found a documentation about Rx-side-buffer which talk about it, but
    in my case, I just made a reseating of this module and the CPU utilization
    goes down.
    Is it a bug or hardware revison problem?
    Thanks

    only a curious queston: do you have to use PS6.1 ?
    /ulf

  • LMS 4.2.3 Server high CPU Utilization

    Hi All,
    We are observing high CPU utilization on the lms server. tomcat is the process eating more than 1GB of the memory i checked from the task manager.
    Server details:
    device license : 100
    windows server 2k8 R2, with 8gb physical memory.
    anybody suggest what might be causing the issue.?? because of this performance reports were affected.
    Regards,
    Channa

    Hi Channa,
    log into dbreader using the following::
    http://servername : 1741/dbreader/dbreader.html
    or
    https:// servername : 443/dbreader/dbreader.html
    user Id is DBA
    Database Name is upm
    password :: user defined (by default password is c2ky2k)
    1.       Here is the query to get the pollerwise managed MIBObjects:
    "select count (*), PollerName from Poller_Details_Table a,Poller_Definition_Table b where a.PollerId = b.PollerId and b.Poller_State NOT IN (1) Group by b.PollerName;"
    2.       Here is the query to get the total mibobject count for the active pollers
    “select count (*) from Poller_Details_Table a,Poller_Definition_Table b where a.PollerId =
    b.PollerId and b.Poller_State NOT IN (1);”
    Hope it will help
    Thanks-
    Afroz
    ***Ratings Encourages Contributors ***

  • Very high cpu utilization with mq broker

    Hi all,
    I see a very high cpu utilization (400% on 8 cpu server) when I connect consumers to OpenQ. It increase close to 100% for every consumer I add. Slowly, the consumer comes to a halt, as the producers are sending messages at a good rate too.
    Environment Setup
    Glassfish version 2.1
    com.sun.messaging.jmq Version Information Product Compatibility Version: 4.3 Protocol Version: 4.3 Target JMS API Version: 1.1
    Cluster set up using persistent storage. snippet from broker log.
    Java Runtime: 1.6.0_14 Sun Microsystems Inc. /home/user/foundation/jdk-1.6/jre [06/Apr/2011:12:48:44 EDT] IMQ_HOME=/home/user/foundation/sges/imq [06/Apr/2011:12:48:44 EDT] IMQ_VARHOME=/home/user/foundation/installation/node-agent-server1/server1/imq [06/Apr/2011:12:48:44 EDT] Linux 2.6.18-164.10.1.el5xen i386 server1 (8 cpu) user [06/Apr/2011:12:48:44 EDT] Java Heap Size: max=394432k, current=193920k [06/Apr/2011:12:48:44 EDT] Arguments: -javahome /home/user/foundation/jdk-1.6 -Dimq.autocreate.queue=false -Dimq.autocreate.topic=false -Dimq.cluster.masterbroker=mq://server1:37676/ -Dimq.cluster.brokerlist=mq://server1:37676/,mq://server2:37676/ -Dimq.cluster.nowaitForMasterBroker=true -varhome /home/user/foundation/installation/node-agent-server1/server1/imq -startRmiRegistry -rmiRegistryPort 37776 -Dimq.imqcmd.user=admin -passfile /tmp/asmq5711749746025968663.tmp -save -name clusterservercom -port 37676 -bgnd -silent [06/Apr/2011:12:48:44 EDT] [B1004]: Starting the portmapper service using tcp [ 37676, 50, * ] with min threads 1 and max threads of 1 [06/Apr/2011:12:48:45 EDT] [B1060]: Loading persistent data...
    I followed step in http://middlewaremagic.com/weblogic/?p=4884 to narrow it down to Threads that was causing high cpu. Both were around 94%.
    Following is the stack for those threads.
    "Thread-jms[224]" prio=10 tid=0xd635f400 nid=0x5665 runnable [0xd18fe000] java.lang.Thread.State: RUNNABLE at com.sun.messaging.jmq.jmsserver.data.TransactionList.isConsumedInTransaction(TransactionList.java:697) at com.sun.messaging.jmq.jmsserver.core.Session.detatchConsumer(Session.java:918) - locked <0xf3d35730> (a java.util.Collections$SynchronizedMap) at com.sun.messaging.jmq.jmsserver.core.Session.detatchConsumer(Session.java:810) at com.sun.messaging.jmq.jmsserver.data.handlers.ConsumerHandler.destroyConsumer(ConsumerHandler.java:577) at com.sun.messaging.jmq.jmsserver.data.handlers.ConsumerHandler.handle(ConsumerHandler.java:422) at com.sun.messaging.jmq.jmsserver.data.PacketRouter.handleMessage(PacketRouter.java:181) at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.readData(IMQIPConnection.java:1489) at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.process(IMQIPConnection.java:644) at com.sun.messaging.jmq.jmsserver.service.imq.OperationRunnable.process(OperationRunnable.java:170) at com.sun.messaging.jmq.jmsserver.util.pool.BasicRunnable.run(BasicRunnable.java:493) at java.lang.Thread.run(Thread.java:619) Locked ownable synchronizers: - None
    "Thread-jms[214]" prio=10 tid=0xd56c8000 nid=0x566c waiting for monitor entry [0xd2838000] java.lang.Thread.State: BLOCKED (on object monitor) at com.sun.messaging.jmq.jmsserver.data.TransactionInformation.isConsumedMessage(TransactionList.java:2544) - locked <0xdbeeb538> (a com.sun.messaging.jmq.jmsserver.data.TransactionInformation) at com.sun.messaging.jmq.jmsserver.data.TransactionList.isConsumedInTransaction(TransactionList.java:697) at com.sun.messaging.jmq.jmsserver.core.Session.detatchConsumer(Session.java:918) - locked <0xe4c9abf0> (a java.util.Collections$SynchronizedMap) at com.sun.messaging.jmq.jmsserver.core.Session.detatchConsumer(Session.java:810) at com.sun.messaging.jmq.jmsserver.data.handlers.ConsumerHandler.destroyConsumer(ConsumerHandler.java:577) at com.sun.messaging.jmq.jmsserver.data.handlers.ConsumerHandler.handle(ConsumerHandler.java:422) at com.sun.messaging.jmq.jmsserver.data.PacketRouter.handleMessage(PacketRouter.java:181) at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.readData(IMQIPConnection.java:1489) at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.process(IMQIPConnection.java:644) at com.sun.messaging.jmq.jmsserver.service.imq.OperationRunnable.process(OperationRunnable.java:170) at com.sun.messaging.jmq.jmsserver.util.pool.BasicRunnable.run(BasicRunnable.java:493) at java.lang.Thread.run(Thread.java:619) Locked ownable synchronizers: - None
    "Thread-jms[213]" prio=10 tid=0xd65be800 nid=0x5670 runnable [0xd1a28000] java.lang.Thread.State: RUNNABLE at com.sun.messaging.jmq.jmsserver.data.TransactionList.isConsumedInTransaction(TransactionList.java:697) at com.sun.messaging.jmq.jmsserver.core.Session.detatchConsumer(Session.java:918) - locked <0xe4c4bad8> (a java.util.Collections$SynchronizedMap) at com.sun.messaging.jmq.jmsserver.core.Session.detatchConsumer(Session.java:810) at com.sun.messaging.jmq.jmsserver.data.handlers.ConsumerHandler.destroyConsumer(ConsumerHandler.java:577) at com.sun.messaging.jmq.jmsserver.data.handlers.ConsumerHandler.handle(ConsumerHandler.java:422) at com.sun.messaging.jmq.jmsserver.data.PacketRouter.handleMessage(PacketRouter.java:181) at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.readData(IMQIPConnection.java:1489) at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.process(IMQIPConnection.java:644) at com.sun.messaging.jmq.jmsserver.service.imq.OperationRunnable.process(OperationRunnable.java:170) at com.sun.messaging.jmq.jmsserver.util.pool.BasicRunnable.run(BasicRunnable.java:493) at java.lang.Thread.run(Thread.java:619) Locked ownable synchronizers: - None
    Any ideas will be appreciated.
    --

    Thanks ak, for the response.
    Yes, the messages are consumed in transactions. I set imq.txn.reapLimit=200 in Start Arguments in jvm configuration.
    I verified that it is being set in the log.txt file for the broker:
    -Dimq.autocreate.queue=false -Dimq.autocreate.topic=false -Dimq.txn.reapLimit=250
    It did not make any difference. Do I need to set this property somewhere else ?
    As far as upgrading MQ is concerned, I am using glassfish 2.1. And I think MQ 4.3 is packaged with it. Can you suggest a safe way to upgrade to OpenMQ 4.5 in a running environment. I can bring down the cluster temporarily. Can I just change the jar file somwhere to use MQ4.5 ?
    Here is the snippet of the consumer code :
    I create Connection in @postConstruct and close it in @preDestroy, so that I don't have to do it everytime.
    private ResultMessage[] doRetrieve(String username, String password, String jndiDestination, String filter, int maxMessages, long timeout, RetrieveType type)
    throws InvalidCredentialsException, InvalidFilterException, ConsumerException {
    // Resources
    Session session = null;
    try {
    if (log.isTraceEnabled()) log.trace("Creating transacted session with JMS broker.");
    session = connection.createSession(true, Session.SESSION_TRANSACTED);
    // Locate bound destination and create consumer
    if (log.isTraceEnabled()) log.trace("Searching for named destination: " + jndiDestination);
    Destination destination = (Destination) ic.lookup(jndiDestination);
    if (log.isTraceEnabled()) log.trace("Creating consumer for named destination " + jndiDestination);
    MessageConsumer consumer = (filter == null || filter.trim().length() == 0) ? session.createConsumer(destination) : session.createConsumer(destination, filter);
    if (log.isTraceEnabled()) log.trace("Starting JMS connection.");
    connection.start();
    // Consume messages
    if (log.isDebugEnabled()) log.trace("Creating retrieval containers.");
    List<ResultMessage> processedMessages = new ArrayList<ResultMessage>(maxMessages);
    BytesMessage jmsMessage = null;
    for (int i = 0 ; i < maxMessages ; i++) {
    // Attempt message retrieve
    if (log.isTraceEnabled()) log.trace("Attempting retrieval: " + i);
    switch (type) {
    case BLOCKING :
    jmsMessage = (BytesMessage) consumer.receive();
    break;
    case IMMEDIATE :
    jmsMessage = (BytesMessage) consumer.receiveNoWait();
    break;
    case TIMED :
    jmsMessage = (BytesMessage) consumer.receive(timeout);
    break;
    // Process retrieved message
    if (jmsMessage != null) {
    if (log.isTraceEnabled()) log.trace("Message retrieved\n" + jmsMessage);
    // Extract message
    if (log.isTraceEnabled()) log.trace("Extracting result message container from JMS message.");
    byte[] extracted = new byte[(int) jmsMessage.getBodyLength()];
    jmsMessage.readBytes(extracted);
    // Decompress message
    if (jmsMessage.propertyExists(COMPRESSED_HEADER) && jmsMessage.getBooleanProperty(COMPRESSED_HEADER)) {
    if (log.isTraceEnabled()) log.trace("Decompressing message.");
    extracted = decompress(extracted);
    // Done processing message
    if (log.isTraceEnabled()) log.trace("Message added to retrieval container.");
    String signature = jmsMessage.getStringProperty(DIGITAL_SIGNATURE);
    processedMessages.add(new ResultMessage(extracted, signature));
    } else
    if (log.isTraceEnabled()) log.trace("No message was available.");
    // Package return container
    if (log.isTraceEnabled()) log.trace("Packing retrieved messages to return.");
    ResultMessage[] collectorMessages = new ResultMessage[processedMessages.size()];
    for (int i = 0 ; i < collectorMessages.length ; i++)
    collectorMessages[i] = processedMessages.get(i);
    if (log.isTraceEnabled()) log.trace("Returning " + collectorMessages.length + " messages.");
    return collectorMessages;
    } catch (NamingException ex) {
    sessionContext.setRollbackOnly();
    log.error("Unable to locate named queue: " + jndiDestination, ex);
    throw new ConsumerException("Unable to locate named queue: " + jndiDestination, ex);
    } catch (InvalidSelectorException ex) {
    sessionContext.setRollbackOnly();
    log.error("Invalid filter: " + filter, ex);
    throw new InvalidFilterException("Invalid filter: " + filter, ex);
    } catch (IOException ex) {
    sessionContext.setRollbackOnly();
    log.error("Message decompression failed.", ex);
    throw new ConsumerException("Message decompression failed.", ex);
    } catch (GeneralSecurityException ex) {
    sessionContext.setRollbackOnly();
    log.error("Message decryption failed.", ex);
    throw new ConsumerException("Message decryption failed.", ex);
    } catch (JMSException ex) {
    sessionContext.setRollbackOnly();
    log.error("Unable to consumer messages.", ex);
    throw new ConsumerException("Unable to consume messages.", ex);
    } catch (Throwable ex) {
    sessionContext.setRollbackOnly();
    log.error("Unexpected error.", ex);
    throw new ConsumerException("Unexpected error.", ex);
    } finally {
    try {
    if (session != null) session.close();
    } catch (JMSException ex) {
    log.error("Unexpected error.", ex);
    Thanks for your help.
    Edited by: vineet on Apr 7, 2011 10:06 AM

  • 3G High CPU utilization when waking

    Recently gave my iPhone 3G to my wife, restored it to a new phone, then synced it with her information, music, applications, etc. She previously had used an iPod touch, and basically was trying to upgrade her to an iPhone.
    The phone worked fine when I had it. I only had a short time with this specific phone as it was replaced under Apple Care about a week and a half before turning it over.
    Now it pretty consistently is unresponsive when trying to wake it. By bringing up the System Activity Monitor App as soon as possible after powering it up, and leaving that app active when putting it to sleep I can see that the CPU gets slammed for a while during initial startup and has a significant period of very high CPU when waking. At this point I believe the cause of the unresponsive behavior is that the CPU is maxed out doing something.
    I've compared the running processes to an iPhone 3Gs and they were identical except the 3G was missing the MobileMusicPlaye until I brought up the iPod on that phone.
    There are 2 things about the initial setup of this phone for my wife that are causing me some concern;
    1) When first connected to iTunes after the Factory Reset I was prompted to restore an older backup than the iPod Touch one I took right before the swap. I didn't realize it at the time and accepted that restore.
    2) I was prompted to upgrade and followed through with an upgrade to 3.1.2 after the Factory Reset even though the phone was at 3.1.2 before the swap.
    At this point I'm thinking about doing another Factory reset and set it up by sync only (no restore) but not looking forward to the time investment that will take.
    Any ideas on where the high CPU utilization is coming from on wake? Is that a reasonable theory that the high CPU is causing it to be unresponsive when first woken up.
    Any other insight from others that have been through this?

    I ended up restoring the 3G phone to Factory settings and then sync'ing the desired information / applications onto it (did not restore the previous backup). The behavior is improved but this phone does seem to get bogged down when waking (observing high CPU utilization when monitoring with System Activity Monitor and experiencing sluggish / jerky response to user actions with no applications or just Mail running). The periods of non-responsiveness are not as long or as severe at this point, but still noticeable.
    I'm at a loss since under the conditions I'm observing this there is nothing but Apple software running on the device (behavior is present with or without SAM showing me the CPU utilization). I'm a little suspicious that it might have something to do with re-establishing the WiFi connection, but it seems to continue for a bit after the WiFi icon appears in the status bar.
    I'm probably going to make a genius appointment to see if they have any other ideas.

  • Airport Process utilizing high CPU utilization

    I currently have a 13 inch MacBook Pro i7 (2012 version).  Recently I upgraded to Mavericks.  After using the computer for a day after the upgrade, I began to notice it becoming very hot and the fans running very high.  Looking at the running processes i noticed that a process called "airport" was running and utilizing high CPU times causing the heating up and fans running.  Once I stopped this process, the laptop went back to operating at normal levels.
    Unfortunately this issue began to come back several times....the "airport" process starting at any time and utilizing high CPU utilization....again only by killing this process fixed this issue.
    After seeing this behavior over several days, I decised to wipe the drive and install a clean copy of Mavericks in the computer.  Thought here was that possibly something did not carry over correctly from the upgrade from Mountain Lion to Mavericks.  Unfortunely this did not correct the issue with the "airport" process as it still is continiung to launch at any time and spike the processor until I manually kill the process.
    I do not recall this issue occuring while running Mountain Lion so it seems to be specific to Mavericks at this point.
    I was hoping to hear if any other have experienced this type of issues while running Mavericks.

    You should be able to find the information you are looking for from the default Total CPU Utilization Percentage monitor.  This monitor has a built in diagnostic task that will kick off when an alert is triggered to list the top cpu consuming processes.
     To find which processes were causing CPU to spike, simply review the State Change Events history in health explorer for the machine that was affected, for the Total CPU Utilization Percentage monitor.  I have modified my second screen shot
    to remove machine names, but you should get the idea.  If a cpu monitor went from green to red, it will run the diagnostic task and list the process information and cpu usage at the time of the alert under state change events.

  • WAAS experiencing high CPU utilization

    We are monitoring WAAS devices for CPU utilization in our Network.Currently we have set the threshold for 70%. At this threshold we see a large number of alerts from WAAS crossing 70% CPU utilization. I guess 70% CPU utilization is normal for WAAS. Am I right???

    Hi Daniel,
    Yes, during the peak hours sometimes the CPU shoots even upto 95% and then in next 5 min comes down to normal below 70%.
    Since our threshold is 70%, we get a lot of inactionable(because it becomes normal in 5-10 miinutes only) alert.I was wondering if we could change the threshold.
    One of the Cisco Tac Engineer replied to the above question :
    That is true. It is normal to have a high CPU utilization in normal Operation as we mentioned earlier it runs on underlying Linux kernel and linux does not use Page file rather it uses Maximum RAM that it could .
    Regards,
    Mohit

  • SCCM 2012 Agent and high CPU utilization.

    We have numerous Windows workstations and servers running with very high CPU utilization. Services are slow to start and login can take an hour. The service running with high CPU is svchost.exe, we determined that it is Windows Management Instrumentation
    that is causing high CPU in svchost.exe.
    If we stop or uninstall the SCCM 2012 Agent, everything calms down on the computer.
    Any ideas as to way this would be?

    Same issue seen on a clients and KB2617858 resolves it. I am deploying using the App model no problem with x86 and x64 hotfixes with requisite OS requirements. Is there a way to configure to only apply to those that it applies to...if that makes sense. I
    ask because my B&C x64 W7Sp1 image does not require it (I have not included it) whereas other non-B&C do - what's the condition or applicability (or non-applicability) if not as listed on the KB..! If I run it one W7 machine it says it doesn't apply
    and isn't already, whereas another it installs..!
    http://support.microsoft.com/kb/2705357:
    To apply this hotfix, you must be running one of the following operating systems:
    Windows 7
    Windows 7 Service Pack 1 (SP1)
    Windows Server 2008 R2
    Windows Server 2008 R2 Service Pack 1 (SP1)
    ..obviously, if a client has the issue it applies :)
    Donald Rumsfeld's 'known unknowns' comes to mind here. Sorry.

Maybe you are looking for

  • Support Packs in Solution manager

    Hi, I have a query, when I am going to select patches through maintenance optimizer for solution manager I can see the source and target stack level at SMP and when I am putting the source stack(17) and the target stack as latest, solution manager 7.

  • New Browser Window from Hyperlinks on PDF created in In Design

    I am creating PDF documents using In Design CS3.  The PDFs have hyperlinks to other PDFs as well as hyperlinks to webpages. The finalized PDF is being accessed through our website as a link on the webpage. The PDF is opening in a new browser window/t

  • Firefox 34.0.5: Live bookmarks (RSS feeds) won't stay open! :(

    Firefox 34.0.5: Live bookmarks (RSS feeds) won't stay open! If I close Firefox and reopen it, all my live bookmark folders are closed and I have to manually reopen them (such as BBC World News, etc.). Please restore the old functionality: If I have i

  • Payment Card Status (PaCa) status Not Approved for authorized card in VKM3

    Hi, We are noticing that SAP is displaying payment card status as 'B' (Not Approved) in VKM3 even though the order has been successfully authorized with the credit card. Does anyone has any idea why and when SAP does that? Any help would be highly ap

  • I cannot get access to Yahoo mail since this morning 2/22/2013, what can I do?

    I was using yahoo through Mozilla, after I posted an opinion within the block regarding a person who lives without money it was impossible to open any of my yahoo accounts. I reboot the computer, check the firewall, uninstalled Mozilla and installed