Skip to content

Commit

Permalink
Set MAP stub logging level to WARN, increased concurrent MAP dialogs …
Browse files Browse the repository at this point in the history
…to 500 and log onDialogRelease for every 10k. Issue #86
  • Loading branch information
Fernando Mendioroz committed Sep 20, 2016
1 parent 72600c5 commit 2851d7a
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 13 deletions.
6 changes: 3 additions & 3 deletions test-suite/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
-->
<jvmarg value="-XX:+UseParallelOldGC"/>
<arg value="500000" /> <!-- number of Dialogs -->
<arg value="225" /> <!-- Concurrent Dialogs -->
<arg value="500" /> <!-- Concurrent Dialogs -->
<arg value="sctp" /> <!-- socket type -->
<arg value="127.0.0.1" /> <!-- Client IP -->
<arg value="2345" /> <!-- Client Port -->
Expand Down Expand Up @@ -190,8 +190,8 @@
<jvmarg value="-Dio.netty.leakDetection.level=advanced"/>
-->
<jvmarg value="-XX:+UseParallelOldGC"/>
<arg value="100" /> <!-- number of Dialogs -->
<arg value="5" /> <!-- Concurrent Dialogs -->
<arg value="10000" /> <!-- number of Dialogs -->
<arg value="100" /> <!-- Concurrent Dialogs -->
<arg value="sctp" /> <!-- socket type -->
<arg value="127.0.0.1" /> <!-- Client IP -->
<arg value="2345" /> <!-- Client Port -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -760,11 +760,11 @@ public void onDialogRelease(MAPDialog mapDialog) {
this.endCount++;

if (this.endCount < NDIALOGS) {
if ((this.endCount % 2000) == 0) {
if ((this.endCount % 10000) == 0) {
long current = System.currentTimeMillis();
float sec = (float) (current - prev) / 1000f;
prev = current;
logger.warn("Completed 2000 Dialogs, dlg per a sec: " + (float) (2000 / sec));
logger.warn("Completed 10000 Dialogs, dlg/sec: " + (float) (10000 / sec));
}
} else {
if (this.endCount == NDIALOGS) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -887,11 +887,11 @@ public void onDialogRelease(MAPDialog mapDialog) {

this.serverEndCount++;

if ((this.serverEndCount % 2000) == 0) {
if (((this.serverEndCount % 10000) == 0) && serverEndCount>1) {
long currentTime = System.currentTimeMillis();
long processingTime = currentTime - serverStart;
serverStart = currentTime;
logger.warn("Completed 2000 Dialogs in=" + processingTime);
logger.warn("Completed 10000 Dialogs in=" + processingTime + " ms. Dialogs per sec: "+ + (float) (10000000 / processingTime));
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -442,11 +442,11 @@ public void onDialogRelease(MAPDialog mapDialog) {

this.endCount++;

if ((this.endCount % 2000) == 0) {
if (((this.endCount % 10000) == 0) && endCount>1) {
long currentTime = System.currentTimeMillis();
long processingTime = currentTime - start;
start = currentTime;
logger.warn("Completed 2000 Dialogs in=" + processingTime);
logger.warn("Completed 10000 Dialogs in=" + processingTime + " ms. Dialogs per sec: "+ + (float) (10000000 / processingTime));
}

}
Expand Down Expand Up @@ -576,9 +576,11 @@ public void onAnyTimeInterrogationRequest(AnyTimeInterrogationRequest atiReq) {
if (logger.isDebugEnabled()) {
logger.debug(
String.format("onAnyTimeInterrogationRequest for DialogId=%d", atiReq.getMAPDialog().getLocalDialogId()));
} else {
} if (logger.isInfoEnabled()) {
logger.info(String.format("onAnyTimeInterrogationRequest for DialogId=%d", atiReq.getMAPDialog().getLocalDialogId()));
}
} /*else {
logger.warn(String.format("onAnyTimeInterrogationRequest for DialogId=%d", atiReq.getMAPDialog().getLocalDialogId()));
}*/

try {
long invokeId = atiReq.getInvokeId();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public abstract class TestHarness implements MAPDialogListener, MAPServiceMobili

protected static int NDIALOGS = 50000;

protected static int MAXCONCURRENTDIALOGS = 225;
protected static int MAXCONCURRENTDIALOGS = 500;

// MTPL3 Details
protected static int CLIENT_SPC = 1; // Client Signaling Point Code
Expand Down
2 changes: 1 addition & 1 deletion test-suite/src/main/resources/log4j.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Set root logger level to DEBUG and its only appender to A1.
log4j.rootLogger=INFO, A1, R
log4j.rootLogger=WARN, A1, R

# A1 is set to be a ConsoleAppender.
log4j.appender.A1=org.apache.log4j.ConsoleAppender
Expand Down

0 comments on commit 2851d7a

Please sign in to comment.