Wait Type PAGEIOLATCH_SH and PAGEIOLATCH_EX

Hello, 
I am looking at the performance issue on one of the SQL Server which is for Zenworks. 
There are 4 application server which reads and writes to the Zen SQL Server. 
It's been there for a while now and quite a lot of times I see the status as suspended and the Wait Type is PAGEIOLATCH_SH and PAGEIOLATCH_EX which disappears and comes back again and again. 
Could somebody please advise how to troubleshoot this?
Best regards, 
Mohan

Hello,
Could you please share the result of the following query with us?
SELECT
TOP 50 *
FROM
[sys].[dm_os_wait_stats]
ORDER
BY [wait_time_ms]
DESC
Thank you in advance.
Regards,
Alberto Morillo
SQLCoffee.com
Thanks Alberto, 
The result is below. 
wait_type waiting_tasks_count
wait_time_ms max_wait_time_ms
signal_wait_time_ms
REQUEST_FOR_DEADLOCK_SEARCH 32350
161783933 5462
161783933
XE_TIMER_EVENT 5394
161766099 30301
161765240
LAZYWRITER_SLEEP 168848
161737044 3023
71938
SQLTRACE_INCREMENTAL_FLUSH_SLEEP 40395
161627956 4590
89
LOGMGR_QUEUE 1982118
161505817 645651
258372
XE_DISPATCHER_WAIT 17
156846134 50730025
0
CHECKPOINT_QUEUE 18208
150758459 2037452
3257
PAGEIOLATCH_SH 12811676
138069019 3369
244808
BROKER_EVENTHANDLER 14
112016323 84467042
11
SLEEP_TASK 10361836
81580069 2809
676539
BROKER_TO_FLUSH 78813
80887188 1980
26694
PAGEIOLATCH_EX 2774508
28392234 3545
73181
SOS_SCHEDULER_YIELD 2446505
8560372 1536
8532156
WRITELOG 1895345
5805484 20821
66796
SLEEP_BPOOL_FLUSH 1452978
4558026 753
204212
LCK_M_IX 67
3806433 311970
519
BROKER_TASK_STOP 746
3747976 10008
100
CXPACKET 331690
1348196 17612
179146
BACKUPBUFFER 230089
1273926 2048
12506
ASYNC_IO_COMPLETION 5
1243210 628743
0
BROKER_RECEIVE_WAITFOR 4
1199953 598704
0
BACKUPIO 105914
1174546 2127
594
LCK_M_U 184
1069219 238125
151
PAGEIOLATCH_UP 16079
665743 1457
3672
LCK_M_X 47
585665 72697
20
PREEMPTIVE_OS_AUTHENTICATIONOPS 61568
345872 3007
0
ASYNC_NETWORK_IO 94086
106911 1694
26395
MSQL_XP 9808
101965 2272
0
PREEMPTIVE_OS_GETPROCADDRESS 9808
101553 2272
0
PAGELATCH_EX 249003
82555 2041
58631
LCK_M_S 4
75172 70016
1
LOGBUFFER 1615
73754 1134
564
PREEMPTIVE_OS_WAITFORSINGLEOBJECT 26593
56219 545
0
PREEMPTIVE_OS_WRITEFILEGATHER 30
40052 5399
0
PREEMPTIVE_OS_LOOKUPACCOUNTSID 17496
25534 280
0
OLEDB 18501515
23474 249
0
PREEMPTIVE_OS_DELETESECURITYCONTEXT 17661
22908 507
0
PAGELATCH_SH 53643
19873 344
12476
THREADPOOL 2904
19451 288
0
LATCH_EX 10260
17581 521
1750
IO_COMPLETION 1865
16677 407
168
PAGELATCH_UP 855
14606 1335
384
PREEMPTIVE_OS_AUTHORIZATIONOPS 18055
13845 216
0
PREEMPTIVE_OS_REVERTTOSELF 14248
9884 170
0
SQLTRACE_FILE_BUFFER 139
7130 380
83
SLEEP_DBSTARTUP 61
7007 334
371
SQLTRACE_FILE_WRITE_IO_COMPLETION 729
6963 324
6
PREEMPTIVE_OS_QUERYREGISTRY 2691
5844 503
0
PREEMPTIVE_OS_CRYPTACQUIRECONTEXT 3696
5093 200
0
PREEMPTIVE_OS_NETVALIDATEPASSWORDPOLICY 3559
3948 87
0
Sorry, not in a great friendly format. 
Many thanks, 
Mohan

Similar Messages

  • How to resolve RESOURCE_SEMAPHORE and RESOURCE_SEMAPHORE_QUERY_COMPILE wait types

    We are trying to figure out root cause of slow running sql server queries hitting/fetching data from one of the database , size 300 GB, hosted on server with below configuration:
    Windows server 2003 R2, SP2, Enterprise Edition, 16 GB RAM , 12 CPU'S 32 Bit
    SQL server 2005, SP4, Enterprise Edition, 32 Bit.
    We have already informed business on the upgrade to 64 bit which would take over a month.
    But for the current issue, we are trying to gather the data if we can resolve the memory pressure or finally come to a conclusion to increase RAM.
    Action Completed: Re-indexing and update stats are proper for this DB.
    As shown below, we have been noticing the semaphore waittype for past 5 days, ran during the load hours:
    Few info after below queries: size of buffer= 137272
    SELECT SUM(virtual_memory_committed_kb)
    FROM sys.dm_os_memory_clerks
    WHERE type='MEMORYCLERK_SQLBUFFERPOOL'
    and semaphore memory= 644024 per below query
    SELECT SUM(total_memory_kb)
    FROM sys.dm_exec_query_resource_semaphores
    Below is some more info gathered from dm_exec_query_resource_semaphores and sys.dm_exec_query_memory_grants dmv's
    So from above info gathered and per SP_Blitz data Resource semaphore seems to be the problem.
    Is memory 'target_memory_kb' assigned for resource semaphore id's too low, as compared to 16 GB RAM available.
    Note* per analysis on 8 hours run 'target_memory_kb' is always under 1 GB, compared to 16 GB available?
    what could be the issue here and how to resolve, please suggest
    Thanks

    I've performed index tuning for those queries, like missing index , rebuilds and stats update.
    So is it going to be more worst, after that change of MAXDOP ?
    Index and query tuning goes hand-in-hand.  Proper indexes with updated stats alone won't improve performance if queries contain non-sargable expressions or are coded in a suboptimal way.  You need to examine the problem queries and execution
    plans in detail to see if performance opportunities exist.  Be aware that SQL Server may throw parallelism to address an issue like a non-sargable query predicate.  The query may run faster as a result but at the cost of more CPU utilization
    for the duration of the query that may impact other users.  I suggest changing MAXDOP after query tuning.  You may need to experiment for the most optimal value for your workload.
    However, concern would be this one query, which as per developer is just a part of filter in ssrs reports, i.e. small query for the larger query has multiple sessions open for almost a day now.
    By smaller query, are you referring to the number of rows returned?  Perhaps the reason is the number of rows actually touched.  Post the query, DDL and execution plan.
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • How do I use icloud to restore my documents that were in Pages? Pages got stuck in "waiting" to update and when nothing else worked I deleted it and reloaded Pages. I don't want to restore everything just my Pages documents.

    How do I use icloud to restore my documents that were in Pages? Pages got stuck in "waiting" to update and when nothing else worked I deleted it and reloaded Pages. Everything I can find is about wiping everything out and restoring everything. I don't want to restore everything just my Pages documents (and numbers and keynote that also locked up during updating).

    What I meant is turn off Documents and Data in iCloud in OS X. Keep it on on your iOS devices. iCloud will sync documents between the iOS devices and make them available on the iCloud web site, but it won't mess up iWorks' open and save dialog boxes. It also won't assume that you want all your documents in iCloud, which I think is undesirable anyway.
    Keep iOS and OS X separate, and use the web site to move files between the two as necessary.
    iOS iWork is different from OS X iWork. There are fewer fonts on an iOS device. iOS iWork programs have slightly different feature sets than OS X iWork programs, and the file formats are different. iCloud automatically converts the file format when necessary, but if you make a habit of saving things directly to iCloud, you are limited to the lowest common denominator between the two versions of iWorks. So why would anyone want iWork on the Mac to open and save documents on iCloud by default?
    If you want to store files in the cloud and sync them on your Macs, SugarSync is a much better solution. It lets you choose your sync folders, it doesn't make you reorganize your files, it lets you sync all file types, it doesn't convert files to a different format and back, and it stores everything in the cloud, too. Just the simle act of saving a file backs it up and syncs it. I wouldn't live without it. iCloud is best with iTunes purchases and synchronizing Mac settings and iOS files; I woudln't live without it. The two make an unbeatable combination.

  • Regarding Movement type 601 and 602

    Hi,
    We need to copy movement types 601 and 602. I would request to please provide me the configuration settings and all integration settings.
    Thank You,
    Waiting for your reply.
    Regards,
    Usha.

    Execute OMJJ where you have the option to copy the standard movement types.  Also search the forum before posting such answered question.
    thanks
    G. Lakshmipathi

  • Resource_semaphore wait type not matching sys.dm_exec_query_memory_grants

    We are using Red Gate's SQL Monitor to alert (every 5 minutes) when memory grants pending are greater than zero. Several times a day we are alerted on our Devel and Prod servers.
    However, when querying the resource_semaphore wait type using sys.dm_os_wait_stats, it used to register non-zero amounts several months ago, but now is always equal to zero.
    The Devel server is version 11.0.3128 standard on Windows 2008 R2 Standard 64-bit, and the Prod server is version 10.0.5500 on Windows 2008 Standard 64-bit.
    We are storing wait stats for each server in a database, collected every half hour. The Prod resource semaphore was 569 early August 11, then after a reboot at 3:30 AM was equal to zero and is the same today. I have confirmed the current value using the following
    query.
    SELECT * FROM sys.dm_os_wait_stats
    WHERE wait_type = 'RESOURCE_SEMAPHORE';
    Similarly, the Devel resource semaphore was 167 early October 23, then after a reboot at 7:03 AM was equal to zero and has not changed from zero since then. Again, I confirmed the current value using the above query.
    The custom alert code for Red Gate SQL Monitor is:
    SELECT COUNT(*) FROM sys.dm_exec_query_memory_grants;
    Also, running a perfmon counter against SQL Server: Memory Manager: Memory Grants Pending for
    several days yields a flat line equal to zero, with maximum value zero.
    Looks to me like something in SQL Server's internal stats collection system has broken. Or possibly, I am misunderstanding that these three counters measure the same thing.
    Thanks for your help.

    We are using Red Gate's SQL Monitor to alert (every 5 minutes) when memory grants pending are greater than zero. Several times a day we are alerted on our Devel and
    Prod servers. However, when querying the resource_semaphore wait type using sys.dm_os_wait_stats, it used to register non-zero amounts several months ago, but now is always equal to zero.
    The Devel server is version 11.0.3128 standard on Windows 2008 R2 Standard 64-bit, and the Prod server is version 10.0.5500 on Windows 2008 Standard 64-bit.
    We are storing wait stats for each server in a database, collected every half hour. The Prod resource semaphore was 569 early August 11, then after a reboot at 3:30 AM was equal to zero and is the same today. I have confirmed the current value using
    the following query.
    SELECT * FROM sys.dm_os_wait_stats
    WHERE wait_type = 'RESOURCE_SEMAPHORE';
    Similarly, the Devel resource semaphore was 167 early October 23, then after a reboot at 7:03 AM was equal to zero and has not changed from zero since then. Again, I confirmed the current value using the above query.
    The custom alert code for Red Gate SQL Monitor is:
    SELECT COUNT(*) FROM sys.dm_exec_query_memory_grants;
    Also, running a perfmon counter against SQL Server: Memory Manager: Memory Grants Pending for
    several days yields a flat line equal to zero, with maximum value zero.
    Looks to me like something in SQL Server's internal stats collection system has broken. Or possibly, I am misunderstanding that these three counters measure the same thing.
    Thanks for your help.
    Hello,
    SQL server internal stats collection is fine it is not broken what you are doing is after restart SQL server cache is cleared and this is area from where you get all your DMV result so before restart you are seeing some value for resource semaphore wait
    and after restart it is gone.
    For query memory grants pending value as non zero it clearly points to fact that there is memory crunch and you need to increase more RAM.
    resource semaphore waits point to fact that your query which is running is costly one and is involving lots of sort and hash you need to tune it.Read below article for resource semaphore wait
    http://blogs.msdn.com/b/sqlqueryprocessing/archive/2010/02/16/understanding-sql-server-memory-grant.aspx
    If you want to find out cumulative waits stats i suggest you to use below query by Jonathan Kehayias.
    Can you post output for this query
    SELECT TOP 10
    wait_type ,
    max_wait_time_ms wait_time_ms ,
    signal_wait_time_ms ,
    wait_time_ms - signal_wait_time_ms AS resource_wait_time_ms ,
    100.0 * wait_time_ms / SUM(wait_time_ms) OVER ( )
    AS percent_total_waits ,
    100.0 * signal_wait_time_ms / SUM(signal_wait_time_ms) OVER ( )
    AS percent_total_signal_waits ,
    100.0 * ( wait_time_ms - signal_wait_time_ms )
    / SUM(wait_time_ms) OVER ( ) AS percent_total_resource_waits
    FROM sys.dm_os_wait_stats
    WHERE wait_time_ms > 0 -- remove zero wait_time
    AND wait_type NOT IN -- filter out additional irrelevant waits
    ( 'SLEEP_TASK', 'BROKER_TASK_STOP', 'BROKER_TO_FLUSH',
    'SQLTRACE_BUFFER_FLUSH','CLR_AUTO_EVENT', 'CLR_MANUAL_EVENT',
    'LAZYWRITER_SLEEP', 'SLEEP_SYSTEMTASK', 'SLEEP_BPOOL_FLUSH',
    'BROKER_EVENTHANDLER', 'XE_DISPATCHER_WAIT', 'FT_IFTSHC_MUTEX',
    'CHECKPOINT_QUEUE', 'FT_IFTS_SCHEDULER_IDLE_WAIT',
    'BROKER_TRANSMITTER', 'FT_IFTSHC_MUTEX', 'KSOURCE_WAKEUP',
    'LOGMGR_QUEUE', 'ONDEMAND_TASK_QUEUE',
    'REQUEST_FOR_DEADLOCK_SEARCH', 'XE_TIMER_EVENT', 'BAD_PAGE_PROCESS',
    'DBMIRROR_EVENTS_QUEUE', 'BROKER_RECEIVE_WAITFOR',
    'PREEMPTIVE_OS_GETPROCADDRESS', 'PREEMPTIVE_OS_AUTHENTICATIONOPS',
    'WAITFOR', 'DISPATCHER_QUEUE_SEMAPHORE', 'XE_DISPATCHER_JOIN',
    'RESOURCE_QUEUE' )
    ORDER BY wait_time_ms DESC
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Input type (.plsql) and how to get rid of it.

    So, i have two sqldeveloper instances - an older multiplatform one and the second 1.1.2 from rpm. Now it says:
    "Addin: Translator PlSql is trying to register a input type (.plsql) which conflicts with translator PlSql who already using this input type"
    Just where is this "input type" stored and how can i drop the link to the older one to make the spot available for the newer version?
    TIA

    Thanks for replying. Good tip on getting the stack trace...
    Permissions on the sqldeveloper directory are rwx - rx - rx.
    Here is the dump. I am fairly new to Linux, so does this mean that sqldeveloper could not connect to some external host? I have been able to run apt-get and such in the past.
    Thanks again.
    Addin: Translator PlSql is trying to register a input type (.plsql) which conflicts with translator PlSql who already using this input type
    Full thread dump Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode, sharing):
    "Automatic check for updates" prio=1 tid=0x085d38c0 nid=0x3209 runnable [0xadcfe000..0xadcff0b0]
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    - locked <0x6f95f9a8> (a java.net.PlainSocketImpl)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.Socket.connect(Socket.java:519)
    at java.net.Socket.connect(Socket.java:469)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:382)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:509)
    - locked <0x6f95fa48> (a sun.net.www.http.HttpClient)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
    at sun.net.www.http.HttpClient.New(HttpClient.java:304)
    at sun.net.www.http.HttpClient.New(HttpClient.java:316)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:817)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:769)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:694)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:938)
    - locked <0x6f95faf8> (a sun.net.www.protocol.http.HttpURLConnection)
    at oracle.ideimpl.webupdate.CheckMasterListRunnable.run(CheckMasterListRunnable.java:147)
    at oracle.ideimpl.webupdate.AutomaticCheckForUpdates.checkMasterList(AutomaticCheckForUpdates.java:133)
    at oracle.ideimpl.webupdate.AutomaticCheckForUpdates.mav$checkMasterList(AutomaticCheckForUpdates.java:41)
    at oracle.ideimpl.webupdate.AutomaticCheckForUpdates$1.run(AutomaticCheckForUpdates.java:87)
    at java.lang.Thread.run(Thread.java:595)
    "DestroyJavaVM" prio=1 tid=0xadd98d38 nid=0x31eb waiting on condition [0x00000000..0xbfcb3b90]
    "Timer-0" prio=1 tid=0xadd6b3d8 nid=0x31fe in Object.wait() [0xade9d000..0xade9df30]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x6f5e9378> (a java.util.TaskQueue)
    at java.util.TimerThread.mainLoop(Timer.java:509)
    - locked <0x6f5e9378> (a java.util.TaskQueue)
    at java.util.TimerThread.run(Timer.java:462)
    "Log Page Updater" prio=1 tid=0xadd5aec8 nid=0x31fb waiting on condition [0xaf602000..0xaf602eb0]
    at java.lang.Thread.sleep(Native Method)
    at oracle.dbtools.migration.workbench.core.ui.MigrationTreeTableLogPage$5.run(MigrationTreeTableLogPage.java:622)
    "TimerQueue" daemon prio=1 tid=0xb12a6b38 nid=0x31f8 in Object.wait() [0xb0299000..0xb0299db0]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x6f2629c8> (a javax.swing.TimerQueue)
    at javax.swing.TimerQueue.run(TimerQueue.java:236)
    - locked <0x6f2629c8> (a javax.swing.TimerQueue)
    at java.lang.Thread.run(Thread.java:595)
    "AWT-EventQueue-0" prio=1 tid=0x084442c0 nid=0x31f7 in Object.wait() [0xb037f000..0xb0380130]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x6f21e5d8> (a java.awt.EventQueue)
    at java.lang.Object.wait(Object.java:474)
    at java.awt.EventQueue.getNextEvent(EventQueue.java:345)
    - locked <0x6f21e5d8> (a java.awt.EventQueue)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:189)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    "AWT-Shutdown" prio=1 tid=0x08443328 nid=0x31f6 in Object.wait() [0xb0400000..0xb04010b0]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x6f243420> (a java.lang.Object)
    at java.lang.Object.wait(Object.java:474)
    at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:259)
    - locked <0x6f243420> (a java.lang.Object)
    at java.lang.Thread.run(Thread.java:595)
    "AWT-XAWT" daemon prio=1 tid=0x08438018 nid=0x31f4 runnable [0xb0502000..0xb0502fb0]
    at sun.awt.X11.XToolkit.waitForEvents(Native Method)
    at sun.awt.X11.XToolkit.run(XToolkit.java:463)
    at sun.awt.X11.XToolkit.run(XToolkit.java:438)
    at java.lang.Thread.run(Thread.java:595)
    "Java2D Disposer" daemon prio=1 tid=0x0842b038 nid=0x31f3 in Object.wait() [0xb0599000..0xb0599f30]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x6f223468> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
    - locked <0x6f223468> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
    at sun.java2d.Disposer.run(Disposer.java:125)
    at java.lang.Thread.run(Thread.java:595)
    "Low Memory Detector" daemon prio=1 tid=0x080a8110 nid=0x31f1 runnable [0x00000000..0x00000000]
    "CompilerThread0" daemon prio=1 tid=0x080a6c00 nid=0x31f0 waiting on condition [0x00000000..0xb20bc798]
    "Signal Dispatcher" daemon prio=1 tid=0x080a5b48 nid=0x31ef runnable [0x00000000..0x00000000]
    "Finalizer" daemon prio=1 tid=0x0809f348 nid=0x31ee in Object.wait() [0xb2200000..0xb22010b0]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x6f1859f0> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
    - locked <0x6f1859f0> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
    at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
    "Reference Handler" daemon prio=1 tid=0x0809d4d0 nid=0x31ed in Object.wait() [0xb2281000..0xb2282030]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x6f185a70> (a java.lang.ref.Reference$Lock)
    at java.lang.Object.wait(Object.java:474)
    at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
    - locked <0x6f185a70> (a java.lang.ref.Reference$Lock)
    "VM Thread" prio=1 tid=0x0809a8e0 nid=0x31ec runnable
    "VM Periodic Task Thread" prio=1 tid=0x080a96d8 nid=0x31f2 waiting on condition

  • Condition types PB00 and PBXX

    Dear Experts,
    1) Can anybody please explain that can we use Condition type PB00 in number of Pricing  procedures. like i have three pricing procedures, local purchase, Import Purchase,
    External Service Pricing procedure.
    what is recommend, eiether to use same one (PB00) or maintain seperate condition type for each Pricing procedure ?
    2) What is the difference between Condition type PB00 and PBXX ?
    Waiting for your valuable reply
    Thanks in Advance

    Dear,
    The difference between pricing conditions PB00 and PBXX is :
    PB00- automatic pricing - can be used for automatic pricing determination
    PBXX- manual pricing - used for manual pricing.
    When you maintain the pricing condition for the PO, the system will look at the available condition records (for PB00) and make the automatic pricing determination. In case, such condition records were not defined, then it is mandatory that you have to maintain manually the pricing condition where PBXX will be automatically defaulted in replacement for PB00.
    Regards,
    Syed Hussain.

  • Wait type CXPACKET - BPC 5.1 on MSS 2005 SP3

    We are experiencing large variations in run times of logic packages in a BPC 5.1 system.  A package may run in 15 minutes at one time and then the next run may take 5 hours.  When the run time is significantly longer we see a process in the MSS Activity Monitor that is running in parallel (multiple rows with the same SPID) and all but one are suspended.  Each of the suspended threads shows CXPACKET in the "Wait type" column.  The command column has the value INSERT.
    The other observation is that the system appears to spawn more threads for the same SPID after a period of time.  For example, I have often found there are 20 threads and the wait time will be the same for groups of four threads -- each group of four has a different wait time than the others in the list.
    My research indicates that this means the process is running in parallel and the threads are waiting for the completion (or start) of parallel statements.  The only suggestion I have found so far is to change "Max Degree of Parallelism" from 0 (zero) to 1 on the server to prevent parallel query execution, or to set a hint to set MAXDOP to 1. 
    Is the logic package creating inefficient query plans that cause MSS to generate inefficient query plans that go into parallel?  Is there any way to prevent this from happening?
    Thanks,
    David

    CXPACKET wait is due to parallelism, and as you have researched you can avoid it by setting MAXDOP to 1.
    Yes, improper query plans may be cause for long time executions, you may want to check the statistics are updated,any missing indexes,lots of fragmentation.
    you may want to look into this nice article, about how to tune your query  against CXPACKET waits.
    [http://www.mssqltips.com/tip.asp?tip=2027]
    Thanks
    Mush

  • My messages on OS mountain lion are apperaring all blank and its not allowing me to send any Imessages, it will let me type it and as soon as i hit enter it disappears somewhere. I have updated my software and this hasn't helped! Thanks

    My messages on OS mountain lion are apperaring all blank and its not allowing me to send any Imessages, it will let me type it and as soon as i hit enter it disappears somewhere. I have updated my software and this hasn't helped! Thanks

    what a long post....Apple, btw, does not read this stuff, so ranting, raving, and complaining here might make you feel good, but it does no good at all. That being said, I, too have a Mac Pro Quad Core Xeon with 6 gigs of ram and an nVidia 8800 GT graphics card (not as good as yours, alas) and I've had no problems at all with it. Yes, it doesn't have Thunderbolt, but maybe we Mac pro owners will get lucky and someone will come out with an adapter (probably not). No, you probably don't have to throw away your Mac Pro, but if you do, I'll take it, for a small "recycling" fee >:-) That was a joke.  Yes, the Mac Pro's future isn't quite clear, YET. Hopefully that will improve very soon. As for not being able to upgrade to Mountain Lion. Don't worry about that too much, Nobody is forcing you to do that.  Your Mac Pro won't quit working if it isn't installed. From what  I've heard, you should give the new OS a chance, and wait to get it, in case there might be some bugs, or stuff not working with the new OS, which has been known to happen. Yes, we Mac Pro owners don't like being treated like mushrooms-kept in the dark, and being fed......... but Apple is Apple and it will do what it does, and there is nothing you or me can really do to change that. All I can say is....trust, have faith, be patient, go for a walk, do something else to take your mind off of this problem. IF apple decides to drop the Mac Pro for good, and that's a big "IF", I think they will anger a whole bunch of people
    which isn't good. However, that hasn't happened...YET. Let us hope that it doesn't
    John B

  • Custom action with XML type input and output parameter.

    Hi,
    I want to develop custom action with xml type input and/or output parameter.
    Is there sample code for java side. How is the definition of input and/or output parameter and set/get methods?
    does it need special .jar file to develop custom action like this?
    Thanks.

    Cemil - yes, you can use XML data types.  Use the class
    com.sap.lhcommon.xml.XMLDataType
    for your parameter type.  Here is a snippet from a custom action we use to log XML (instead of just returning the #text node like the default logger does):
    public class XMLLogger extends ActionReflectionBase
        private String source;
        private String eventType;
        private String textMessage;
        private XMLDataType xmlMessage;
        public XMLLogger()
            log = new Logger("UserLog");
            source = DEFAULT_SOURCE;
            eventType = TYPE_INFO;
            textMessage = "";
            xmlMessage = new XMLDataType();
        public XMLDataType getXmlMessage()
            return xmlMessage;
        public void setXmlMessage(XMLDataType xmlMessage)
            this.xmlMessage = xmlMessage;
        public void Invoke(Transaction transaction, ILog ilog)
            StringBuffer sb = new StringBuffer();
            sb.append('[');
            sb.append(source);
            sb.append("] ");
            sb.append(textMessage);
            sb.append(XMLUtils.convertXmlToString(xmlMessage));
    XMLUtils is a helper class we wrote - it's just a bunch of standard Java XML boilerplate code.  The important part you need to know is XMLDataType.getDocument() will return an org.w3c.dom.Document.
    I hope that was enough information to help.
    -tim

  • WHY WONT MAC LION DOWNLOAD...IT SAYS I HAVE TO WAIT 334 HOURS AND 53 MINUTES..AND IT DOSENT CHANGE..., WHY WONT MAC LION DOWNLOAD...IT SAYS I HAVE TO WAIT 334 HOURS AND 53 MINUTES..AND IT DOSENT CHANGE...

    Sooo basically i bought this imac on craiglist it was a 2009 and well the owner of it...didnt give me the passwords of the accounts, so i asked her by txt if she knew them and well i got no answe..go figure right? anyways i had to look up online how to factory reset it and well i found a very helpful video on youtube, and well it worked all the way up to the reinstall mac os lion which i had not purchased prev..so i called apple and they helped me buy and today i got the code and redeemed it and well i was really excited because that was the last step...until i turned on my imac..hit reinstall mac os lion, signed it, and worked and then!!! It said i would have to wait 335 hours and 53 minutes which i was like OMG how big is this file...i looked it up and well its not THAT big and well even though i left it for awhile...it didnt change...it was not downloading anything, ugh im so fustrated i dont know what to do anymore =(

    OK.
    How is your computer connected to the internet? Wireless? Wired?
    What kind of internet service do you have where you are (cable/DSL/dialup)? If you're not sure, run a speedtest from another computer (preferably wired to your router). I use http://speedtest.net. Don't click any of the ads that claim to "Speed up your Mac". Write down and post the download and upload speeds.
    Do you have an Apple Store near you? If so, you could go there to download the OS. Or find a location (an office? school?) that has faster internet.
    Matt

  • TS4268 hi my imessage isnt working so I turned off imessage and now its been saying "waiting for activation" and has been for a long while now? can you please help me!!! Also saying that my apple ID password is inccorrect when its not!

    Hi,
    My imessage isnt working so I turned off imessage and now its been saying "waiting for activation" and has been for a long while now? Also saying that my apple ID password is inccorrect when its not! Can anyone help me?
    Thanks

    While we all have MacBooks in this forum most of us don’t have Lion. There's a Lion Support Community where everybody has Lion.You should also post this question there.  https://discussions.apple.com/community/mac_os/mac_os_x_v10.7_lion

  • Account type M and G/L account with open item management not permitted

    Hi,
    I am getting the following error while applying VL02N (PGI) is "Account type M and G/L account with open item management not permitted".  Before I got an error like posting period and I have closed those posting periods 2008/08 and 2008/07.   Now I am getting this error. 
    Please provide the solutions to overcome this and I want to execute the full transaction.
    Thanks in ADVANCE.
    Kishore

    Hi Kishore,
    Please check these threads
    Account type M and G/L account with open item management not permitted
    Re: Account type M& GL with open item managment not permitted error
    Posting to G/L accounts with open item management are not permitted
    Hope this would help you.
    Good luck
    Narin

  • Mvt type 103 and 105

    Dear all,
    I am doing GRN through 103 mvt type of 100 Qty. But at the time of 105 Mvt type qty found 90 that means 10 Qty still pending in block stock. How to process with 10 Qty in block stock which is due to vendor mistake. Please suggest exact procedure and accounting effect on the same.
    Regards
    Atul

    While posting the document against the movement type 103, no FI documents get generated becasue there is no valuation for the materials at the blocked storage Location. The FI document is generated with the movement type 101 and 105.
    In this case, you can cancel the material document number created by the movement type 103 by 104. Then again you will have to do the GRN in 103. The quantities in the material document number created by 103 movement type can't be modified.
    Secondly, if you have the final GRN against the 103 document, then you will have to return the stock by movement type 122.
    Still any queries, revert back.

  • Clock type symbol and pending on report not printing how do I remove

    HP Photo smart 6510 network printer print from Lumina Windows phone working fine for over week
    suddenly not printing. Checked status at e center and items are pending with a clock like symbol next to them,
    How can I remove this symbol and could this be stopping my printing.  Previous items do not have symbol and have printed, Thanks

    What is the subject for the pending job?
    The clock icon makes me think that this is a scheduled delivery app trying to print and it is stuck in pending.
    The best solution for this is to cancel the pending jobs and the them perform a network reboot. 
    1. Disconnect the power cord from the back of your router, then power off the printer. Wait about 20 seconds.
    2. Reconnect the power cord to your router, wait 30 seconds, and turn the printer back on.
    After performing those steps, try to use your ePrint again and let me know if it works.
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

Maybe you are looking for

  • Account Group wise vendor aging report

    Dear Gurus, How can I see vedor account group wise ageing report in a company code?i.e Trade Vendors, Non Trade Vndors wise aging report Thanks in adv. N.M.B

  • Approval Preview (Only first approver is displayed after 1 approval step)

    Hello Everyone! We have a scenario in PROD wherein the approval preview doesn't show all approvers in the screen. At first, when the Contract document is prepared (not yet approved/created) and then the approval preview is displayed, the screen corre

  • AirPlay iMac Yosemite Upgrade

    I upgraded my iMac (late 2009) in order to use AirPlay & view iMovie Projects through AppleTV. Once upgrade complete, still no AirPlay icon. Is there any way to use AirPlay from an older iMac?

  • ActiveX controllers

    We have developed application in Flash CS5.5 using as3. however we require local data storage. So to the solve the issue i wanted to play the SWF file through Director 11.5. I have read Director does not support as3 but you may be able to play the sw

  • Why is CompactDAQ not listed as a PAC?

    I'm trying to decide which NI PAC platform to use.  While investigating, I learned about CompactDAQ which seems like it should be on the list for PACs on the NI web.  Why not?