Hi experts,
After migration from CRM2011, On my On-premise CRM2015 (SQL 2014 Standard) production environment, i'm facing the "SQL Timeout error"
On AppServer Event Viewer, a log like this are showing:
Log Name: Application
Source: MSCRMPlatform
Event ID: 17972
Task Category: None
Level: Warning
Keywords: Classic
User: N/A
Computer: crm
Description:
Query execution time of 16.7 seconds exceeded the threshold of 10 seconds. Thread: 14; Database: crm_MSCRM; Query: select .... from [ActivityPointerBase]
....
The timeout error only occurs when the users want to perform an action with manipulate the table ActivityPointerBase
With the Trace Logged enabled i have this:
Query execution time: 30.0 seconds; database: <OrgName_MSCRM>; Server:<ServerName\SQLInstance>; command:
SET DEADLOCK_PRIORITY LOW
BEGIN TRANSACTION
UPDATE ActivityPointerBase
SET
DeliveryAttempts = COALESCE(DeliveryAttempts, 0) + 1,
DeliveryLastAttemptedOn = '09/23/2016 18:42:39',
PostponeActivityProcessingUntil = '09/23/2016 19:12:39'
OUTPUT
INSERTED.ActivityId,
INSERTED.ActivityTypeCode,
INSERTED.Subject,
INSERTED.Description,
INSERTED.PriorityCode,
INSERTED.EmailAttachmentCount,
INSERTED.SenderMailboxId,
INSERTED.DeliveryAttempts,
INSERTED.ConversationIndex,
INSERTED.MessageId,
INSERTED.InReplyTo
WHERE
ActivityId
IN
(SELECT
TOP(1000) ActivityPointerBase.ActivityId
FROM
ActivityPointerBase WITH (READPAST, READCOMMITTEDLOCK, UPDLOCK)
LEFT OUTER JOIN
MailboxBase WITH (NOLOCK) ON (ActivityPointerBase.SenderMailboxId = MailboxBase.MailboxId)
WHERE
(
(
MailboxBase.EnabledForOutgoingEmail = 1 AND
MailboxBase.PostponeSendingUntil <= '09/23/2016 18:42:39' AND
1 = 0
)
) AND
ActivityPointerBase.ActivityTypeCode = 4202 AND
ActivityPointerBase.StateCode = 1 AND
ActivityPointerBase.PostponeActivityProcessingUntil IS NOT NULL AND
ActivityPointerBase.PostponeActivityProcessingUntil <= '09/23/2016 18:42:39'
ORDER BY
ActivityPointerBase.DeliveryPriorityCode DESC,
ActivityPointerBase.ActualEnd ASC
)
COMMIT; CommandTimeout: 30.
I have already checked the database server and app server RAM memory, Hard disk space and CPU health, and them are Ok!
The users doesn't have any problem to navigate on the organization, and to perform create/update/delete records of another entities that aren't related with ActivityPointerBase.
I think, if i Increase the timeout with the registry keys OLEDBTimeout and ExtendedTimeout, this problem will remain, because the timeout error occurs several times at the day, just a few users managed to complete the operation at one moment, but and another still has errors..
Maybe this low performance can be related with the Full-Text-Search functionality of CRM2015, but i doesn't have sure.
I have a homolog organization and this error not occurs on them.
Anyone have any idea what might cause this?