[
https://issues.apache.org/jira/browse/CLOUDSTACK-9348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15272732#comment-15272732
]
ASF GitHub Bot commented on CLOUDSTACK-9348:
--------------------------------------------
Github user swill commented on the pull request:
https://github.com/apache/cloudstack/pull/1493#issuecomment-217227191
In my lasts run, not a single test passed in the time frame something is
wrong. Previously it was failing on 4/5, but this time it timed out without a
single test passing of the 5...
```
2016-05-05 19:46:17,659 DEBUG [utils.testcase.NioTest] (Time-limited test:)
0/5 tests done. Waiting for completion
2016-05-05 19:46:18,660 DEBUG [utils.testcase.NioTest] (Time-limited test:)
0/5 tests done. Waiting for completion
2016-05-05 19:46:19,660 DEBUG [utils.testcase.NioTest] (Time-limited test:)
0/5 tests done. Waiting for completion
2016-05-05 19:46:20,367 INFO [utils.testcase.NioTest] (main:) Clients
stopped.
2016-05-05 19:46:20,367 INFO [utils.testcase.NioTest] (main:) Server
stopped.
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 300.095 sec
<<< FAILURE! - in com.cloud.utils.testcase.NioTest
testConnection(com.cloud.utils.testcase.NioTest) Time elapsed: 300.095 sec
<<< ERROR!
org.junit.runners.model.TestTimedOutException: test timed out after 300000
milliseconds
at java.lang.Thread.sleep(Native Method)
at com.cloud.utils.testcase.NioTest.testConnection(NioTest.java:146)
```
> CloudStack Server degrades when a lot of connections on port 8250
> -----------------------------------------------------------------
>
> Key: CLOUDSTACK-9348
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9348
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Reporter: Rohit Yadav
> Assignee: Rohit Yadav
> Fix For: 4.9.0
>
>
> An intermittent issue was found with a large CloudStack deployment, where
> servers could not keep agents connected on port 8250.
> All connections are handled by accept() in NioConnection:
> https://github.com/apache/cloudstack/blob/master/utils/src/main/java/com/cloud/utils/nio/NioConnection.java#L125
> A new connection is handled by accept() which does blocking SSL handshake. A
> good fix would be to make this non-blocking and handle expensive tasks in
> separate threads/pool. This way the main IO loop won't be blocked and can
> continue to serve other agents/clients.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)