My Oracle Support Banner

Geocoder Chached Session Leads To Thread Contention (Doc ID 1563914.1)

Last updated on FEBRUARY 08, 2017

Applies to:

Oracle Spatial - Version 11.2.0.1 to 11.2.0.3 [Release 11.2]
Information in this document applies to any platform.

Symptoms

Products:
Geocoder application 11.2.0.3
 Weblogic 10.3.6

Geocoder retrieves only one database connection from JDBC DataSource, caches it and then shares it among all threads requiring access to database:
Every thread spawn from a request to GCServer servlet that need a connection to database calls method Geocoder.getConnection().
The problem is that the first time the method is called, it caches the connection in ConnectionManager.conn public instance member,
and further calls to this method will always return the same connection.
This behavior leads to thread contention since most of the methods of the underlying implementation of java.sql.Connection are synchronized.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.