connection-pooling

HTTP Connection pooling in Apache CXF

▼魔方 西西 提交于 2019-12-05 05:19:06
I am trying to check whether Apache CXF implements HTTP Connection Pooling ? If yes, how can we configure the same. If not, how can we achieve the same? This thread is little direction towards the same. But it's not clear whether HTTPConduit has a way to set the same or properly configure. Can anyone guide me on this? Tarun Tyagi Apache CXF uses HTTPUrlConnection internally and relies on java system properties to configure client connection settings. Two main ones that you can configure are as follows: http.keepAlive (default: true) - Indicates if persistent connections should be supported.

Zombie Connections to MySQL using c3p0 with tomcat

非 Y 不嫁゛ 提交于 2019-12-05 04:52:06
问题 I'm using c3p0 to manage my Database Connections to MySQL. The problem is that some connections are being hold forever. I have a limit of 1000 connections, but for some unknown reason, there are 1200 open connections. To investigate it, I do this command in the tomcat server shell: netstat -n |grep 3306|grep ESTABILISHED|wc -l and it returns 1200 here is the c3p0 configuration in context.xml <Resource name="jdbc/xxxx" auth="Container" user="xxxxxx" password="xxxxx" driverClass="com.mysql.jdbc

Spring-Hibernate application: Illegal access: this web application instance has been stopped already

大城市里の小女人 提交于 2019-12-05 02:18:33
I am handling the connections in proper way. 1. I am using 'Hibernate' connection pooling in my application. Whenever I get a connection from pool, I am returning back to pool after finishing the transaction. 2. I have monitored the database to check the connections. I have a 'Idle connection' time set to 60 seconds. I found no connection objects are running more than 60 seconds. Still I am getting this error very often. And my web application is getting stopped. I have to restart tomcat every day once. However, I am looking for a permanent solution without restarting the tomcat. Can any one

Connection pooling is slower than keeping one connection open

梦想的初衷 提交于 2019-12-05 01:40:27
问题 I have observed an interesting behavior of the performance of connection pooling in an client application we created. When ever the user clicks on an object, more object specific data is loaded from the database. This takes somewhere between 10 and 30 queries per click depending on the object. This was done by using connection pooling and each query was dispatched on a new connection from the pool and the connection was closed after the query ran. I have analyzed the queries in the profiler

Sending JMS message to remote queue in JBoss AS via connection pool

与世无争的帅哥 提交于 2019-12-05 00:58:08
问题 I'm trying to send a JMS message from one JBoss AS 5.1 instance to the other. For my test I have them both running on localhost, the client JBoss AS instance with the normal port settings and the server JBoss AS with the setting where all ports are offset by 100. In an EAR project on the client, I've defined a JMS provider loader in a file called jmstest-service.xml in the root of my EAR with the following content: jmstest-service.xml: <mbean code="org.jboss.jms.jndi.JMSProviderLoader" name=

Using HikariCP's connection pool the correct way

淺唱寂寞╮ 提交于 2019-12-05 00:30:25
问题 I been trying to develop a Minecraft server plugin where a player enters a command with some data, data is sent to database, or, a command that requests some data from database. It's working, until a user starts using it more then a few times. I get a leakdetection error: [HikariPool-2 housekeeper] WARN com.zaxxer.hikari.pool.ProxyLeakTask - Connection leak detection triggered for com.mysql.jdbc.JDBC4Connection@abc6eb, stack trace follows [23:36:11 WARN]: java.lang.Exception: Apparent

To close or not to close an Oracle Connection?

自作多情 提交于 2019-12-04 23:52:39
问题 My application have performance issues, so i started to investigate this from the root: "The connection with the database". The best practices says: "Open a connection, use it and close is as soon as possible", but i dont know the overhead that this causes, so the question is: 1 -"Open, Use, Close connections as soon as possible is the best aproach using ODP.NET?" 2 - Is there a way and how to use connection pooling with ODP.NET? I thinking about to create a List to store some connections

Multi-tenancy: Individual database per tenant

雨燕双飞 提交于 2019-12-04 20:55:31
问题 We are developing a multi-tenant application. With respect to architecture, we have designed shared middle tier for business logic and one database per tenant for data persistence. Saying that, business tier will establish set of connections (connection pool) with the database server per tenant. That means application maintain separate connection-pool for each tenant. If we expect around 5000 tenants, then this solution needs high resource utilization (connections between app server and

LISTEN/NOTIFY pgconnection goes down java?

徘徊边缘 提交于 2019-12-04 20:38:09
问题 I am using PostgreSQL DB and applying it's LISTEN/NOTIFY functionality. So my listener is at my AS (Application Server) and I have triggers configured on my DB such that when CRUD operations are performed on a table a NOTIFY request is sent on AS. LISTENER class in java: @Singleton @Startup NotificationListenerInterface.class) public class NotificationListener extends Thread implements NotificationListenerInterface { @Resource(mappedName="java:/RESOURCES") private DataSource ds;

Basicdatasource connection time out problem (using mysql)

社会主义新天地 提交于 2019-12-04 20:36:28
I am using BasicDatasource in my application. This application is processing huge amount of raw data. Sometimes 1 query can take more than 15 minutes. (using mysql as db) Here is my question, I acquire a connection from pool, then execute several queries on it. But when I use the same connection more than 15 minutes, I get the error below. In the mysql server max_wait is set to 180 hours so it shouldn t be a problem to keep the connection alive and no firewall rule set to kill connections that are alive more than a certain amount of time. What am I missing here do you think ? The last packet