java - No.of Inactive session increased while connection made using BoneCP - for every run -


i have connected oracle db application. each , every run, no.of inactive sessions increased , means old sessions not reused , new 3 connection s created every insert/update operation. after shut downing application server reset , comes normal.

if continues, whether raise problem?. idea why happened , anyway rectify issue?

this basic config jdbc connection oracle

class.forname(driverclass); bonecpconfig config = new bonecpconfig(); config.setjdbcurl("jdbc:oracle:thin:@localhost:1521:orcl"); config.setusername(username); config.setpassword(password); config.setpartitioncount(1); config.setminconnectionsperpartition(2); config.setmaxconnectionsperpartition(4); config.setacquireincrement(3); config.setlazyinit(true); config.setdefaultautocommit(true); config.setlogstatementsenabled(true); poolmanager = new bonecp(config); 

query

select * v$session username='oracle_db';

"saddr" "sid"   "serial#"   "audsid"    "paddr" "user#" "username"  "command"   "ownerid"   "taddr" "lockwait"  "status"    "server"    "schema#"   "schemaname"    "osuser"    "process"   "machine"   "port"  "terminal"  "program"   "type"  "sql_address"   "sql_hash_value"    "sql_id"    "sql_child_number"  "sql_exec_start"    "sql_exec_id"   "prev_sql_addr" "prev_hash_value"   "prev_sql_id"   "prev_child_number" "prev_exec_start"   "prev_exec_id"  "plsql_entry_object_id" "plsql_entry_subprogram_id" "plsql_object_id"   "plsql_subprogram_id"   "module"    "module_hash"   "action"    "action_hash"   "client_info"   "fixed_table_sequence"  "row_wait_obj#" "row_wait_file#"    "row_wait_block#"   "row_wait_row#" "top_level_call#"   "logon_time"    "last_call_et"  "pdml_enabled"  "failover_type" "failover_method"   "failed_over"   "resource_consumer_group"   "pdml_status"   "pddl_status"   "pq_status" "current_queue_duration"    "client_identifier" "blocking_session_status"   "blocking_instance" "blocking_session"  "final_blocking_session_status" "final_blocking_instance"   "final_blocking_session"    "seq#"  "event#"    "event" "p1text"    "p1"    "p1raw" "p2text"    "p2"    "p2raw" "p3text"    "p3"    "p3raw" "wait_class_id" "wait_class#"   "wait_class"    "wait_time" "seconds_in_wait"   "state" "wait_time_micro"   "time_remaining_micro"  "time_since_last_wait_micro"    "service_name"  "sql_trace" "sql_trace_waits"   "sql_trace_binds"   "sql_trace_plan_stats"  "session_edition_id"    "creator_addr"  "creator_serial#"   "ecid" 000007ff657e9e78    32  17519   8268263 000007ff654ec488    574 "oracle_db" 0   2147483644  ""  ""  "inactive"  "dedicated" 574 "oracle_db" "testpc"    "1234"  "testpc-pc" 52779   "unknown"   "jdbc thin client"  "user"  00  0   ""  ""  ""  ""  000007ff4b548518    1374653582  "cs6jdgt8yz34f" 0   24-03-14    16789303    ""  ""  ""  ""  "jdbc thin client"  2546894660  ""  0   ""  5403085 -1  0   0   0   5   24-03-14    3739    "no"    "none"  "none"  "no"    ""  "disabled"  "enabled"   "enabled"   0   ""  "no holder" ""  ""  "no holder" ""  ""  2045    345 "sql*net message client"   "driver id" 1952673792  0000000074637000    "#bytes"    1   0000000000000001    ""  0   00  2723168908  6   "idle"  0   3739    "waiting"   3738938101  -1  0   "sys$users" "disabled"  "false" "false" "first exec"    100 000007ff654ec488    233 "" 000007ff657e4198    34  36782   8268131 000007ff654e3098    574 "oracle_db" 0   2147483644  ""  ""  "inactive"  "dedicated" 574 "oracle_db" "testpc"    "1234"  "testpc-pc" 52675   "unknown"   "jdbc thin client"  "user"  00  0   ""  0   ""  ""  00  0   ""  0   ""  ""  ""  ""  ""  ""  "jdbc thin client"  2546894660  ""  0   ""  5402600 -1  0   0   0   115 24-03-14    4354    "no"    "none"  "none"  "no"    ""  "disabled"  "enabled"   "enabled"   0   ""  "no holder" ""  ""  "no holder" ""  ""  6   345 "sql*net message client"   "driver id" 1952673792  0000000074637000    "#bytes"    1   0000000000000001    ""  0   00  2723168908  6   "idle"  0   4353    "waiting"   4353237602  -1  0   "sys$users" "disabled"  "false" "false" "first exec"    100 000007ff654e3098    77  "" 000007ff657cfc88    41  44470   8268198 000007ff654ea3a8    574 "oracle_db" 0   2147483644  ""  ""  "inactive"  "dedicated" 574 "oracle_db" "testpc"    "1234"  "testpc-pc" 52708   "unknown"   "jdbc thin client"  "user"  00  0   ""  ""  ""  ""  000007ff4b548518    1374653582  "cs6jdgt8yz34f" 0   24-03-14    16788295    ""  ""  ""  ""  "jdbc thin client"  2546894660  ""  0   ""  5402793 -1  0   0   0   5   24-03-14    4050    "no"    "none"  "none"  "no"    ""  "disabled"  "enabled"   "enabled"   0   ""  "no holder" ""  ""  "no holder" ""  ""  2023    345 "sql*net message client"   "driver id" 1952673792  0000000074637000    "#bytes"    1   0000000000000001    ""  0   00  2723168908  6   "idle"  0   4049    "waiting"   4049292378  -1  0   "sys$users" "disabled"  "false" "false" "first exec"    100 000007ff654ea3a8    76  "" 000007ff657c9fa8    43  57339   8268602 000007ff654f16b8    574 "oracle_db" 0   2147483644  ""  ""  "inactive"  "dedicated" 574 "oracle_db" "testpc"    "1234"  "testpc-pc" 52978   "unknown"   "jdbc thin client"  "user"  00  0   ""  ""  ""  ""  000007ff4b548518    1374653582  "cs6jdgt8yz34f" 0   24-03-14    16790312    ""  ""  ""  ""  "jdbc thin client"  2546894660  ""  0   ""  5404182 -1  0   0   0   5   24-03-14    2180    "no"    "none"  "none"  "no"    ""  "disabled"  "enabled"   "enabled"   0   ""  "no holder" ""  ""  "no holder" ""  ""  2017    345 "sql*net message client"   "driver id" 1952673792  0000000074637000    "#bytes"    1   0000000000000001    ""  0   00  2723168908  6   "idle"  0   2180    "waiting"   2180168100  -1  0   "sys$users" "disabled"  "false" "false" "first exec"    100 000007ff654f16b8    70  "" 


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -