我试图在30秒的间隙内将13个线程的51MB数据发送到另一台机器。这意味着,每30秒,51 * 13 = 663Mb的数据将以突发方式发送到目标计算机。
<rabbit:listener-container connection-factory="connectionFactory" prefetch="10" >
<rabbit:listener ref="onMessageReceiverforMyTestQueue" queue- names="MyTestQueue" />
</rabbit:listener-container>
<bean id = "onMessageReceiverforLoadTestQueue" class="MyPackage.MyMessageListener">
</bean>
class="org.springframework.amqp.rabbit.connection.CachingConnectionFactory">
<constructor-arg value="***.**.**.**"/>
<property name="username" value="abcd"/>
<property name="password" value="abcd"/>
<property name="channelCacheSize" value="50"/>