Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception - com.ibm.as400.access.ConnectionPoolException: Maximum configured number of connections has been reached. #19

Open
safuanmansor opened this issue Jul 29, 2021 · 1 comment

Comments

@safuanmansor
Copy link

safuanmansor commented Jul 29, 2021

Hi ,

Is there any way we can tune the max connection poll value from 100 to 200 maybe?

The error keep coming multple times a day and gone by it self yet it enough to annoy the engineering team. While on other system it only show 3 to 4 rows of connection.

image

if (pool == null) {
AS400JDBCConnectionPoolDataSource dataSource = new AS400JDBCConnectionPoolDataSource(system, userID, password);
dataSource.setSecure(true);
dataSource.setSocketTimeout(120000);////(60000 millisec == 1 min)- required when pool is trying to connect to a system that was shutdown after pool was opened.. in that case without timeout connection will hang
dataSource.setThreadUsed(false);
pool = new AS400JDBCConnectionPool(dataSource);
pool.setMaxConnections(100);
SecureJDBCPool.put(system, pool);

Thanks.

@fcuerno001
Copy link

Hi everyone, someone can resolved this issue i'm same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants