Monitoring total number of JDBC connections
We have our application deployed in the Oracle 10g Application server, it uses Toplink 10g for the Persistence and OR mapping and the Oracle 9i database for data storage, the database connection pool is built and maintained by Toplink.
We observed that on the administration screen for each container, there are 2 parameters, number of active database connections and the total number of JDBC connections.
We did some load testing for the application and observed the following behaviour on the container.
1. When the number of parallel users are 10, behaviour seems to be normal, the active database connections are less than 20(used by the connection pool built by Toplink) and the total number of JDBC connections is the same as the number of database connections.
2. When the number of parallel users is increased to 50, we see that the active database connections is still less than 20, but the total number of JDBC connections just blowed up to 4000+ in less than 2 minutes and still growing. We have no valid explanation for this behaviour as the active sessions is still less than 20. Also we see no obnormal behaviour in our application log files.
The questions i have are
1. What could be the reason for the above abnormal behaviour?
2. How this parameter "Total number of JDBC connections" for a container is actually measured?
3. DOes this parameter gets affected by how we run the database i.e. in Dedicated server mode or Despactcher mode?
Many thanks for any information on this topic..
Perhaps your connection inactivity timeout is slightly too low, so that your connections are being closed and reopened at almost the same frequency. Try increasing the timeout.
Good Luck,
Chris
Similar Messages
-
how do I monitor Total number of calendars, events, and reminders to not exceed 25,000?
mposoff,
iCloud: Troubleshooting iCloud Calendar - Apple Support describes, among others, how to make copies of your calendar data. After completing a backup of your calendar data:
1. Open the Calendars Folder in your ~Library Folder, and move any any files with "Cache" listed in the name field to your Desktop.
2. Open the Preferences Folder in the ~Library Folder and move the com.apple.iCal.plist file to the Desktop.
3. Log out/in or restart and open Calendar.
If those three steps not successful, go back to iCloud: Troubleshooting iCloud Calendar - Apple Support and follow the appropriate steps in order. -
How to get total number of Database connections from Java code
Hi,
I am using Myql4.1.12.
I am conncting to mysql through Java.
I want to know how many active database connections were running at a specific time. Is it possible?
Can you please help me.
Thanks in advance.Seems like this would be a question for MySql, not for Java. And if it's possible you'd run some MySql utility to do that, not code it in a Java app.
-
To find out total number of sessions connected to database from DMZ node
Hi Experts,
We are in the process of auditing and i need detail data on this.Kindly help me to know ,how many sessions are connected to oracle database from DMZ node.Also let me know how can i get all the users connected from different node on daily basis?
Please let me know the sql query for this.
Thanks,
Prabhat.Try
select count(distinct d.user_name) from apps.fnd_logins a,
v$session b, v$process c, apps.fnd_user d
where b.paddr = c.addr
and a.pid=c.pid
and a.spid = b.process
and d.user_id = a.user_id
and (d.user_name = 'USER_NAME' OR 1=1); -
Are there tools to monitor the number of users connected to the Messaging Server
Can you monitor concurrent users on the Netscape Messaging Server?
<P>
We currently do not have any tools that can monitor concurrent
users.Excellent.
Tested, works as long as you set the ORACLE_SID first ( to change databases )
ps -ef | grep $ORACLE_SID | grep "LOCAL=NO" | awk '{print $2}' | wc -l
Thanks!
select OSUSER
from V$SESSION
where AUDSID = SYS_CONTEXT('userenv','sessionid')
and rownum=1;Best Regards
mseberg -
Total JDBC connections rising steadily
Our J2EE application has been crashing recently. The app stops responding to requests and is eventually restarted by OPMN. I have been monitoring it through the enterprise manager web page since the the crashes seem to be related to waiting for database resources. The number of open JDBC connections stays low, always less than 10. However, the total number of JDBC connections rises steadily through the day getting well past 1000. Is this normal?
Does it represent leakage of connections from the pool?
We are using OC4J 9.0.4.0 with a patch to fix the connection pool bug.
The data-source is defined as follows:
<data-source
class="com.evermind.sql.DriverManagerDataSource"
name="OracleDS"
location="jdbc/OracleCoreDS"
xa-location="jdbc/xa/OracleXADS"
ejb-location="jdbc/OracleDS"
connection-driver="oracle.jdbc.driver.OracleDriver"
username="asuser"
password="unguessable"
url="jdbc:oracle:thin:@dbserver:1526:dbinstance"
inactivity-timeout="30"
/>The Total number of connections figure indicates the total number of connections that have been opened since OC4J was started.
The Open number of connections figure indicates the total number of connections currently open.
Since you say that the open connections figure stays below 10, this suggests that you do not have a connection leak, but your inactivity time out is too low, and therefore your connections are being closed before they can be reused - hence the large total number of connections.
Good luck. -
Server get hang due to JDBC connections
Hello Folks,
Recently we have seen very strange problems ...
[JDK 5, Oracle db, dbcp connection pool, tomcat application server]
Suddenly Tomcat which runs our application becomes dead slow. Total number of db connections goes around 30-40. kill -3 thread dump reveals dump similar to following:
"TP-Processor3829" daemon prio=1 tid=0x6b96e2d0 nid=0x72e7 runnable [0x66f19000..0x66f1d4f0]
at oracle.jdbc.driver.T4CTTIdcb.receiveCommon(T4CTTIdcb.java:147)
at oracle.jdbc.driver.T4CTTIdcb.receive(T4CTTIdcb.java:114)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:703)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:216)
at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:799)
at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1039)
at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:839)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1132)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3285)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3329)
- locked <0xad5542d0> (a oracle.jdbc.driver.T4CPreparedStatement)
- locked <0xac9f8650> (a oracle.jdbc.driver.T4CConnection)
I have seen this issue has been faced by other members too http://forum.java.sun.com/thread.jspa?threadID=343023&start=15&tstart=0
But I couldn't able to fine any resolution on this problem. If you have any suggestion it will help a lot to resolve it.
regards,
bdIf that is the problem then one obvious solution would be to not spend so much time scrolling through a result set that the pool decides a timeout is in order.
-
Number of open connections in pool
Hi,
I want to find out how many connections are being used from my connection pool. From the monitoring capabilities you can only know the numer of timed-out connections, threads waiting and connections which failed validation.
How can i know the number of used connections?.
And too, can i monitorize the openning of the connections, the closure, when it is asigned to another thread, freed, etc.
Thanks
JuanHi,
I have been using the same for the last 6 months on UR1, UR2 and even on SJS8 without any issues. All works fine. The setting in my case is like this:
<jvm-options>-DMONITOR_JDBC=true</jvm-options>
<jvm-options>-DMONITOR_TIME_PERIOD_SECONDS=60</jvm-options>
<jvm-options>-DMONITOR_JDBC_TIME_PERIOD_SECONDS=60</jvm-options>But note that just having this setting in the JVM options is not enough. In the connection pool that you wish to monitor, you need to add one more property as follows:
<property value="true" name="perf-monitor"/>This will make the connection pool available for monitoring. If yous wish to turn it off, all you need to do is to turn perf-monitor value to false.
There is one other way to monitor the connection pool though. This can be done on the system level. The way to do it is as follows:
asadmin get --user <appservadmin user> --password <appservadmin password> --port <admin server port> --monitor <instance name>.resources.jdbc-connection-pool.<JDBC Connection pool name>.*To monitor the transactions, you can use this:
asadmin get --user <appservadmin user> --password <appservadmin password> --port <admin server port> --monitor <instance name>.transaction-service.*Hope this is of help.
Regards,
Abrar -
Open/total jdbc connections
With Oracle9iR2 AS installed, I notice that there are always open JDBC connections. I explicitly close them from all my JSP files (and the statement and the resultset objects as well). Actually, the total JDBC connections are always 2 times the open JDBC connections.
The DataSource class I use is com.evermind.sql.DriverManagerDataSource. Is this a problem? Will this be corrected in any future release?
ThanxInteresting thread. Have also had problems with the connection pool (903 standalone).
One problem in particular is that if min-connections is used, then those pool-connections are really never closed "physically". This means that a lot of open cursors are never released in the db (even though the "connections" used by the code from the pool are closed). Not so good under heavy load.
Posting a snippet from a connection pool entry we have. Maybe it will help some of you guys.
<data-source
class="com.evermind.sql.DriverManagerDataSource"
name="SomeDS"
location="jdbc/SomeDBCoreDS"
xa-location="jdbc/xa/SomeDBXADS"
ejb-location="SomeDB"
connection-driver="oracle.jdbc.driver.OracleDriver"
username="user"
password="pwd"
url="jdbc:oracle:thin:@127.0.0.1:1521:SOMESID"
inactivity-timeout="300" <-- Will close connections after 300 sec of inactivity
min-connections="0"
max-connections="20" <-- Larger on prod machine of course
stmt-cache-size="100"
/>
I have experimented wildly with these settings and this is the most stable. Sure, it's nice to always have connections ready in the pool. But as I said. Open cursors WILL accumulate in your db if you use the min-connections set to a positive number (check your v$). This is our experience anyway. These settings have stopped us from getting db errors such as maximum open cursors exceeded and too many connections open using 903.
Regards,
Jonas -
What are the DMS metrics related to Open/Total JDBC Connections?
Hi,
We need to monitor that state of the JDBC Connection Pool (Available conns, Max conns, etc.) by reading DMS, however we are struggling to find which is the right DMS metric associated to it?
We tried the table modplsql_DatabaseConnectionPool however it seems to be never loaded.
Thanks in advance!
CRFrances,
For example, use "min-connections" to specify how
many connections to pre-populate in the pool.Since when does "min-connections" pre-populate the pool?
According to my observations, there are no database connections established when OC4J starts up. Connections are only created when necessary. As a matter of fact, I still haven't seen anything in the behaviour of OC4J to indicate that it doesn't totally ignore the "min-connections" attribute.
[I have, on the other hand, seen that "max-connections" is taken into account by OC4J.]
Good Luck,
Avi. -
I have deployed an application to Apps Server 9.0.4.
I am using oracle.jdbc.pool.OracleConnectionPoolDataSource. I have closed all the connections, however Open JDBC Connections is always 0 and Total JDBC Connections is increasing.
My inactivity time out is 60 seconds.
Is this normal or something wrong somewhere?
Any help is highly appreciable.
ThanksThe Total number of connections figure indicates the total number of connections that have been opened since OC4J was started.
The Open number of connections figure indicates the total number of connections currently open.
Since you say that the open connections figure stays below 10, this suggests that you do not have a connection leak, but your inactivity time out is too low, and therefore your connections are being closed before they can be reused - hence the large total number of connections.
Good luck. -
Monitor_jdbc_conn.sql - Script to monitor JDBC connections
Hi
We are using oracle11 (11.5.10.2) on windows 2000 server
i need to monitor JDBC connections for that i want to schedule that script which runs every hour and after completion it creates output in a file with unique name.
How can i create such script?
Thanks
OHHi;
Please follow below for schedule script-task on windows platform:
How To Schedule Tasks in Windows
http://support.microsoft.com/kb/308569
How To Schedule Tasks in Windows
http://www.iopus.com/guides/winscheduler.htm
How do I schedule jobs on Win32 platforms?
http://docs.activestate.com/activeperl/5.10/faq/Windows/ActivePerl-Winfaq4.html#How_do_I_schedule_jobs_on_Win32_
Hope it helps
Regard
Helios -
Welogic 9.2 jdbc connection pool monitoring section not displaying server
Welogic 9.2 managed jdbc connection pool monitoring section not displaying server name. Can you please let me know how can i achive this
Hi,
It happens if the Connectivity is Lost b/w DataBase & WLS Server...In that case in the WLS AdminConsole---DataSource---Monitoring Tab you wont see even the Testing Page with valid datasource to test it.
So please make sure that the N/W connectivity proper....One more thing you can try:
<h3><font color=red>Test-1</font></h3>
You can use *“weblogic.Admin”* utility to Enable and Disable the Pool (DataSource) Just to Confirm whether the dataSource is actually active or not::
Step1). run *"setWLSEnv.sh"* first in the same Shell prompt....then do the following:
Step2). To suspend:
java weblogic.Admin -url t3://localhost:7001 -username weblogic -password weblogic SUSPEND_POOL YourDataSourceName
Step3). To re-enable:
java weblogic.Admin -url t3://localhost:7001 -username weblogic -password weblogic RESUME_POOL YourDataSourceName
To test whether you are getting any Exception or Error while doing this....If yes u are getting any Error or exception then It means there May be some Database connectivity issue...
<h3><font color=red>Test-2</font></h3>
Please use the following Utility to Test the Database connectivity from your WLS Server box:
<font color=maroon>
java -classpath /opt/app/bea/weblogic92mp2/weblogic92/server/lib/weblogic.jar -Dbea.home=/opt/app/bea/weblogic92mp2 utils.dbping ORACLE_THIN DbUserName DBPassword somethingDbUrl.Something.net:1521:dbInstance
</font>
Syntax:
java -classpath /opt/app/bea/weblogic92mp2/weblogic92/server/lib/weblogic.jar -Dbea.home=/opt/app/bea/weblogic92mp2 utils.dbping ORACLE_THIN <DBUserName> <DBPassword> <DBURL>
The above utilty will test the DB Connectivity ...you need to run it from your WLS server Box...
<h3><font color=red>Another Simple Alternative of Test-2</font></h3>
http://jaysensharma.wordpress.com/2010/03/23/testing-datasource-status-using-wlst/
Thanks
Jay SenSharma
http://jaysensharma.wordpress.com (WebLogic Wonders Are Here) -
JDBC connection monitor on CSS11506
Hi experts
Does anyone has experiece for monitoring oracle database performance by JDBC connection from CSS11506? I guess by script?
if it is not possible to do so, if there is otherway the system do eitehr application server or DB server is performance is too low?
I found the ping is not the solution.
Any comments will be appreciated
Thanks in advanceHello,
SASP or DFP are the only automated systems the CSS hooks directly into:
http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/css11500series/v8.20/configuration/content_lb/guide/sasp.html
http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/css11500series/v8.20/configuration/content_lb/guide/DFP.html
You can configure Load Variables with ACA loadbalancing for a CSS based view of the load:
http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/css11500series/v8.20/configuration/content_lb/guide/Load.html#wp1077555
Regards,
Chris Higgins -
Proactive JDBC Connection Monitoring
Does the Web AS provide any monitoring tools for the JDBC Connector service that produce alerts when a datasource service loses connectivity with its database?
Hi,
Check this links
http://help.sap.com/saphelp_webas630/helpdata/en/b0/6e62f30cbe9e44977c78dbdc7a6b27/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/56/1e5d427213d142e10000000a1550b0/content.htm
i don't know it directly address your problem.
This forum thread
short dump when loggin and jdbc driver error
Maybe you are looking for
-
Hi, I had my new Nano working great and had my music on it no problem. Then I was offered to upgrade to software version 1.0.2 or something to that extent, I also had to upgrade to Itunes 7.4 before it would recognise my nano to begin with. Anyway, t
-
Getting a extra space between the line in the PDF output
I an having the rtf templete contains a table . That table contains 3 row and for the second row i have a for loop start at 1st column and end's at last column . first and 3rd row are the simple data donot have any for loop . So in the PDF out put of
-
Message Mapping - Identify a number in a sting
Hello Guys, There is a requirement to perform a conversion based on its length. If the length of the incoming field is less than or equal to 20 characters pass the string directly to the target field. If the length is more than
-
af:inputtext set to lowercase?
I have an <af:inputtext> box that is accepting an e-mail address. This e-mail address is one of the search items for the query, which is working fine. However, I need to make it to a lower case string before it is being sent to the query. I tried to
-
Hi, any idea if the Z1 Compact should be able to be charged directly from a car's USB socket? I can do this with an i-Phone & a Samsung phone but my Z1 Compact will not recognise the connection. It's not the phone's USB (as I can charge via the comp