Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6838223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:34:16+00:00 2026-05-26T23:34:16+00:00

About every 3rd time my app serves a particular update action (two that I’ve

  • 0

About every 3rd time my app serves a particular update action (two that I’ve found so far), it bombs out with a “deadlock detected” error.

I haven’t been able to trace it to any of our own application code. It seems that the action completes, but then this crash happens as either Rails or Passenger is wrapping it up. (It doesn’t happen from just saving records in script/console.)

Here is what comes up in the logs when it happens: https://gist.github.com/1259104

What’s going on, and what do I do about it?

(note: have switched to RVM-based Ruby 1.9.2, and issue persists.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:34:16+00:00Added an answer on May 26, 2026 at 11:34 pm

    The issue appears to be this:

    https://rails.lighthouseapp.com/projects/8994/tickets/5736-connections-not-released-in-rails-3

    However, above issue only pertains to Rails 3. We are seeing it in Rails 2.3.14 under Ruby 1.9.2.

    The patch to connection_pool.rb given there works for us. That particular file appears to be identical between 2.3.14 and 3.1.0 beta so the patch is likewise the same. We had to patch the gem itself — doing it by loading the new file/class as part of the Rails app itself didn’t do the trick — but the behavior is the same for us as is being reported there — instead of deadlocking/running out of db connections, there’s a short delay. In conjunction with bumping up the pool size in the production db config in database.yml, this works pretty acceptably, though I do hope for an even better solution.

    & Thanks to Alex Caudill for finding this for us!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've gone through just about every property I can think of, but haven't found
BACKGROUND INFO: I need to update some data from the web, about every hour
I've tried just about every relative path that I can think of, and none
I am seeing a CALayerInvalid crash every time my App resumes but only one
Just about every piece of example code everywhere omits error handling (because it confuses
I use log4net in just about every code project. I was wondering what other
I'm strugging with getting an iPhone application which requires just about every push or
I'm new to development on the iPhone. Just about every sample project (as well
I have an Excel spreadsheet with 1 column, 700 rows. I care about every
Running a rails site right now using SQLite3. About once every 500 requests or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.