You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:>jruby -v
jruby 9.1.16.0 (2.3.3) 2018-02-21 8f3f95a OpenJDK 64-Bit Server VM 24.95-b01 on 1.7.0_95-b00 +jit [linux-x86_64]
:>cat ~/.jruby_opts
#Following source will load ruby manager and other envs of shells like RAILS_ENVexport JRUBY_OPTS="--server -J-Xms2048m -J-Xmx2048m -J-XX:+UseConcMarkSweepGC -J-XX:-UseGCOverheadLimit -J-XX:+CMSClassUnloadingEnabled -J-XX:+HeapDumpOnOutOfMemoryError -J-XX:HeapDumpPath=/home/anon/debug/heap_dump"
:>uname -a
Linux app1 4.4.0-101-generic #124-Ubuntu SMP Fri Nov 10 18:29:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
:>lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
We have Rails 5.0.2 framework with following gems activated.
Gemfile
source'https://rubygems.org'gem'rails'ruby'2.3.3',engine: :jruby,engine_version: '9.1.16.0'ifRUBY_PLATFORM.eql?('java')gem'active_model_serializers'gem'activerecord'gem'json-schema'# RabbitMQ adaptergem'hutch'# monitoringgem'honeybadger'gem'newrelic_rpm','~> 3.16','>= 3.16.1.320'gem'puma'gem'gcm'gem'google_drive'gem'redis'gem'sidekiq-pro','~> 3'gem'sidekiq-cron'gem'httparty'# this gem is required to fix issue of CORS while performing requestgem'rack-cors',require: 'rack/cors'# rfc-compliant replacement for URIgem'addressable'platform:jrubydogem'jdbc-postgres'gem'json'gem'march_hare'ifRUBY_PLATFORM.eql?('java')git_source(:github){ |repo_name| "https://github.com/#{repo_name}.git"}github'jruby/activerecord-jdbc-adapter',branch: 'rails-5'dogem'activerecord-jdbc-adapter'gem'activerecord-jdbcpostgresql-adapter'endendend
@kajisaap Probably! However I'm not sure exactly where to start looking for a solution. Could you try to test this against a master (development) build from http://ci.jruby.org and see if it still exists there?
Thanks, @headius. I know it could be in our dependency library but the error went away after putting concurrency settings to 1 ie. defeating the purpose of JRuby. We want to have concurrency settings back though :)
So, it's definitely the concurrency-born issue but we are not able to pinpoint whether it's the runtime causing it or dependent libraries(which in our case could be any of the 15+ gems). Do you have any suggestions to find non-thread safe code or libraries?
Lots of libraries involved with no clear reproduction or pointer that JRuby is at fault.
We can help folks investigate concurrency bugs in libraries they're using on JRuby, but without some example there's nothing to do here. If you'd still like help, find us on our chats or file a bug with a specific reproduction.
Environment
We have Rails 5.0.2 framework with following gems activated.
Gemfile
Current scenario
Nginx shows following in the logs
Corresponding to above 500 status, puma application server logs following
Is this a bug in JRuby?
The text was updated successfully, but these errors were encountered: