Scom console slowness and sdk is not repsonding due to blocked session

SANTOSH KUMAR 1 Reputation point
2020-11-11T17:05:50.9+00:00

I have some issue with scom console slowness and opsdb sdk. I can guess this one is due to blocked session and the query which is blocking is

CREATE PROCEDURE [dbo].[p_EntityTransactionLogBegin]

(

@DiscoverySourceId uniqueidentifier,

@ContextGenerated nvarchar(255) = NULL,

@TransactionId bigint = NULL OUTPUT

)

AS

BEGIN

SET NOCOUNT ON;

DECLARE @Err int;

DECLARE @LastModified datetime;


UPDATE [dbo].[DiscoverySource]

SET [TimeGeneratedOfLastSnapshot] = [TimeGeneratedOfLastSnapshot]

WHERE [DiscoverySourceId] = '85AB926D-6E0F-4B36-A951-77CCD4399681'

SELECT @Err = @@ERROR;

IF (@Err <> 0) 

   GOTO Error_Exit;



SET @LastModified = GETUTCDATE();

INSERT INTO dbo.[EntityTransactionLog]

(

    [DiscoverySourceId],

    [ContextGenerated],

    [LastModified],

    [TimeAdded],

    [IsCommitted]

)

VALUES

(

    @DiscoverySourceId,

    @ContextGenerated,

    @LastModified,

    @LastModified,

    0

);

SELECT @Err = @@ERROR;

SELECT @TransactionId = @@IDENTITY;

IF (@Err <> 0)

    GOTO Error_Exit;

IF OBJECT_ID('tempdb..#EntityTransaction') IS NOT NULL

BEGIN

    INSERT #EntityTransaction

    (TransactionId)

    VALUES

    (@TransactionId);

END

RETURN 0;

Error_Exit:

RETURN 1;

END

GO

It looks similar an issue as described in this link

https://social.technet.microsoft.com/Forums/en-US/03fce427-06ca-4667-898f-ffbfcd8535ef/really-expensive-discovery-insertion-how-can-i-trace-it-back?forum=operationsmanagergeneral

but does not any promising solution.

Does anyone have gone through this issue?

Operations Manager
Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,493 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,004 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Игорь Гритченко 1 Reputation point
    2020-12-28T12:18:22.717+00:00

    Same ploblem, i can't find solution yet. It's sad that the community has no idea about this.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.