Scalability: JRuby suffers from Java Charset lock contention
------------------------------------------------------------
Key: JRUBY-4553
URL: http://jira.codehaus.org/browse/JRUBY-4553
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.4
Environment: java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode
Reporter: Xuân Baldauf
Fix For: JRuby 1.5
In a multi-threaded rails application (after fixing some other locking issues),
the problem described here
http://paul.vox.com/library/post/the-mysteries-of-java-character-set-performance.html
and here
http://halfbottle.blogspot.com/2009/07/charset-continued-i-wrote-about.html
appears and limits concurrency to about 400% on an 8-core machine.
These problems happen in at least 3 JRuby source code locations:
at org.jruby.javasupport.JavaUtil.coerceStringToType(JavaUtil.java:246)
at org.jruby.util.ByteList.toString(ByteList.java:645)
at org.jruby.util.ByteList.plain(ByteList.java:659)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email