Defect #11828


Deadlock when accessing wiki pages

Added by Vincent Mathon over 11 years ago. Updated about 11 years ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:
Wont fix
Affected version:


Redmine 2.0.3
jRuby 1.6.7, rails 3.2.6
gem 1.8.24
Tomcat 6.0.29
java 1.6.0_31 (HotSpot) 64-bit under Linux CentOS release 5.5 (Final)

I have built the war file from sources with Warbler 1.3.6 and we don't use specific JVM args for jRuby.

When two or more users access the same wiki page, http threads become (dead) locked. When all ruby runtimes are locked, Redmine, does not respond any more. The problem is not systematic but frequent and quite easy to reproduce. It seems that wiki pages containing images are more likely to produce the bug. This is a blocking bug since we must restart TOMCAT several times per day.

I have recorded thread dumps to provide you some insights. I am not a ruby developer so I cannot easily interpret them. I have sent also you our web.xml file. We are using org.jruby.rack.RackServlet instead of the filter otherwise we cannot use Redmine integration with Eclipse MyLyn.

Note that everything is OK with Redmine 1.4.4. I have also upgraded to jRuby 1.7.0.preview2 => redmine 2.0.3 still have the problem and Redmine 1.4.4 is still OK.



threaddump-1347357628088.tdump (101 KB) threaddump-1347357628088.tdump Vincent Mathon, 2012-09-13 11:46
threaddump-1347358474330.tdump (87.8 KB) threaddump-1347358474330.tdump Vincent Mathon, 2012-09-13 11:46
web.xml (979 Bytes) web.xml Vincent Mathon, 2012-09-13 11:46
threaddump-1352213293849.tdump (187 KB) threaddump-1352213293849.tdump Vincent Mathon, 2012-11-06 16:08
Actions #1

Updated by Vincent Mathon over 11 years ago

Same with the following stack (redmine becomes useless after 15 minutes since all workers are locked):
Redmine 2.1.2
jRuby 1.6.7, rails 3.2.8
gem 1.8.24
Tomcat 7.0.32
java 1.7.0_09 (HotSpot) 32-bit under Windows 7

I do the following tasks for building the war:
- gem install bundler
- gem install warbler
- jRuby - S bundle install --without development test
- rake generate_secret_token
- warble config
- warble

One can see this in TOMCAT logs:

INFO: INFO: could not acquire application permit within 10.0 seconds (try increasing the pool size)
nov. 06, 2012 3:43:12 PM org.apache.catalina.core.ApplicationContext log
SEVERE: ERROR: application error
org.jruby.rack.AcquireTimeoutException: could not acquire application permit within 10.0 seconds
    at org.jruby.rack.PoolingRackApplicationFactory.acquireApplicationPermit(
    at org.jruby.rack.PoolingRackApplicationFactory.getApplication(
    at org.jruby.rack.DefaultRackDispatcher.getApplication(
    at org.jruby.rack.AbstractRackDispatcher.process(
    at org.jruby.rack.AbstractServlet.service(
    at org.jruby.rack.AbstractServlet.service(
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(
    at org.apache.catalina.core.StandardWrapperValve.invoke(
    at org.apache.catalina.core.StandardContextValve.invoke(
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
    at org.apache.catalina.core.StandardHostValve.invoke(
    at org.apache.catalina.valves.ErrorReportValve.invoke(
    at org.apache.catalina.valves.AccessLogValve.invoke(
    at org.apache.catalina.core.StandardEngineValve.invoke(
    at org.apache.catalina.connector.CoyoteAdapter.service(
    at org.apache.coyote.http11.AbstractHttp11Processor.process(
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$ Source)
    at Source)

Vincent MATHON

Actions #2

Updated by Vincent Mathon about 11 years ago

  • Status changed from New to Resolved

Problem solved with Redmine 2.2.2 + JRuby 1.7.2 + TOMCAT 7.0.35

Actions #3

Updated by Etienne Massip about 11 years ago

  • Status changed from Resolved to Closed
  • Resolution set to Wont fix

Nice, thanks for the update.


Also available in: Atom PDF