Вопрос

Im having an amazon ec2 instance which has a database connection of maximum 35 connections.I have been running a web application,which was working fine.I was testing codeignitor with tank auth to see how it works.But it made my database inaccessible with too many connections.Tank auth is ussing session to be stored in the database.Is that making too many connections to the database ? Why is this happening.

Это было полезно?

Решение

It might not necessarily be because of tank_auth -- it might just be because you are using the db (in other words, this issue might have popped by adding any db functionality at all).

Try setting $db['default']['pconnect'] = FALSE; in the database config. This should explicitly drop the db connection after the page loads.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top