You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Bernd Fondermann (JIRA)" <ji...@apache.org> on 2012/09/29 23:08:08 UTC

[jira] [Created] (VYSPER-328) One CPU goes to 100%

Bernd Fondermann created VYSPER-328:
---------------------------------------

             Summary: One CPU goes to 100% 
                 Key: VYSPER-328
                 URL: https://issues.apache.org/jira/browse/VYSPER-328
             Project: VYSPER
          Issue Type: Bug
          Components: BOSH
    Affects Versions: 0.7
            Reporter: Bernd Fondermann
            Assignee: Bernd Fondermann


When running Vysper, suddenly a thread consumes 100% CPU, while the chat application stays responsive. A profiler reports nearly 99% CPU time consumed in org.apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext#requestExpired.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (VYSPER-328) Infinite loop in requestExpired()

Posted by "Bernd Fondermann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VYSPER-328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bernd Fondermann updated VYSPER-328:
------------------------------------

    Summary: Infinite loop in requestExpired()  (was: One CPU goes to 100% )
    
> Infinite loop in requestExpired()
> ---------------------------------
>
>                 Key: VYSPER-328
>                 URL: https://issues.apache.org/jira/browse/VYSPER-328
>             Project: VYSPER
>          Issue Type: Bug
>          Components: BOSH
>    Affects Versions: 0.7
>            Reporter: Bernd Fondermann
>            Assignee: Bernd Fondermann
>
> When running Vysper, suddenly a thread consumes 100% CPU, while the chat application stays responsive. A profiler reports nearly 99% CPU time consumed in org.apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext#requestExpired.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (VYSPER-328) One CPU goes to 100%

Posted by "Bernd Fondermann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VYSPER-328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466436#comment-13466436 ] 

Bernd Fondermann commented on VYSPER-328:
-----------------------------------------

This is probably due to a infinite loop in BoshBackedSessionContext between 
a. private void requestExpired(final AsyncContext context)
and 
b. void writeBoshResponse(Stanza responseStanza)
a. calls b. in a while loop, but only if the request window still contains requests.
b. then returns immediately (if (isEmtpyResponse) return;), resulting in an endless loop
                
> One CPU goes to 100% 
> ---------------------
>
>                 Key: VYSPER-328
>                 URL: https://issues.apache.org/jira/browse/VYSPER-328
>             Project: VYSPER
>          Issue Type: Bug
>          Components: BOSH
>    Affects Versions: 0.7
>            Reporter: Bernd Fondermann
>            Assignee: Bernd Fondermann
>
> When running Vysper, suddenly a thread consumes 100% CPU, while the chat application stays responsive. A profiler reports nearly 99% CPU time consumed in org.apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext#requestExpired.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (VYSPER-328) Infinite loop in requestExpired()

Posted by "Bernd Fondermann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VYSPER-328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13482227#comment-13482227 ] 

Bernd Fondermann commented on VYSPER-328:
-----------------------------------------

VYSPER-330 fixes the highestContinuousRequest setting in requestWindow. As a consequence, the endless loop should no longer be able to happen.
                
> Infinite loop in requestExpired()
> ---------------------------------
>
>                 Key: VYSPER-328
>                 URL: https://issues.apache.org/jira/browse/VYSPER-328
>             Project: VYSPER
>          Issue Type: Bug
>          Components: BOSH
>    Affects Versions: 0.7
>            Reporter: Bernd Fondermann
>            Assignee: Bernd Fondermann
>
> When running Vysper, suddenly a thread consumes 100% CPU, while the chat application stays responsive. A profiler reports nearly 99% CPU time consumed in org.apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext#requestExpired.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Work started] (VYSPER-328) Infinite loop in requestExpired()

Posted by "Bernd Fondermann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VYSPER-328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on VYSPER-328 started by Bernd Fondermann.

> Infinite loop in requestExpired()
> ---------------------------------
>
>                 Key: VYSPER-328
>                 URL: https://issues.apache.org/jira/browse/VYSPER-328
>             Project: VYSPER
>          Issue Type: Bug
>          Components: BOSH
>    Affects Versions: 0.7
>            Reporter: Bernd Fondermann
>            Assignee: Bernd Fondermann
>             Fix For: 0.8
>
>
> When running Vysper, suddenly a thread consumes 100% CPU, while the chat application stays responsive. A profiler reports nearly 99% CPU time consumed in org.apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext#requestExpired.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (VYSPER-328) Infinite loop in requestExpired()

Posted by "Bernd Fondermann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VYSPER-328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bernd Fondermann resolved VYSPER-328.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.8
    
> Infinite loop in requestExpired()
> ---------------------------------
>
>                 Key: VYSPER-328
>                 URL: https://issues.apache.org/jira/browse/VYSPER-328
>             Project: VYSPER
>          Issue Type: Bug
>          Components: BOSH
>    Affects Versions: 0.7
>            Reporter: Bernd Fondermann
>            Assignee: Bernd Fondermann
>             Fix For: 0.8
>
>
> When running Vysper, suddenly a thread consumes 100% CPU, while the chat application stays responsive. A profiler reports nearly 99% CPU time consumed in org.apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext#requestExpired.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira