|
Hi, On 30/11/15 08:18, Alan Orth wrote:
I'm pretty sure there is something not right with regards to closing connections. I've long suspected that there is a bug in the db connection re-use logic somewhere but I haven't been able to find it. If you're seeing worse behaviour in DSpace 5.x -- do you have Google Analytics enabled? As mentioned by Andrea Bollini in a different conversation here on dspace-tech the other day, the Google Analytics download recording appears to be holding on to the db connection until it has successfully reported the download: https://jira.duraspace.org/browse/DS-2904 I recently disabled the GA downloads event listener and I see a small drop in db connections in our monitoring, though only by about 2 connections. We have db.maxconnections set to 30 but generally have more than 30 connections. I don't know whether the limit also covers connections opened by cron jobs. I see around 25 idle connections with db.maxidle set to 8 (around 27 idle connections before disabling the GA downloads listener). Though we did make some changes to the memory allocation and applied the patch for https://jira.duraspace.org/browse/DS-2832 at the same time, which appears to have had quite a big impact on garbage collection frequency+duration. So the changes in db connections may not be from disabling the event listener after all. cheers, Andrea -- Dr Andrea Schweer IRR Technical Specialist, ITS Information Systems The University of Waikato, Hamilton, New Zealand +64-7-837 9120 -- |
- [dspace-tech] Re: [Dspace-tech] Database Connection Timeout Alan Orth
- Re: [dspace-tech] Re: [Dspace-tech] Database Connectio... Andrea Schweer
- Re: [dspace-tech] Re: [Dspace-tech] Database Connectio... George Kozak
