DB2 - Problembeschreibung
Problem IC77284 | Status: Geschlossen |
CLI ASYNCHRONOUS EXECUTION MAY CAUSE POOR PERFORMANCE DUE TO 1 SEC DELAY. | |
Produkt: | |
DB2 FOR LUW / DB2FORLUW / 950 - DB2 | |
Problembeschreibung: | |
A CLI based application might intermittently run slow if the application enables asynchronous execution. CLI applications can enable asynchronous execution by the code like as below: RC = SQLSetStmtAttr( hstmt, SQL_ATTR_ASYNC_ENABLE, (SQLPOINTER) SQL_ASYNC_ENABLE_ON, 0); The db2trc shows the following 1 sec delay on the application thread when the application runs into this performance problem. 40095 1.735732055 SQLExecute entry 40130 1.735823966 | CLI_asyncRequest entry 40133 1.735830950 | | sqloAppWaitOnSync entry 40136 2.730424676 | | sqloAppWaitOnSync data [probe 20: WAIT_TIMEOUT] 40137 2.730431102 | | sqloAppWaitOnSync exit | |
Problem-Zusammenfassung: | |
**************************************************************** * USERS AFFECTED: * * Users who uses asynchronous execution on CLI based * * applications. * **************************************************************** * PROBLEM DESCRIPTION: * * A CLI based application might intermittently run slow if the * * application enables asynchronous execution. CLI applications * * can enable asynchronous execution by the code like as below: * * * * RC = SQLSetStmtAttr( hstmt, * * SQL_ATTR_ASYNC_ENABLE, * * (SQLPOINTER) SQL_ASYNC_ENABLE_ON, * * 0); * * * * The db2trc shows the following 1 sec delay on the * * application thread when the application runs into this * * performance problem. * * * * 40095 1.735732055 SQLExecute entry * * 40130 1.735823966 | CLI_asyncRequest entry * * 40133 1.735830950 | | sqloAppWaitOnSync entry * * 40136 2.730424676 | | sqloAppWaitOnSync data [probe * * 20:WAIT_TIMEOUT] * * 40137 2.730431102 | | sqloAppWaitOnSync exit * **************************************************************** * RECOMMENDATION: * * Please upgrade to DB2 V9.5 FixPack 9 or later, then set * * patch2=112 in db2cli.ini. * **************************************************************** | |
Local-Fix: | |
Users can bypass this issue by disabling asynchronous execution. Please implement one of the followings: a) Turn SQL_ATTR_ASYNC_ENABLE off in the application code. b) Set ASYNCENABLE=0 in db2cli.ini c) Set DisableAsyncQueryExecution as 1 in db2dsdriver.cfg. | |
verfügbare FixPacks: | |
DB2 Version 9.5 Fix Pack 9 for Linux, UNIX, and Windows | |
Lösung | |
This problem was first fixed in DB2 V9.5 FixPack 9. | |
Workaround | |
keiner bekannt / siehe Local-Fix | |
Bug-Verfolgung | |
Vorgänger : APAR is sysrouted TO one or more of the following: IC77950 Nachfolger : | |
Weitere Daten | |
Datum - Problem gemeldet : Datum - Problem geschlossen : Datum - der letzten Änderung: | 30.06.2011 12.03.2012 12.03.2012 |
Problem behoben ab folgender Versionen (IBM BugInfos) | |
9.5.FP9 | |
Problem behoben lt. FixList in der Version | |
9.5.0.9 |