hi all,
     when my AMQ uses tcp protocol, I find the transmission is very fast and
Q is not pending. but when I use http/https instead of tcp, Q will be
slower, if I send 1 ObjectMsg every 3s, Q will be pending. if I send 1
ObjectMsg every 2s, Q will dead.
     I do not know the root cause. I guess that the cause is from jetty. pls
help me.

following is my code:
BrokerService brokerService = new BrokerService();
TransportConnector connector = new TransportConnector();
connector.setUri(new
URI("http://0.0.0.0:8015?maximumConnections=1000&wireFormat.maxFrameSize=104857600
"));
brokerService.addConnector(connector);
brokerService.setPersistent(false);     
SystemUsage systemUsage = new SystemUsage();
MemoryUsage memoryUsage = new MemoryUsage();
memoryUsage.setLimit(20 * 1024 * 1024); 
systemUsage.setMemoryUsage(memoryUsage);
brokerService.setSystemUsage(systemUsage);
brokerService.setUseJmx(true);
ManagementContext context = new ManagementContext();
context.setCreateConnector(true);
brokerService.setManagementContext(context);
brokerService.start();
-------------------------------------------------------------
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory("neo",
"neo",
"failover:(http://localhost:8015)?maxReconnectDelay=10000&timeout=30000");
connection = factory.createConnection();
connection.start();



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/AMQ-uses-http-protocol-will-become-slow-tp4704905.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to