You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Trustin Lee (JIRA)" <ji...@apache.org> on 2007/09/27 12:45:50 UTC

[jira] Resolved: (DIRMINA-442) high cpu load (50% cpu on dual core) with only one active connection

     [ https://issues.apache.org/jira/browse/DIRMINA-442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Trustin Lee resolved DIRMINA-442.
---------------------------------

    Resolution: Fixed
      Assignee: Trustin Lee

Please try again with the latest trunk build.  I made sure it's fixed.

> high cpu load (50% cpu on dual core) with only one active connection
> --------------------------------------------------------------------
>
>                 Key: DIRMINA-442
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-442
>             Project: MINA
>          Issue Type: Bug
>          Components: Transport
>         Environment: 1) Fresh mina built from trunk (revision 577654)
> 2) Windows XP SP2 (reproduced also on Win2k server)
> 3) java version "1.6.0_02"
> Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
> Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode, sharing)
>            Reporter: Dmitry V. Zemnitskiy
>            Assignee: Trustin Lee
>            Priority: Critical
>         Attachments: echo.hprof
>
>
> I've noticed that even single connection causes mina server to enter tight loop in 
> sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0
> This leads to immediately increase CPU load to 50% of my dual core cpu (Intel core duo)
> on win2k with 1cpu process consumes even more (70%-80% CPU)
> Reproduction is very simple:
> 1) checkout mina from trunk and build it using maven
> 2) run echo server:
> java -agentlib:hprof=cpu=samples,file=echo.hprof -classpath mina-core-2.0.0-M1-SNAPSHOT.jar;mina-example-2.0.0-M1-SNAPSHOT.jar;slf4j-api-1.4.3.jar;slf4j-log4j12-1.4.3.jar;log4j-1.2.14.jar    org.apache.mina.example.echoserver.Main
> 3) telnet localhost 8080
> 4) type one character in telnet window
> 5) CPU load immediately increased to 50%
> I'll attach hprof dump to this issue

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.