Not getting CLI Trace log DB2 Currently I am working on fixing an issue with the Java-DB2 connection leak. For which I require the CLI Trace logs. In my db2cli.ini I have added the below parameters, but still I am not getting the the trace logs.

    [COMMON]
    JDBCTrace=1
    JDBCTraceFlush=1
    JDBCTracePathName=C:\tracejdbc


Earlier we were using DB2 9.7 in which I was able to get the logs for the above changes. And now we are using DB2 10.5.3. I am trying it myself. Meanwhile it would be helpful on getting an Expert advice.
Looks like you are confusing the JDBC trace and the CLI trace. To enable the JDBC trace in the JCC driver, which is the only one available in DB2 10.5, you need to set the JDBC connection properties as described in the manual, for example, via the JDBC URL:

String url = "jdbc:db2://my.host.com:50000/mydb" +
             ":traceFile=/tmp/jcc.trc;" +
             "traceLevel=" + com.ibm.db2.jcc.DB2BaseDataSource.TRACE_DRDA_FLOWS + ";";


Various trace levels are described here.

Only the Type 2 JDBC driver will read db2cli.ini, so setting CLI properties has no effect if you are using Type 4 connectivity. Type 2 connectivity is deprecated an is not recommended for use.