JDBC 4's java.sql.Clob.free() method and backwards compatibility

前端 未结 2 656
无人及你
无人及你 2021-01-20 17:35

I\'m investigating an interesting performance issue, where there are no calls to java.sql.Clob.free() on a frequently used resource. This method on Clob was int

2条回答
  •  Happy的楠姐
    2021-01-20 18:03

    Our application had to be sure to call java.sql.Clob.free() explicitly on oracle.sql.CLOB (used toJdbc() to get java.sql.Clob) with Oracle 11g and 'ojdbc6.jar' (Specification-Version '4.0' and Implementation-Version '11.2.0.3.0' in MANIFEST.MF). Otherwise the application suffered from substantial memory leaks.

提交回复
热议问题