Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Application Freeze occasionally(Application freeze with thread deadlocks)
Application Freeze occasionally [message #1102123] Thu, 05 September 2013 11:48 Go to next message
Ramesh Pank is currently offline Ramesh PankFriend
Messages: 1
Registered: September 2013
Junior Member
Hello,

This is related to a forum topic earlier - http://www.eclipse.org/forums/index.php/t/378202/
There has been no resolution to that and we also face the same issue now. From the thread locks below I notice a deadlock with the UIThread. There are no errors on the server logs. We use JBOSS EAP6 and RAP1.4. Anyone who faced the same issue or know of any actions that could help me identify the root cause is greatly appreciated.

Deadlock Detection:

Found one Java-level deadlock:
=============================

"Thread-5338":
waiting to lock Monitor@0x00007fcf3455e8d0 (Object@0x00000007b9840650, a java/lang/Object),
which is held by "UIThread [qOPWJHhgYk1JbITv-IKJoq+y]"
"UIThread [qOPWJHhgYk1JbITv-IKJoq+y]":
waiting to lock Monitor@0x00007fcf480016e0 (Object@0x00000007b988c380, a com/speedware/imodernize/rapclient/StatusThread),
which is held by "Thread-5338"

Found a total of 1 deadlock.

Thread 3169: (state = BLOCKED)
- sun.misc.Unsafe.park(boolean, long) @bci=0 (Compiled frame; information may be imprecise)
- java.util.concurrent.locks.LockSupport.parkNanos(java.lang.Object, long) @bci=20, line=196 (Interpreted frame)
- java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(java.util.concurrent.SynchronousQueue$TransferStack$SNode, boolean, long) @bci=174, line=424 (Compiled frame)
- java.util.concurrent.SynchronousQueue$TransferStack.transfer(java.lang.Object, boolean, long) @bci=102, line=323 (Interpreted frame)
- java.util.concurrent.SynchronousQueue.poll(long, java.util.concurrent.TimeUnit) @bci=11, line=874 (Interpreted frame)
- java.util.concurrent.ThreadPoolExecutor.getTask() @bci=62, line=955 (Compiled frame)
- java.util.concurrent.ThreadPoolExecutor$Worker.run() @bci=23, line=917 (Compiled frame)
- java.lang.Thread.run() @bci=11, line=662 (Interpreted frame)


Thread 25461: (state = BLOCKED)
- java.lang.Object.wait(long) @bci=0 (Interpreted frame)
- com.speedware.imodernize.rapclient.StatusThread.run() @bci=24, line=41 (Interpreted frame)
Re: Application Freeze occasionally [message #1103071 is a reply to message #1102123] Fri, 06 September 2013 10:54 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
I have no answer to your question, but what is this thread -
com/speedware/imodernize/rapclient/StatusThread?
Best,
Ivan

On 9/5/2013 6:06 PM, Ramesh Pank wrote:
> Hello,
>
> This is related to a forum topic earlier - http://www.eclipse.org/forums/index.php/t/378202/
> There has been no resolution to that and we also face the same issue now. From the thread locks below I notice a deadlock with the UIThread. There are no errors on the server logs. We use JBOSS EAP6 and RAP1.4. Anyone who faced the same issue or know of any actions that could help me identify the root cause is greatly appreciated.
>
> Deadlock Detection:
>
> Found one Java-level deadlock:
> =============================
>
> "Thread-5338":
> waiting to lock Monitor@0x00007fcf3455e8d0 (Object@0x00000007b9840650, a java/lang/Object),
> which is held by "UIThread [qOPWJHhgYk1JbITv-IKJoq+y]"
> "UIThread [qOPWJHhgYk1JbITv-IKJoq+y]":
> waiting to lock Monitor@0x00007fcf480016e0 (Object@0x00000007b988c380, a com/speedware/imodernize/rapclient/StatusThread),
> which is held by "Thread-5338"
>
> Found a total of 1 deadlock.
>
> Thread 3169: (state = BLOCKED)
> - sun.misc.Unsafe.park(boolean, long) @bci=0 (Compiled frame; information may be imprecise)
> - java.util.concurrent.locks.LockSupport.parkNanos(java.lang.Object, long) @bci=20, line=196 (Interpreted frame)
> - java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(java.util.concurrent.SynchronousQueue$TransferStack$SNode, boolean, long) @bci=174, line=424 (Compiled frame)
> - java.util.concurrent.SynchronousQueue$TransferStack.transfer(java.lang.Object, boolean, long) @bci=102, line=323 (Interpreted frame)
> - java.util.concurrent.SynchronousQueue.poll(long, java.util.concurrent.TimeUnit) @bci=11, line=874 (Interpreted frame)
> - java.util.concurrent.ThreadPoolExecutor.getTask() @bci=62, line=955 (Compiled frame)
> - java.util.concurrent.ThreadPoolExecutor$Worker.run() @bci=23, line=917 (Compiled frame)
> - java.lang.Thread.run() @bci=11, line=662 (Interpreted frame)
>
>
> Thread 25461: (state = BLOCKED)
> - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
> - com.speedware.imodernize.rapclient.StatusThread.run() @bci=24, line=41 (Interpreted frame)
>

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Application Freeze occasionally [message #1129099 is a reply to message #1102123] Tue, 08 October 2013 09:33 Go to previous messageGo to next message
Sebastian Kienzl is currently offline Sebastian KienzlFriend
Messages: 9
Registered: July 2012
Junior Member
Hello!

I have this long-standing problem, too.

There was an RAP-Update which changed the timeout/retransmit-handling which improved the situation, but it's still there.

To me it seems that it could be a problem at HTTP-level, because the problem occurs more often when I have the RAP-application behind a reverse proxy. I'm using Apache's mod_proxy, and the situation seems to improve if I turn the "flushpackets"-parameter (see http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass) on.

A thread-dump doesn't reveal anything special, at least to my eyes. It looks similar as in http://www.eclipse.org/forums/index.php/mv/msg/378202/918894/#msg_918894 .

I was always hoping it would "just go away" with some RAP-update and have never had the time to investigate deeper. On the other hand, I didn't really think that I was the only one having this problem.


Regards
Re: Application Freeze occasionally [message #1130211 is a reply to message #1129099] Wed, 09 October 2013 10:18 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Seb,
do you have a simple snippet to reliably reproduce the hang? Does it
happen with all borwsers - IE8-10, Chrome, Firefox, Opera?
Best,
Ivan

On 10/8/2013 12:33 PM, Seb L wrote:
> Hello!
>
> I have this long-standing problem, too.
>
> There was an RAP-Update which changed the timeout/retransmit-handling
> which improved the situation, but it's still there.
>
> To me it seems that it could be a problem at HTTP-level, because the
> problem occurs more often when I have the RAP-application behind a
> reverse proxy. I'm using Apache's mod_proxy, and the situation seems
> to improve if I turn the "flushpackets"-parameter (see
> http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass) on.
>
> A thread-dump doesn't reveal anything special, at least to my eyes. It
> looks similar as in
> http://www.eclipse.org/forums/index.php/mv/msg/378202/918894/#msg_918894
> .
>
> I was always hoping it would "just go away" with some RAP-update and
> have never had the time to investigate deeper. On the other hand, I
> didn't really think that I was the only one having this problem.
>
>
> Regards
>

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Application Freeze occasionally [message #1132929 is a reply to message #1130211] Fri, 11 October 2013 13:40 Go to previous message
Sebastian Kienzl is currently offline Sebastian KienzlFriend
Messages: 9
Registered: July 2012
Junior Member
Hi Ivan!

Unfortunately I don't. It's hard to reproduce and occurs very sporadically. Happens in Safari and FF. Of course I can't rule out that it's a problem with our code.

When I know more, I'll let you know.

Thanks

[Updated on: Fri, 11 October 2013 13:45]

Report message to a moderator

Previous Topic:Label textsize
Next Topic:Using Preferences in RAP
Goto Forum:
  


Current Time: Thu Apr 18 07:54:15 GMT 2024

Powered by FUDForum. Page generated in 0.02216 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top