You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Dmitry V. Zemnitskiy (JIRA)" <ji...@apache.org> on 2007/09/20 11:50:31 UTC
[jira] Created: (DIRMINA-442) high cpu load (50% cpu on dual core)
with only one active connection
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: Core
Affects Versions: 2.0.0-M1
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
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.
[jira] Updated: (DIRMINA-442) high cpu load (50% cpu on dual core)
with only one active connection
Posted by "Julien Vermillard (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRMINA-442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julien Vermillard updated DIRMINA-442:
--------------------------------------
Can you try with lastest trunk ? we messed some stuff in the IoProcessing.
> 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: Core
> Affects Versions: 2.0.0-M1
> 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
> 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.
[jira] Updated: (DIRMINA-442) high cpu load (50% cpu on dual core)
with only one active connection
Posted by "Dmitry V. Zemnitskiy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRMINA-442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dmitry V. Zemnitskiy updated DIRMINA-442:
-----------------------------------------
Attachment: echo.hprof
hprof dump of echo server
> 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: Core
> Affects Versions: 2.0.0-M1
> 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
> 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.
[jira] Commented: (DIRMINA-442) high cpu load (50% cpu on dual
core) with only one active connection
Posted by "Dmitry V. Zemnitskiy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRMINA-442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529262 ]
Dmitry V. Zemnitskiy commented on DIRMINA-442:
----------------------------------------------
Sorry, that was my mistake, I accidentally modified echoserver Main. When I reverted, build passed successfully.
Though, your changes did not help - the problem persists.
> 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: Core
> Affects Versions: 2.0.0-M1
> 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
> 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.
[jira] Commented: (DIRMINA-442) high cpu load (50% cpu on dual
core) with only one active connection
Posted by "Dmitry V. Zemnitskiy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRMINA-442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529048 ]
Dmitry V. Zemnitskiy commented on DIRMINA-442:
----------------------------------------------
few comments:
1) the problem is also reproduced on linux (ubuntu 7)
2) the problem is not reproduced with mina-core-2.0.0-M1-20070914.100524-62.jar
and correspondent examples from 14th of Sep - I did not try other snapshots between
14th and 18th to detect precisely what changes caused this error
> 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: Core
> Affects Versions: 2.0.0-M1
> 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
> 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.
[jira] Updated: (DIRMINA-442) high cpu load (50% cpu on dual core)
with only one active connection
Posted by "Julien Vermillard (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRMINA-442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julien Vermillard updated DIRMINA-442:
--------------------------------------
you tried a mvn clean ?
because I have test errors, but no compiling error
> 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: Core
> Affects Versions: 2.0.0-M1
> 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
> 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.
[jira] Updated: (DIRMINA-442) high cpu load (50% cpu on dual core)
with only one active connection
Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRMINA-442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Trustin Lee updated DIRMINA-442:
--------------------------------
Component/s: (was: Core)
Transport
Affects Version/s: (was: 2.0.0-M1)
> 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
> 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.
[jira] Commented: (DIRMINA-442) high cpu load (50% cpu on dual
core) with only one active connection
Posted by "Dmitry V. Zemnitskiy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRMINA-442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529096 ]
Dmitry V. Zemnitskiy commented on DIRMINA-442:
----------------------------------------------
Latest trunk even does not build properly due to recent renaming SSLFilter --> SslFilter
D:\Libraries\mina\example\src\main\java\org\apache\mina\example\echoserver\Main.java:[28,33] cannot find symbol
symbol : class SSLFilter
location: package org.apache.mina.filter.ssl
D:\Libraries\mina\example\src\main\java\org\apache\mina\example\echoserver\Main.java:[65,8] cannot find symbol
symbol : class SSLFilter
location: class org.apache.mina.example.echoserver.Main
D:\Libraries\mina\example\src\main\java\org\apache\mina\example\echoserver\Main.java:[65,34] cannot find symbol
symbol : class SSLFilter
location: class org.apache.mina.example.echoserver.Main
> 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: Core
> Affects Versions: 2.0.0-M1
> 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
> 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.
[jira] Closed: (DIRMINA-442) high cpu load (50% cpu on dual core)
with only one active connection
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRMINA-442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lecharny closed DIRMINA-442.
-------------------------------------
> 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.
[jira] Resolved: (DIRMINA-442) high cpu load (50% cpu on dual core)
with only one active connection
Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
[ 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.