java - Relationship between JDBC sessions and Oracle processes -


we having problem many oracle processes being created (over 2,000) when connections limited 1,100 (using c3p0)

two questions:

  • what's relationship between oracle process , jdbc connection? 1 oracle process created each session? 1 created every jdbc statement? no relationship @ all?

  • did ever face scenario, creating more processes jdbc connections?

any comment appreciated.

there 1 session per connection. sounds have connection leak, somewhere you're opening new connection , not closing properly. 1 possibility open, use , close connection inside try block , handling exception in catch, or returning someother reason. if need make sure connection close done in finally or may not happen, leaving connection (and session) hanging. opening 2 connections in same scope without explicit close in between can this.

i'm not familiar c3po don't know how connections handled, or , how 1100 limit imposed; if (or you) have connection pool , 1100 refer maximm pool size, doesn't sound issue you'd hit pool cap before session cap.

you can in v$session confirm sessions coming jdbc, , there isn't else connecting.


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -