Umbraco database connection reach max pool size - umbraco7

Currently using version 7.13.2 with MySQL database.
When the usage in production server is high (with alot of concurrent user), Umbraco tend to create alot of database connection to handle those job. Those connection is not close after used but sleep.
Umbraco would continue to create more database connection when necessary until it reach the database max pool size.
Is this the intention behaviour by Umbraco? Else, how could we configure this issue?

After hundred hours of debugging, I finally found out the cause and the solution is easy.
This bug has nothing to do with Umbraco, it handles the connection perfectly. Umbraco using MySql Connector when connecting to MySql database. When the connection close, it is actually not close but instead, added to connection pool. Please refer to link below for more information.
MySql Connection not closing using .net MySql Connector
The solution as suggested from the link, just adding "Pooling=false" as a string parameter into connection string. The connection string locate inside the web config.
enter image description here

Related

How to connect to an Oracle database through VS Code using an SID instead of Service Name?

I'm trying to see if I can use VS Code to connect to the Oracle databases we use at my job. I installed the Oracle Developer tools extension for VS Code, but when I click to add a connection it is required that I use a service name.
VS Code Oracle Connection Form
Does anyone know of a way I can use SID instead of a Service Name? All of our connections use SID.
I've tried the different options for connection type, however they all ask for fields that are not required of me to connect to the db. I've also used the SID as the Service Name, but was still unsuccessful in connecting.
All of our connections use SID.
is something you should be looking at addressing as a side project. Services over SID became recommended in Oracle 8i (yeah you read that right...20 years ago)
But every database has an implicit service name equivalent to the SID so just entering the SID value should still get you connected without issue.
Of course, now that we're in the world of pluggable databases, this will pretty much force your organisation to move to services, because the SID is typically going to point to the root container whereas you will want to connect to the pluggable(s) that sit underneath it.

ORA-01422 Exact Fetch returns more than requested number of rows from WebLogic datasource. Once restart issue resolved why?

I have a WebLogic server and oracle db. At some point WebLogic server returns with ORA-1422 error but while executing the same procedure from backend it works. Also this will work when I restart the WebLogic server.
Any idea why its happening like this and any resolutions?
If you have uncommitted data then it is only visible to the session in which the data was inserted/updated and each connection will be a different session even if you are connecting as the same user.
Therefore, if you insert/update some data and end up with duplicate data but forget to COMMIT it in the WebLogic server then you will only see the issue in the WebLogic server (particularly if you are using a connection pool and you are reusing the same connection and session over-and-over) because that session is the only one that can see the uncommitted data.
You will not see the issue from other connections (i.e. if you connect to the backend or if you close and reopen the WebLogic server's connections).
You need to check that you are always committing your data.

vb6 ODBC Connection or Custom API?

I have a vb6 application that uses a Database MS Access in read-only method.
I want to change this database with another, centralized and server side like SQL Server or MySQL.
Actually, into vb6 I use DAO for the connection (I know is an older method and there are better like ADO)
I don't know if is better to create my own API and connect to the data by vb6 or buy a SQL SERVER Cloud (Ex: azure) and connect them by ODBC Connection.
I'm afraid that this connection might be too slow...
What do you advise me to do?
The DB is 5MB of dimension with 500/600 connection every day

Database Connection unresponsive - Sybase

I am trying to connect to a sybase ASE 15 enterprise edition database. Initially the connection is working fine but suddenly the page becomes unresponsive. There are no exceptions in the log nor is there any error displayed on the page. Also I have noticed that only the connection related to a particular database is unresponsive and remaining all are working just fine. However, if I restart the server, everything's working fine.
I have tried to increase the number of user connections and modified sytem configurations. But the result is all the same. Please help me out
I recommend you trace the session to get more log information:
1- initiate a connection to the database
2- use the stored procedure'sp_who' to identify the spid of the process of your connection on the server side
3- set up the trace file for this spid:
set tracefile 'log_file' for spid
(follow doc: http://www.sybase.com/files/White_Papers/ASE15-apptrace-070507-wp.pdf
OR
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc00743.1502/html/queryprocessing/BABJDBHJ.htm )
4- analyze your log file
let us know if it helped.

Setting DB2 Client Audit information with a dbcp connection pool in a Java app

I'm developing Java apps on Tomcat 5.5 using JNDI to connect to shared dbcp connection pools with JDBC 3.0 drivers and DB2 8 on zOS and also DB2 9 on LUW. In my app, I use org.springframework.jndi.JndiObjectFactoryBean to get the dataSource and feed it into an org.springframework.jdbc.core.simple.SimpleJdbcTemplate to run the queries. This has been a fairly good solution so far, but our DBAs are requesting that we provide better granularity for auditing SQL performance. Currently, all portlets and apps use the same connection pool to connect to the database and the only way to distinguish between apps is to match the SQL run with the SQL in each app. We don't want to create seperate pools for each app. DB2 provides several methods on their DB2Connection from the driver that allow us to set audit information.
setDB2ClientApplicationInformation
setDB2ClientUser
setDB2ClientWorkstation
setDB2ClientAccountingInformation
My question is... what's the best way to set these values on a connection from a connection pool. Do I need to access the underlying connection in order to set these values? Should I clear them before returning the connection to the pool? Does anyone have code examples?

Resources