Skip to main content

[webtier] "Interrupting Idle Thread" error with RoR app using Glassfish v3 gem

3 replies [Last post]
Anonymous

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Mark Westling

I'm running my Rails project using the Glassfish v3 gem and if there's no
activity for an hour or two hours, the next request hangs and logs the
following error:

Nov 11, 2009 3:15:44 AM com.sun.grizzly.config.GrizzlyServiceListener
WARNING: Interrupting idle Thread: http80-WorkerThread(0)

I'm using the default parameters in the glassfish.yml configuration file.
This occurs in both daemon and non-daemon mode. The only unusual thing I
might be doing is creating (and closing) several processing threads during
some requests to take advantage of multiple cores for lengthy computations,
but the problem seems to occur even if I don't run any thread-creation
processes after a restart. In other words, I can restart glassfish, wait a
few hours with no requests, and see the same error.

Configuration:
jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-02 69fbfa3) (Java
HotSpot(TM) Client VM 1.6.0_18-ea) [i386-java]
rails 2.3.3
glassfish gem 0.9.5
database adapter: jdbcmysql
Linux version 2.6.18-164.el5PAE (mockbuild@x86-002.build.bos.redhat.com)
(gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP

Any suggestions?

--Mark
[att1.html]

Vivek Pandey

Mark,

Just looking at the warning message I can say what really might be going
on. Perhaps someone from grizzly team can comment on this particular issue.

In the meantime can you give the latest glassfish gem (not released yet)
a try? It will be released soon after more testing but it has latest
stable Grizzly and glassfish v3 kernel bits. I think its worth a try.
Get build#120 from http://hudson.glassfish.org/job/glassfish-gem-build/.

If the latest gem does not fix your problem, can you send the thread
dump? kill -QUIT pid or ctrl + \

-vivek.

Mark Westling wrote:
> I'm running my Rails project using the Glassfish v3 gem and if there's
> no activity for an hour or two hours, the next request hangs and logs
> the following error:
>
> Nov 11, 2009 3:15:44 AM com.sun.grizzly.config.GrizzlyServiceListener
> WARNING: Interrupting idle Thread: http80-WorkerThread(0)
>
> I'm using the default parameters in the glassfish.yml configuration
> file. This occurs in both daemon and non-daemon mode. The only
> unusual thing I might be doing is creating (and closing) several
> processing threads during some requests to take advantage of multiple
> cores for lengthy computations, but the problem seems to occur even if
> I don't run any thread-creation processes after a restart. In other
> words, I can restart glassfish, wait a few hours with no requests, and
> see the same error.
>
> Configuration:
> jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-02 69fbfa3) (Java
> HotSpot(TM) Client VM 1.6.0_18-ea) [i386-java]
> rails 2.3.3
> glassfish gem 0.9.5
> database adapter: jdbcmysql
> Linux version 2.6.18-164.el5PAE
> (mockbuild@x86-002.build.bos.redhat.com
> ) (gcc version 4.1.2
> 20080704 (Red Hat 4.1.2-46)) #1 SMP
>
> Any suggestions?
>
> --Mark
>

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net

pardeeb
Offline
Joined: 2005-01-20
Points: 0

Is this still an issue? It looks like I have the same problem. A request comes in, 900 seconds later I get the "Interrupting Idle Thread" message and about 35 seconds after that the request finally completes.

Glassfish gem 1.0.2
JRuby 1.5.1
Rails 2.3.2