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

Random hibernate exceptions giving me the 500 page #19

Closed
biddster opened this issue Nov 15, 2013 · 2 comments

Comments

Projects
None yet
2 participants
@biddster
Copy link

commented Nov 15, 2013

I've installed a monolithic Stash stack on a single Centos 6.4 x64 virtual machine.

I get the Oops 500 page appearing randomly and I'm pretty sure I'm bumping into this bug.

https://confluence.atlassian.com/display/STASHKB/Connection+Timeout+with+MySQL+Database

The Stash connection pool timeout (default is 10 mins) is greater than the mysql cookbook wait_timeout (default 3 mins).

I've updated my node attributes to this:

node['mysql']['tunable']['wait_timeout']         = '720'

Now Stash reaps connections before mysql has the chance and the errors haven't reappeared for the last 24 hours.

Should we include a setting in stash-config.properties for db.pool.idle.testInterval so that we can override the stash default and default it to node['mysql']['tunable']['wait_timeout'] or 120 seconds where mysql isn't on the box?

@ghost ghost assigned bflad Nov 16, 2013

@bflad

This comment has been minimized.

Copy link
Owner

commented Nov 16, 2013

Interesting. I hadn't run into this behavior yet. I'll be able to look into this more tomorrow

@bflad

This comment has been minimized.

Copy link
Owner

commented Nov 18, 2013

This is a great find! Having long running idle connections seems generally undesirable. I'm opting for lowering the default Stash database pool idle test interval down to 2 minutes (from 10). This issue will be closed by my next commit and 3.1.2 release.

@bflad bflad closed this in 13e471e Nov 18, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.