Professional Documents
Culture Documents
Tuning Mobicents Note PDF
Tuning Mobicents Note PDF
Contents
1. Tuning Sip Servlet ............................................................................................................. 2
2. Tuning Media Server ......................................................................................................... 3
3. Tuning network ................................................................................................................. 5
4. Tuning java ....................................................................................................................... 5
5. Load-Test.......................................................................................................................... 6
5.1. Test1: ......................................................................................................................... 6
5.2. Test2 .......................................................................................................................... 7
mss-sip-stack.properties:
Thm cc tham s cho SIP-STACK (nhn x l bn tin SIP)
root@ubuntu:~/Mobicents/mss-2.0.0.FINAL-jboss-as-7.1.2.Final/standalone/configuration# cat
mss-sip-stack.properties
gov.nist.javax.sip.REENTRANT_LISTENER=true
# prevent DOS attacks
gov.nist.javax.sip.MAX_LISTENER_RESPONSE_TIME=120
gov.nist.javax.sip.MAX_MESSAGE_SIZE=10000
# setting up the buffer size to reduce retransmissions and avoid loosing messages
gov.nist.javax.sip.RECEIVE_UDP_BUFFER_SIZE=65536
gov.nist.javax.sip.SEND_UDP_BUFFER_SIZE=65536
gov.nist.javax.sip.AGGRESSIVE_CLEANUP=true
gov.nist.javax.sip.MAX_FORK_TIME_SECONDS=0
# set to true so that the stack do more validation on dialog,
# but won't work on chained applications so false by default
gov.nist.javax.sip.AUTOMATIC_DIALOG_ERROR_HANDLING=false
JAVA_OPTS="-Dprogram.name=$PROGNAME $JAVA_OPTS"
#Thm dng ny
JAVA_OPTS="$JAVA_OPTS -Xms2048m -Xmx2048m -Dsun.rmi.dgc.client.gcInterval=3600000 Dsun.rmi.dgc.server.gcInterval=3600000"
server-beans.xml
[root@node2 deploy]# pwd
/root/Mobicents/media-server/mobicents-media-server-1/mms-server/deploy
[root@node2 deploy]# vi server-beans.xml
3. Tuning network
Resolv.conf
[root@node2 etc]# pwd
/etc
[root@node2 etc]# vi resolv.conf
4. Tuning java
Khuyn ngh dng bn java c h tr Hotspot (khng ci bng yum hoc apt-get)
[root@node2 etc]# java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
5. Load-Test
S dng SIPP
5.1. Test1:
./sipp -sf uac_pcap.xml 192.168.1.206:5080 -r 20 -t tn -recv_timeout 10000
-sf uac_pcap.xml : file cu hnh kch bn cuc gi (gi cuc gi trong 30s)
-r 20 : 20 cuc gi trn mt giy
-t tn: mi cuc gi to mi mt tcp-socket (trnh b nghn retrains)
-recv_timeout 10000 : timeout 10s cho cc response nhn v (nu khng nhn dc response
trong vng 10s th hu connection )
Kt qu:
------------------------------ Scenario Screen -------- [1-9]: Change Screen -Call-rate(length)
Port
Total-time
Total-calls
20.0(0 ms)/1.000s
5061
2334.60 s
46692
Remote-host
192.168.1.37:5080(TCP)
0 ms scheduler resolution
Messages
Retrans
Timeout
46691
100 <----------
180 <----------
46359
200 <----------
E-RTD1 46358
ACK ---------->
46358
INVITE ---------->
Unexpected-Msg
Pause [
29.0s]
46358
Pause [
1000ms]
45858
BYE ---------->
45819
200 <----------
45068
603
5.2. Test2
./sipp -sf uac_pcap.xml 192.168.1.206:5080 -r 10 -t tn -recv_timeout 10000
Kt qu:
------------------------------ Scenario Screen -------- [1-9]: Change Screen -Call-rate(length)
Port
Total-time
Total-calls
10.0(0 ms)/1.000s
5060
6323.45 s
63234
Remote-host
192.168.1.206:5080(TCP)
0 ms scheduler resolution
Messages
Retrans
Timeout
63234
100 <----------
538
180 <----------
62665
200 <----------
E-RTD1 62665
ACK ---------->
62665
INVITE ---------->
Unexpected-Msg
Pause [
29.0s]
62665
Pause [
1000ms]
62334
BYE ---------->
62277
200 <----------
62008
184
85