Db2

Db2

Connect with Db2, open source, and other data experts to gain value from your data, share insights, and solve problems.

 View Only
  • 1.  how to track why so many internal commits are happening?

    Posted Fri October 24, 2025 09:10 AM

    hi,

    the question is for learning purpose only, not in a real time client issue.

    i have a database activated and just left it alone and looked at database snapshot for commit statements and internal commits.

    No applications are connected, just the database is idle for more than 20 minutes. but i get more than 30 internal commits after some time. i just really idling not even any users connected. how to figure out why such behaviour or db2 decides to commit 40 times on idle database.

    i use db2 get snapshot for database statement to monitor internal commits monitor element.

    thanks,

    harish pathangay



    ------------------------------
    Harishkumar Pathangay
    ------------------------------


  • 2.  RE: how to track why so many internal commits are happening?

    Posted Fri October 24, 2025 04:08 PM

    Hi,

    There are several places where an internal commit may be issued; most obvious is CONNECT_PROC, TERMINATE and CONNECT RESET, but also any automatic maintenance tasks, WLM tasks, monitoring tasks, STMM, Health Monitor may contribute to number of internal commits. 



    ------------------------------
    Jan Nelken
    Db2 (LUW) DBA
    Open for work
    Katowice or Krakow
    +48 783 109 863
    ------------------------------



  • 3.  RE: how to track why so many internal commits are happening?

    Posted Mon October 27, 2025 12:33 AM
    Depend on your remote software setup, there more than likely is a keep alive setting.

    What it does after “X” amount of time make sure the connect stays open.

    Here some mechanism will issue a simple sql query to a catalog table or maybe an installed special table.
    Know the if you have autocommit turned on then it’s keep alive pings it will issue a commit after they are done.

    And to add more confusion to the mix is if you are using connection pooling. Here each connection in the pool will do the same as above.






    Sent from my iPhone




  • 4.  RE: how to track why so many internal commits are happening?

    Posted Mon October 27, 2025 01:03 AM
    Thanks for the suggestions.
    I was looking for capturing who is responsible for this internal commits, like an idle db2 clp session or which edu are issuing that commit, is there any way to figure this out.

    Thanks
    Harishkumar 

    Thanks,
    Harish P