CPU Running 100% - SQL in Sixty Seconds 185

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ม.ค. 2025

ความคิดเห็น •

  • @anandwadsinge3913
    @anandwadsinge3913 3 ปีที่แล้ว +8

    You are really a master in SQL - HANDS DOWN - please keep making such videos it helps out others.

  • @sunilvenkataravanappa2833
    @sunilvenkataravanappa2833 3 ปีที่แล้ว +1

    Thank you Pinal Dave for keeping ur promise on making video on CPU 100% usage....

  • @muralisriram9001
    @muralisriram9001 3 ปีที่แล้ว +1

    Hi Pianl,
    Most helpful and lots people expected this video and the last query.

  • @kotekr4383
    @kotekr4383 3 ปีที่แล้ว +1

    Dear Pinal ... tq very much for your help and your video making me shine helping alot to prove our self....

  • @fbifido2
    @fbifido2 3 ปีที่แล้ว +1

    @0:50 - code created to make sql have a problem - high cpu usage
    @1:16 - code to try & find what process is using high cpu, but found OtherProcess record_id=31 at 38%
    - which record_id is the high cpu usge running on?
    - is 5% for SQL a lot of process?
    @2:31 - code to find high cpu usage in sql, this one found the problem.
    @3:47 - code use to access history data?
    - how long must the problem code @0:50 need to be running for it to end up un the cache?
    - @4:11 - can you explain, what we should be looking for in this table?

    • @PinalDaveSQLAuthority
      @PinalDaveSQLAuthority  3 ปีที่แล้ว +1

      5% is not a lot but that is what my machine was running at that time. High CPU time is what we should look into the tables.

  • @rahuldewada2009
    @rahuldewada2009 3 ปีที่แล้ว +3

    Thank you for the great information. I am following you since I started my IT career.

  • @diegotomiello
    @diegotomiello 3 ปีที่แล้ว +4

    Thanks alot Pinal, you're great for share your knowledge with us.

  • @abhinavgaur7
    @abhinavgaur7 3 ปีที่แล้ว +1

    This is one the problem that we face most of the time. Thanks for sharing such helpful video.

  • @minnrick7986
    @minnrick7986 3 ปีที่แล้ว +1

    Thanks Pinal, this one was particularly helpful!

  • @jayakrishnanjagadeesh694
    @jayakrishnanjagadeesh694 3 ปีที่แล้ว +1

    Thank you so much Mr. Pinal for such a useful video…

  • @jayakrishnanjagadeesh694
    @jayakrishnanjagadeesh694 3 ปีที่แล้ว +3

    Can you do a video regarding the most common table locking scenarios and common effective methods for solving it.?

  • @ankitgarg204
    @ankitgarg204 3 ปีที่แล้ว +2

    Hey can you make a video on query store usage and how to identify regressed queries top cpu consuming queries
    And how can we use to find blocking information from default extended events

  • @Dalamain
    @Dalamain 3 ปีที่แล้ว +1

    Hi Pinal, I really like this new format, thanks! 😀

  • @dtovee
    @dtovee 3 ปีที่แล้ว +1

    Another great video. Thanks Pinal :)

  • @chiragpatel4601
    @chiragpatel4601 3 ปีที่แล้ว +3

    Great stuff. Can you make video for best practices for geography data type and filter that data. I have a latitude and longitude data and I want to filter data based on some range km/mile.

  • @piyushbharakhda2076
    @piyushbharakhda2076 3 ปีที่แล้ว +1

    you are Great! Thanks with Luv.

  • @dineshmanoharan2423
    @dineshmanoharan2423 3 ปีที่แล้ว +2

    Hi Pinal,
    In the third query it should be ordered by total worker time rather than total logical reads. Just an observation.

  • @achilleskocaeli
    @achilleskocaeli 3 ปีที่แล้ว +1

    Thanks Pinal, you are a great guy 👍

  • @Arctic306
    @Arctic306 3 ปีที่แล้ว +1

    Very nice ! Subscribed ! 😁✌🏻

  • @architectingme
    @architectingme 3 ปีที่แล้ว +3

    Sir, you have been a troubleshooting master. Please now make videos and write articles for SQL server conceptual part. We also want you to write about azure sql, AWS RDS and managed instances.

    • @otoolepw
      @otoolepw 3 ปีที่แล้ว +1

      yeah we’re greedy for more pertinent material! we need azure sql, managed instance content etc! feed us! 😉

    • @PinalDaveSQLAuthority
      @PinalDaveSQLAuthority  3 ปีที่แล้ว +1

      Sure!

    • @PinalDaveSQLAuthority
      @PinalDaveSQLAuthority  3 ปีที่แล้ว +2

      Will do my best.

  • @ianhenrypaterno3684
    @ianhenrypaterno3684 3 ปีที่แล้ว +1

    Thanks Pinal, great help!😀

  • @ArunKumar-tx1re
    @ArunKumar-tx1re 3 ปีที่แล้ว +1

    Thank you sir for sharing your knowledge with us.could you share videos how to troubleshoot queries based on wait type and creating good index

  • @afzaalawan
    @afzaalawan 2 ปีที่แล้ว +1

    Brilliant Hats off

  • @chiragpatil1817
    @chiragpatil1817 3 ปีที่แล้ว +1

    Thanks a lot, sir. Can you please make the video for the Memory usage identification

  • @jagadeeshsiva8813
    @jagadeeshsiva8813 2 ปีที่แล้ว +1

    I have small question, why the .TUF is not created when we configure the logshipping secondary Db in RESTORING mode..
    Please answer...

  • @vlog.shaamil
    @vlog.shaamil 2 ปีที่แล้ว +1

    Thanks for the tips, by the way is it Dangerous Dave that you were playing. Can you please let me know all above scrips valid for AWS RDS ?

  • @greatlog4u
    @greatlog4u 3 ปีที่แล้ว +1

    very helpful, thanks for sharing with us

  • @santoshraghunath8133
    @santoshraghunath8133 3 ปีที่แล้ว +4

    Can you release a course in Udemy for full sql server? You are amazing in teaching

  • @sivakumarramachandran7507
    @sivakumarramachandran7507 3 ปีที่แล้ว +1

    Thanks a lot Pinal, some reason second query returns the query itself. Not listing the index query

  • @MrGigmepc
    @MrGigmepc 3 ปีที่แล้ว +1

    great information.! could you provide a video about how to handle tempdb full due to active transaction

  • @arazrustamov2223
    @arazrustamov2223 3 ปีที่แล้ว +3

    Hi Pinal, could you please make a video about why Estimated and Actual number of rows are different even after updating statistics with fullscan?
    Thank you!

    • @PinalDaveSQLAuthority
      @PinalDaveSQLAuthority  3 ปีที่แล้ว +2

      That is usually the case. It is where you need to fine tune your index for the query. There are few videos on that topic in channel.

  • @AM-oj8yp
    @AM-oj8yp 3 ปีที่แล้ว +1

    Hi Pinal, always love your content , let's say we have always on and the cpu is high due to parallel redo, what you think we should do . Much appreciate your response 🙏

  • @sureshn4642
    @sureshn4642 3 ปีที่แล้ว +1

    Thanks a lot Pinal👍...

  • @bassfischer4273
    @bassfischer4273 3 ปีที่แล้ว +1

    Hi Pinal. I've noticed that in the Step 1 script the [OtherProcess (%)] field occasionally produces a negative number - e.g. [SQL Process (%)] = 20, [SystemIdle] = 87, [OtherProcess (%)] = -7. Is this an error? Harmless artifact?

  • @thiyagurind
    @thiyagurind 3 ปีที่แล้ว +1

    Hi, i am running a sp in a cluster, wherein the cluster has 5 nodes. the same sp taking different execution time in all the 5 nodes. In node 1 it takes10 seconds, In node 2 it takes 2 mins. Please share your comment on this case..

  • @rohitsakalle
    @rohitsakalle 2 ปีที่แล้ว

    Hi @Pinal Dave I have got a question for you 🙂. One of my operation cause the CPU spike, using profiler I could find out that it was some simple select * query which is running multiple times. Question is can doing Select * instead of Select column name could cause cpu spike as well?

  • @RajkumarYadav-tb8of
    @RajkumarYadav-tb8of 2 ปีที่แล้ว +2

    I love your content.. please make an complete SQL server DBA and SQL Server performance tuning courses in udemy....
    It would be very helpful junior DBAs who just started a career as SQL DBA

  • @udararatnayake4038
    @udararatnayake4038 3 ปีที่แล้ว +1

    Hi Pinal, on your first step1: systemidle shows most over 80% idle. is that mean system is idle and quite some time? . next: record id 46/45 sql processes 5 and 5. do you still think that is performance issue? what is your bench mark to investigate system idle figure values ?

    • @PinalDaveSQLAuthority
      @PinalDaveSQLAuthority  3 ปีที่แล้ว +1

      This is my demo system and did not had real world load.

    • @udararatnayake4038
      @udararatnayake4038 3 ปีที่แล้ว

      @@PinalDaveSQLAuthority Hi Pinal what s your comment when SQL process 95% and systemidle is 0 for last 1 hour

  • @VarinderSingh-ov4yj
    @VarinderSingh-ov4yj 3 ปีที่แล้ว +1

    Awesome video

  • @pankajraturi1972
    @pankajraturi1972 3 ปีที่แล้ว +1

    Hi Pinal, I have a problem with high CPU utilization where all query taking time. I checked most of the things but couldn't find anything. Finally when I restored 2 week old database then only queries was running fast. Please suggest.

    • @PinalDaveSQLAuthority
      @PinalDaveSQLAuthority  3 ปีที่แล้ว

      This requires investigation. I am not sure about the answer at this moment.

    • @pankajraturi1972
      @pankajraturi1972 3 ปีที่แล้ว

      @@PinalDaveSQLAuthority could you please share some tips to troubleshoot.

  • @sanujss
    @sanujss 3 ปีที่แล้ว +1

    Thanks for this

  • @madhupeddinti12345
    @madhupeddinti12345 3 ปีที่แล้ว +1

    Explain about max DOP option usage.. pls

  • @chinamsatish
    @chinamsatish 3 ปีที่แล้ว +1

    Hello Pinal,
    Can you provide some info on SQL Server for ML? I have an env where R services are also using the available memory and see that SQL server releasing memory on OS request.

    • @PinalDaveSQLAuthority
      @PinalDaveSQLAuthority  3 ปีที่แล้ว

      Great topic for the future.

    • @ProtikPC_pro_indigo
      @ProtikPC_pro_indigo 3 ปีที่แล้ว

      I have a recurring problem.
      any time I start my machine afresh[total power start]
      the sql server service gets stopped. I have to go manually restart it to connect to DB engine.
      everytime.
      What's a great automated fix for this? On MSSQL 2019. SSMS version 18.10.
      Any link/resource out there, demonstrating step by step trouble shooting for this?
      Meanwhile, do visit my channel, watch Like, Share the videos.
      SUBSCRIBE.

  • @eagleonesims613
    @eagleonesims613 3 ปีที่แล้ว +1

    Do you have any troubleshooting tips to find why an index keep getting corrupted? Everytime this error pops up we have to drop and recreate it to resolve this issue.

    • @PinalDaveSQLAuthority
      @PinalDaveSQLAuthority  3 ปีที่แล้ว +1

      What do you mean by index corruption?

    • @eagleonesims613
      @eagleonesims613 3 ปีที่แล้ว

      @@PinalDaveSQLAuthority Same thing I said when I seen the sql error. I will reply again with the exact error message.

    • @eagleonesims613
      @eagleonesims613 3 ปีที่แล้ว

      @@PinalDaveSQLAuthority here is the exact error message."unable to find index entry in index id 37, of the table 1035879503, in database xxxxxxx. The indicated index is corrupt or there is a problem with the current update plan. Run dbcc or dbcc checktable".

  • @afzaalawan
    @afzaalawan ปีที่แล้ว +1

    Pinal are you based in UK, would love to meet you

  • @ajaxhoogaume7245
    @ajaxhoogaume7245 3 ปีที่แล้ว +1

    The game is Contra. I lost many hours to that game back in the day.

  • @shamilpm262
    @shamilpm262 2 ปีที่แล้ว +1

    Sir,
    How to Solve CPU utilization ?

  • @supperhalo
    @supperhalo ปีที่แล้ว +1

    Do you have any course in udemy?

  • @torqueabhi_
    @torqueabhi_ 3 ปีที่แล้ว +1

    Thanks🙏🏽

  • @ashokkumarperumal2811
    @ashokkumarperumal2811 3 ปีที่แล้ว +1

    hi , sql server occupy 80% ram .pls recommend any steps to reduce

  • @RajneeshDabral
    @RajneeshDabral 2 ปีที่แล้ว +1

    Thanks Pinal

  • @krishnaparashar3609
    @krishnaparashar3609 3 ปีที่แล้ว +1

    Can i run this query to all Databases or only on master???

  • @PixelMahesh
    @PixelMahesh 3 ปีที่แล้ว +1

    Can we use resource governor to control CPU?

  • @chandalvis
    @chandalvis 3 ปีที่แล้ว +1

    I used to play contra growing up.

  • @diptikantam
    @diptikantam 3 ปีที่แล้ว +1

    Thanks a lot

  • @ced4298
    @ced4298 4 หลายเดือนก่อน +1

    Is the game Double Dragon?

  • @steveearle9678
    @steveearle9678 3 ปีที่แล้ว +1

    The game is Contra?

  • @chanchalsharma
    @chanchalsharma 3 ปีที่แล้ว +1

    Very interesting..

  • @akheruzzaman3943
    @akheruzzaman3943 3 ปีที่แล้ว +1

    SQL GURU

  • @trngolden
    @trngolden 3 ปีที่แล้ว +1

    Guess about the game. Contra!

  • @varundeshpandevd
    @varundeshpandevd 2 ปีที่แล้ว +1

    Hi Pinal, are you awesome or are you awesome? Jk, you are awesome awesome!

  • @Itsjeetthaker
    @Itsjeetthaker 3 ปีที่แล้ว +1

    Game is Contra😊

  • @carlosaugustorj
    @carlosaugustorj 2 ปีที่แล้ว +1

    Game is Contra :)

  • @shashankanand1340
    @shashankanand1340 2 ปีที่แล้ว +1

    Game - Contra

  • @VarinderSingh-ov4yj
    @VarinderSingh-ov4yj 3 ปีที่แล้ว +1

    Contra

  • @kennethgardzinski
    @kennethgardzinski 3 ปีที่แล้ว +1

    Pitfall

  • @sandeep0000
    @sandeep0000 2 ปีที่แล้ว +1

    Game is contra