Forum: JRuby Re: Re: Rails Multithreading On the Wiki

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3a4ecaf99c9189e75bff01d8334ca370?d=identicon&s=25 Jay McGaffigan (Guest)
on 2009-04-22 17:05
(Received via mailing list)
<html><head>

<link media="all" type="text/css"
href="/webmail/static/deg/css/wysiwyg-3933289048.css" rel="stylesheet">
</head><body>
I like it.<br><br>Do you have any more info on the Concurrency
issues?&nbsp; I have a pretty good debugging setup going here and I'm
about to upgrade to rails 2.2.2.<br><br>I can try to help track em down
if you can provide me with more intel. (or a
link)<br><br>Jay<br><br><br>Apr 22, 2009 01:22:48 AM, <a
href="mailto:user@jruby.codehaus.org" class="parsedEmail"
target="_blank">user@jruby.codehaus.org</a> wrote:<br><blockquote
style="border-left: 3px solid rgb(102, 153, 204);">AD wrote:<br>&gt;
Just wanted to let everyone know I created a new section on the
WIKI<br>&gt; for rails mult-threading best practices.  We have been
getting hit<br>&gt; with a few issues and as this is one of the key
benefits of<br>&gt; Jruby/Rails 2.2+ I thought it would be good to
consolidate<br>&gt; issues/recommendations/etc on the Wiki.  Would
definitely appreciate<br>&gt; any feedback/recommendations that people
have on this subject.<br>&gt; <br>&gt; I know one of the key things we
are toying with now is how many<br>&gt; "MaxThreads" to set in Tomcat as
well as looking for major gotchas in<br>&gt; the controller code that
can cause these Concurrency errors we have<br>&gt; been seeing.<br>&gt;
<br>&gt;  <a
href="http://kenai.com/projects/jruby/pages/RailsMulti-T...
class="parsedLink"
target="_blank">http://kenai.com/projects/jruby/pages/RailsMulti-T...
great! I'll review it and try to add anything I think is missing
<br>later today. Thank you for creating this!<br><br>-
Charlie<br><br>---------------------------------------------------------------------<br>To
unsubscribe from this list, please visit:<br><br>    <a
href="http://xircles.codehaus.org/manage_email" class="parsedLink"
target="_blank">http://xircles.codehaus.org/manage_email</a><br><b...

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
F15fdc7cb2e911b3808837f2be244add?d=identicon&s=25 AD (Guest)
on 2009-04-22 19:52
(Received via mailing list)
Thanks Jay.  The trouble is it seems to happen really only under our
load tests, so not sure what is happening there.  When it does happen
we get the "InvalidCacheDescendants" error but no real backtrace in
the code to help determine the root of the problem.

Would you mind sharing some of your debugging techniques?  We are
about to modify the exception_notifier plugin gem to provide some more
debugging output.

I wish i can give you a URL directly but the site is pretty secured
right now unfortunately.  I will certainly post information as I
discover it.

Adam

On Wed, Apr 22, 2009 at 11:04 AM, Jay McGaffigan
<hooligan495@verizon.net> wrote:
>
>> I know one of the key things we are toying with now is how many
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
> --------------------------------------------------------------------- To
> unsubscribe from this list, please visit:
> http://xircles.codehaus.org/manage_email

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
C10ea39c3fbe535ea1bf1d4eb4617900?d=identicon&s=25 Jay McGaffigan (Guest)
on 2009-04-23 02:04
(Received via mailing list)
no prob.  I am in the process of upgrading to rails 2.3.2 and jruby
1.2.  We also have our own heavy load tests.   So maybe I can
reproduce the issue you are seeing.  Are you using SSL?

Typically we use JConsole and YourKit And we run against glassfish and
tomcat to try and "see" differences.  Yourkit instruments into GF and
Tomcat and allows us to view thread information.  Sometimes it's hard
to read the info but sometimes we stumble upon resource leaks etc.
That's how we found the SSL session problems we were seeing.

Feel free to reach out even if you want to just talk shop.  Sometimes
talking about what you are doing with other sets of eyes/ears helps
spring new ideas.

Jay

On Wed, Apr 22, 2009 at 1:52 PM, AD <straightflush@gmail.com> wrote:
> right now unfortunately.  I will certainly post information as I
>>
>>> for rails mult-threading best practices. We have been getting hit
>>> http://kenai.com/projects/jruby/pages/RailsMulti-T...
>>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
F15fdc7cb2e911b3808837f2be244add?d=identicon&s=25 AD (Guest)
on 2009-04-23 03:30
(Received via mailing list)
Thanks Jay, our next step is to get deeper into JConsole during a load
test to see what is happening.  I am just not sure if we will be able
to get an accurate point in time snap of the thread that caused the
error, not to mention we have hundres of active threads, so not sure
if you have any recommendations on how to help track this down.

We are running Tomcat 5.5 and are looking to help address any code
that may not be threadsafe. We do use a lot of libraries so not sure
if there is something simple we should be doing like pre-loading all
the libraries or something.  We also have MaxThreads set to about 500
, not sure if this is set to high for a JRuby application (4GB Heap on
8GB RAM).  Our QA/Capacity team is just getting concerned that every
time we throw load we get massive amounts of these errors in the
Tomcat logs which is raising scaling concerns.

If you have any advice on how to help track the error down in the code
itself (right now we just get a very long backtrace of Jruby) I would
greatly appreciate it.  I'll definitely keep the list posted on my
findings....

Adam

On Wed, Apr 22, 2009 at 7:59 PM, Jay McGaffigan <hooligan495@gmail.com>
wrote:
> Feel free to reach out even if you want to just talk shop.  Sometimes
>>
>> On Wed, Apr 22, 2009 at 11:04 AM, Jay McGaffigan
>>>
>>>>
>>> - Charlie
>>
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
This topic is locked and can not be replied to.