[
https://issues.apache.org/jira/browse/ARTEMIS-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15922939#comment-15922939
]
Michael Andre Pearce (IG) commented on ARTEMIS-994:
---------------------------------------------------
I'm not in work this week, so dont have access to full server test rig. But
doing very basic tests using the broker in non persistent mode and using cli
produce/consumer tools (running both sets 10 times and taking the last run)
These are the early results i see simply by switching to epoll, on the same
machine.
NIO:
<acceptor
name="artemis">tcp://0.0.0.0:61616?useEpoll=false;tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;protocols=CORE,AMQP,STOMP,HORNETQ,MQTT,OPENWIRE</acceptor>
./artemis consumer --message-count 100000
--url=tcp://localhost:61616?useEpoll=false > consumer.log &
./artemis producer --message-count 100000
--url=tcp://localhost:61616?useEpoll=false
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
details.
20:54:20,300 INFO
[org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnector] Connector
using nio
20:54:20,430 INFO
[org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnector] Connector
using nio
Producer ActiveMQQueue[TEST], thread=0 Started to calculate elapsed time ...
Producer ActiveMQQueue[TEST], thread=0 Produced: 100000 messages
Producer ActiveMQQueue[TEST], thread=0 Elapsed time in second : 5 s
Producer ActiveMQQueue[TEST], thread=0 Elapsed time in milli second : 5838
milli seconds
EPOLL:
<acceptor
name="artemis">tcp://0.0.0.0:61616?useEpoll=true;tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;protocols=CORE,AMQP,STOMP,HORNETQ,MQTT,OPENWIRE</acceptor>
./artemis consumer --message-count 100000
--url=tcp://localhost:61616?useEpoll=false > consumer.log &
./artemis producer --message-count 100000
--url=tcp://localhost:61616?useEpoll=true
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
details.
20:59:43,779 INFO
[org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnector] Connector
using native epoll
20:59:43,897 INFO
[org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnector] Connector
using native epoll
Producer ActiveMQQueue[TEST], thread=0 Started to calculate elapsed time ...
Producer ActiveMQQueue[TEST], thread=0 Produced: 100000 messages
Producer ActiveMQQueue[TEST], thread=0 Elapsed time in second : 5 s
Producer ActiveMQQueue[TEST], thread=0 Elapsed time in milli second : 5225
milli seconds
> Support Netty Native Epoll on Linux
> -----------------------------------
>
> Key: ARTEMIS-994
> URL: https://issues.apache.org/jira/browse/ARTEMIS-994
> Project: ActiveMQ Artemis
> Issue Type: New Feature
> Components: Broker
> Affects Versions: 1.5.3, 2.0.0
> Reporter: Michael Andre Pearce (IG)
>
> Netty has support for native epoll, this is available only on linux systems.
> This is more performant.
> http://netty.io/wiki/native-transports.html
> This is inline with supporting asyncio with libaio using such native feature
> to bring perfomance benefits to artemis.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)