This commit is contained in:
@@ -169,7 +169,7 @@ public abstract class MessageAgent {
|
|||||||
if (this.sncpProducer == null) {
|
if (this.sncpProducer == null) {
|
||||||
synchronized (sncpProducerLock) {
|
synchronized (sncpProducerLock) {
|
||||||
if (this.sncpProducer == null) {
|
if (this.sncpProducer == null) {
|
||||||
MessageProducer[] producers = new MessageProducer[Runtime.getRuntime().availableProcessors()];
|
MessageProducer[] producers = new MessageProducer[2];
|
||||||
for (int i = 0; i < producers.length; i++) {
|
for (int i = 0; i < producers.length; i++) {
|
||||||
MessageProducer producer = createProducer("SncpProducer");
|
MessageProducer producer = createProducer("SncpProducer");
|
||||||
producer.startup().join();
|
producer.startup().join();
|
||||||
@@ -186,7 +186,7 @@ public abstract class MessageAgent {
|
|||||||
if (this.httpProducer == null) {
|
if (this.httpProducer == null) {
|
||||||
synchronized (httpProducerLock) {
|
synchronized (httpProducerLock) {
|
||||||
if (this.httpProducer == null) {
|
if (this.httpProducer == null) {
|
||||||
MessageProducer[] producers = new MessageProducer[Runtime.getRuntime().availableProcessors()];
|
MessageProducer[] producers = new MessageProducer[2];
|
||||||
for (int i = 0; i < producers.length; i++) {
|
for (int i = 0; i < producers.length; i++) {
|
||||||
MessageProducer producer = createProducer("HttpProducer");
|
MessageProducer producer = createProducer("HttpProducer");
|
||||||
producer.startup().join();
|
producer.startup().join();
|
||||||
|
|||||||
Reference in New Issue
Block a user