memory leak in mms-demo?

46 views
Skip to first unread message

Klaus Schwarzkopf

unread,
Feb 13, 2010, 9:41:40 AM2/13/10
to mobicent...@googlegroups.com
Hi,

i tested the mms-demo with sipp and after ca. 1000 calls i get the
following errors. My modifications on RecorderDemoSbb.java are

public void onTimerEvent(TimerEvent event, ActivityContextInterface
aci) {
//empty
}

and line 130:

record.setFile(new Date().getTime() + RECORDER);


I use the media server and the mms-demo from the svn repository.


sipp -sf mmsdemo_pcap.xml 192.168.178.24 -i 192.168.178.24 -rsa
192.168.178.20:5060 -m 10000 -r 50 -l 50 -s 1013 -trace_rtt
-trace_screen -trace_stat -trace_counts -trace_err


My service based on the mms-demo and i have the same problems, too.

regards

Klaus

=========================================================================

JBoss Bootstrap Environment

JBOSS_HOME:
/home/klaus/mobicents-all-1.2.1.GA-jboss-4.2.3.GA/jboss-4.2.3.GA/

JAVA: /usr/lib/jvm/java-1.5.0-sun/bin/java

JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m
-Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true

CLASSPATH:
/home/klaus/mobicents-all-1.2.1.GA-jboss-4.2.3.GA/jboss-4.2.3.GA//bin/run.jar:/usr/lib/jvm/java-1.5.0-sun/lib/tools.jar

=========================================================================

15:10:25,171 INFO [Server] Starting JBoss (MX MicroKernel)...
15:10:25,172 INFO [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build:
SVNTag=JBoss_4_2_3_GA date=200807181417)
15:10:25,173 INFO [Server] Home Dir:
/home/klaus/mobicents-all-1.2.1.GA-jboss-4.2.3.GA/jboss-4.2.3.GA
15:10:25,173 INFO [Server] Home URL:
file:/home/klaus/mobicents-all-1.2.1.GA-jboss-4.2.3.GA/jboss-4.2.3.GA/
15:10:25,174 INFO [Server] Patch URL: null
15:10:25,174 INFO [Server] Server Name: default
15:10:25,174 INFO [Server] Server Home Dir:
/home/klaus/mobicents-all-1.2.1.GA-jboss-4.2.3.GA/jboss-4.2.3.GA/server/default
15:10:25,174 INFO [Server] Server Home URL:
file:/home/klaus/mobicents-all-1.2.1.GA-jboss-4.2.3.GA/jboss-4.2.3.GA/server/default/
15:10:25,174 INFO [Server] Server Log Dir:
/home/klaus/mobicents-all-1.2.1.GA-jboss-4.2.3.GA/jboss-4.2.3.GA/server/default/log
15:10:25,174 INFO [Server] Server Temp Dir:
/home/klaus/mobicents-all-1.2.1.GA-jboss-4.2.3.GA/jboss-4.2.3.GA/server/default/tmp
15:10:25,175 INFO [Server] Root Deployment Filename: jboss-service.xml
15:10:25,386 INFO [ServerInfo] Java version: 1.5.0_17,Sun Microsystems Inc.
15:10:25,387 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM
1.5.0_17-b04,Sun Microsystems Inc.
15:10:25,387 INFO [ServerInfo] OS-System: Linux 2.6.26-2-686,i386
15:10:25,738 INFO [Server] Core system initialized
15:10:27,758 INFO [WebService] Using RMI server codebase:
http://192.168.178.20:8083/
15:10:27,759 INFO [Log4jService$URLWatchTimerTask] Configuring from
URL: resource:jboss-log4j.xml
15:10:35,193 ERROR [STDERR] 13.02.2010 15:10:35
org.jdiameter.server.impl.io.tcp.NetWorkGuard <init>
INFO: Open server socket: ServerSocket[addr=/127.0.0.1,localport=1812]
15:10:43,642 WARN [TreeCache] Calls to setFetchStateOnStartup are
ignored; configure state transfer using setFetchInMemoryState and any
cache loader's FetchPersistentState property
15:10:43,709 WARN [TreeCache] Calls to setFetchStateOnStartup are
ignored; configure state transfer using setFetchInMemoryState and any
cache loader's FetchPersistentState property
15:10:43,722 WARN [TreeCache] Calls to setFetchStateOnStartup are
ignored; configure state transfer using setFetchInMemoryState and any
cache loader's FetchPersistentState property
15:10:43,747 WARN [TreeCache] Calls to setFetchStateOnStartup are
ignored; configure state transfer using setFetchInMemoryState and any
cache loader's FetchPersistentState property
15:10:44,102 WARN [MobicentsManagement] Setting event router monitoring
of uncommitted activity context attaches to true. This change will only
be applied after a server restart.
15:10:45,139 WARN [Digester]
[SetPropertiesRule]{Server/Service/Engine/Host} Setting property
'hostConfigClass' to 'org.mobicents.servlet.sip.startup.SipHostConfig'
did not find a matching property.
15:10:48,328 WARN [loggerI18N]
[com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.startupWarning]
[com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.startupWarning]
You have chosen to enable multiple last resources in the transaction
manager. This is transactionally unsafe and should not be relied upon.
15:10:49,259 WARN [DeploymentManager] Unable to INSTALL
mms-demo-services-DU-1.0.4.GA-SNAPSHOT.jar right now. Waiting for
dependencies to be resolved.
15:12:35,638 ERROR [EventRouterImpl] Failure while routing event; second
phase. DeferredEvent
[EventTypeID[org.mobicents.slee.media.LINK_CONNECTED#org.mobicents.media#1.0],
#61]
javax.slee.SLEEException: timeout while acquiring lock
java.util.concurrent.locks.ReentrantLock@f8cb4a[Locked by thread
pool-267-thread-1] for sbb entity with id
ServiceID[msdemo#org.mobicents#1.0]:root:88b72dd7-d479-4408-9e57-c6462f6678ee
at
org.mobicents.slee.runtime.sbbentity.SbbEntityFactory.lockOrFail(SbbEntityFactory.java:328)
at
org.mobicents.slee.runtime.sbbentity.SbbEntityFactory._getSbbEntity(SbbEntityFactory.java:230)
at
org.mobicents.slee.runtime.sbbentity.SbbEntityFactory.getSbbEntity(SbbEntityFactory.java:188)
at
org.mobicents.slee.runtime.EventRouterImpl.routeQueuedEvent(EventRouterImpl.java:963)
at
org.mobicents.slee.runtime.EventRouterImpl.access$100(EventRouterImpl.java:64)
at
org.mobicents.slee.runtime.EventRouterImpl$EventExecutor.run(EventRouterImpl.java:121)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
15:12:42,222 ERROR [EventRouterImpl] Unhandled Exception in event router:
javax.transaction.SystemException: Failed to commit tx.
[com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted]
[com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted]
Can't commit because the transaction is in aborted state
at
org.mobicents.slee.runtime.transaction.TransactionManagerImpl.commit(TransactionManagerImpl.java:352)
at
org.mobicents.slee.runtime.EventRouterImpl.routeQueuedEvent(EventRouterImpl.java:1111)
at
org.mobicents.slee.runtime.EventRouterImpl.access$100(EventRouterImpl.java:64)
at
org.mobicents.slee.runtime.EventRouterImpl$EventExecutor.run(EventRouterImpl.java:121)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
15:12:43,651 WARN [EventRouterImpl] Exception in
findSbbEntityForDelivering(
ac[org.mobicents.slee.runtime.ActivityContext[583c10bfdbd326ba:-6fa2f103:126c7aa8c8c:-69ee]],
eventTypeID[EventTypeID[javax.sip.Dialog.BYE#net.java.slee#1.2], #145]).
Reason: timeout while acquiring lock
java.util.concurrent.locks.ReentrantLock@f8cb4a[Locked by thread
pool-267-thread-1] for sbb entity with id
ServiceID[msdemo#org.mobicents#1.0]:root:88b72dd7-d479-4408-9e57-c6462f6678ee
javax.slee.SLEEException: timeout while acquiring lock
java.util.concurrent.locks.ReentrantLock@f8cb4a[Locked by thread
pool-267-thread-1] for sbb entity with id
ServiceID[msdemo#org.mobicents#1.0]:root:88b72dd7-d479-4408-9e57-c6462f6678ee
at
org.mobicents.slee.runtime.sbbentity.SbbEntityFactory.lockOrFail(SbbEntityFactory.java:328)
at
org.mobicents.slee.runtime.sbbentity.SbbEntityFactory._getSbbEntity(SbbEntityFactory.java:230)
at
org.mobicents.slee.runtime.sbbentity.SbbEntityFactory.getSbbEntity(SbbEntityFactory.java:188)
at
org.mobicents.slee.runtime.EventRouterImpl.findSbbEntityForDelivering(EventRouterImpl.java:1471)
at
org.mobicents.slee.runtime.EventRouterImpl.routeQueuedEvent(EventRouterImpl.java:865)
at
org.mobicents.slee.runtime.EventRouterImpl.access$100(EventRouterImpl.java:64)
at
org.mobicents.slee.runtime.EventRouterImpl$EventExecutor.run(EventRouterImpl.java:121)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
15:12:44,102 WARN [EventRouterImpl] Exception in
findSbbEntityForDelivering(
ac[org.mobicents.slee.runtime.ActivityContext[583c10bfdbd326ba:-6fa2f103:126c7aa8c8c:-69f0]],
eventTypeID[EventTypeID[javax.slee.ActivityEndEvent#javax.slee#1.0],
#0]).
Reason: timeout while acquiring lock
java.util.concurrent.locks.ReentrantLock@f8cb4a[Locked by thread
pool-267-thread-1] for sbb entity with id
ServiceID[msdemo#org.mobicents#1.0]:root:88b72dd7-d479-4408-9e57-c6462f6678ee
javax.slee.SLEEException: timeout while acquiring lock
java.util.concurrent.locks.ReentrantLock@f8cb4a[Locked by thread
pool-267-thread-1] for sbb entity with id
ServiceID[msdemo#org.mobicents#1.0]:root:88b72dd7-d479-4408-9e57-c6462f6678ee
at
org.mobicents.slee.runtime.sbbentity.SbbEntityFactory.lockOrFail(SbbEntityFactory.java:328)
at
org.mobicents.slee.runtime.sbbentity.SbbEntityFactory._getSbbEntity(SbbEntityFactory.java:230)
at
org.mobicents.slee.runtime.sbbentity.SbbEntityFactory.getSbbEntity(SbbEntityFactory.java:188)
at
org.mobicents.slee.runtime.EventRouterImpl.findSbbEntityForDelivering(EventRouterImpl.java:1471)
at
org.mobicents.slee.runtime.EventRouterImpl.routeQueuedEvent(EventRouterImpl.java:865)
at
org.mobicents.slee.runtime.EventRouterImpl.access$100(EventRouterImpl.java:64)
at
org.mobicents.slee.runtime.EventRouterImpl$EventExecutor.run(EventRouterImpl.java:121)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
15:12:45,638 WARN [EventRouterImpl] Exception in
findSbbEntityForDelivering(
ac[org.mobicents.slee.runtime.ActivityContext[583c10bfdbd326ba:-6fa2f103:126c7aa8c8c:-69ea]],

eventTypeID[EventTypeID[org.mobicents.slee.media.CONNECTION_CREATED#org.mobicents.media#1.0],
#52]).
Reason: timeout while acquiring lock
java.util.concurrent.locks.ReentrantLock@ff1f0d[Locked by thread
pool-270-thread-1] for sbb entity with id
ServiceID[msdemo#org.mobicents#1.0]:nonroot:c48c80c4-0d85-4b00-99e8-e84ec45ed770
javax.slee.SLEEException: timeout while acquiring lock
java.util.concurrent.locks.ReentrantLock@ff1f0d[Locked by thread
pool-270-thread-1] for sbb entity with id
ServiceID[msdemo#org.mobicents#1.0]:nonroot:c48c80c4-0d85-4b00-99e8-e84ec45ed770
at
org.mobicents.slee.runtime.sbbentity.SbbEntityFactory.lockOrFail(SbbEntityFactory.java:328)
at
org.mobicents.slee.runtime.sbbentity.SbbEntityFactory._getSbbEntity(SbbEntityFactory.java:230)
at
org.mobicents.slee.runtime.sbbentity.SbbEntityFactory.getSbbEntity(SbbEntityFactory.java:188)
at
org.mobicents.slee.runtime.EventRouterImpl.findSbbEntityForDelivering(EventRouterImpl.java:1471)
at
org.mobicents.slee.runtime.EventRouterImpl.routeQueuedEvent(EventRouterImpl.java:865)
at
org.mobicents.slee.runtime.EventRouterImpl.access$100(EventRouterImpl.java:64)
at
org.mobicents.slee.runtime.EventRouterImpl$EventExecutor.run(EventRouterImpl.java:121)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
15:13:17,863 ERROR [STDERR] Exception in thread "Thread-2807"
15:13:17,863 ERROR [STDERR] java.lang.OutOfMemoryError: unable to create
new native thread
15:13:17,863 ERROR [STDERR] at java.lang.Thread.start0(Native Method)
15:13:17,863 ERROR [STDERR] at java.lang.Thread.start(Thread.java:574)
15:13:17,863 ERROR [STDERR] at
java.util.concurrent.ThreadPoolExecutor.workerDone(ThreadPoolExecutor.java:553)
15:13:17,863 ERROR [STDERR] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:681)
15:13:17,863 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
15:13:29,806 ERROR [EventRouterImpl] Unhandled Exception in event router:
javax.transaction.SystemException: Failed to commit tx.
[com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted]
[com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted]
Can't commit because the transaction is in aborted state
at
org.mobicents.slee.runtime.transaction.TransactionManagerImpl.commit(TransactionManagerImpl.java:352)
at
org.mobicents.slee.runtime.EventRouterImpl.routeQueuedEvent(EventRouterImpl.java:1111)
at
org.mobicents.slee.runtime.EventRouterImpl.access$100(EventRouterImpl.java:64)
at
org.mobicents.slee.runtime.EventRouterImpl$EventExecutor.run(EventRouterImpl.java:121)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
15:13:32,714 WARN [SipApplicationDispatcherImpl] Memory used:
92.62343136012169% > to the memory threshold : 90 => starting to reject
requests
15:13:54,012 ERROR [STDERR] Exception in thread
"CommandThread[media/trunk/IVR/58]"
15:13:54,012 ERROR [STDERR] java.lang.OutOfMemoryError: unable to create
new native thread
15:13:54,012 ERROR [STDERR] at java.lang.Thread.start0(Native Method)
15:13:54,012 ERROR [STDERR] at java.lang.Thread.start(Thread.java:574)
15:13:54,012 ERROR [STDERR] at
sun.net.www.http.KeepAliveCache$1.run(KeepAliveCache.java:89)
15:13:54,012 ERROR [STDERR] at
java.security.AccessController.doPrivileged(Native Method)
15:13:54,012 ERROR [STDERR] at
sun.net.www.http.KeepAliveCache.put(KeepAliveCache.java:75)
15:13:54,012 ERROR [STDERR] at
sun.net.www.http.HttpClient.putInKeepAliveCache(HttpClient.java:368)
15:13:54,012 ERROR [STDERR] at
sun.net.www.http.HttpClient.finished(HttpClient.java:356)
15:13:54,012 ERROR [STDERR] at
sun.net.www.http.KeepAliveStream.close(KeepAliveStream.java:71)
15:13:54,013 ERROR [STDERR] at
sun.net.www.MeteredStream.justRead(MeteredStream.java:75)
15:13:54,013 ERROR [STDERR] at
sun.net.www.MeteredStream.read(MeteredStream.java:117)
15:13:54,013 ERROR [STDERR] at
java.io.FilterInputStream.read(FilterInputStream.java:111)
15:13:54,013 ERROR [STDERR] at
sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:2196)
15:13:54,013 ERROR [STDERR] at
sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:2191)
15:13:54,013 ERROR [STDERR] at
org.mobicents.media.server.impl.events.announcement.AudioPlayer.getFaileHandle(AudioPlayer.java:157)
15:13:54,013 ERROR [STDERR] at
org.mobicents.media.server.impl.events.announcement.AudioPlayer.start(AudioPlayer.java:102)
15:13:54,013 ERROR [STDERR] at
org.mobicents.media.server.impl.events.announcement.AnnSignal.apply(AnnSignal.java:42)
15:13:54,013 ERROR [STDERR] at
org.mobicents.media.server.impl.SignalQueue.next(SignalQueue.java:68)
15:13:54,013 ERROR [STDERR] at
org.mobicents.media.server.impl.SignalQueue.offer(SignalQueue.java:51)
15:13:54,013 ERROR [STDERR] at
org.mobicents.media.server.impl.BaseEndpoint$ExecuteCommand.run(BaseEndpoint.java:861)
15:13:54,013 ERROR [STDERR] at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
15:13:54,013 ERROR [STDERR] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
15:13:54,013 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
15:13:54,626 ERROR [STDERR] Exception in thread
"CommandThread[media/trunk/IVR/55]"
15:13:54,626 ERROR [STDERR] java.lang.OutOfMemoryError: unable to create
new native thread
15:13:54,627 ERROR [STDERR] at java.lang.Thread.start0(Native Method)
15:13:54,627 ERROR [STDERR] at java.lang.Thread.start(Thread.java:574)
15:13:54,627 ERROR [STDERR] at
sun.net.www.http.KeepAliveCache$1.run(KeepAliveCache.java:89)
15:13:54,627 ERROR [STDERR] at
java.security.AccessController.doPrivileged(Native Method)
15:13:54,627 ERROR [STDERR] at
sun.net.www.http.KeepAliveCache.put(KeepAliveCache.java:75)
15:13:54,627 ERROR [STDERR] at
sun.net.www.http.HttpClient.putInKeepAliveCache(HttpClient.java:368)
15:13:54,627 ERROR [STDERR] at
sun.net.www.http.HttpClient.finished(HttpClient.java:356)
15:13:54,627 ERROR [STDERR] at
sun.net.www.http.KeepAliveStream.close(KeepAliveStream.java:71)
15:13:54,627 ERROR [STDERR] at
sun.net.www.MeteredStream.justRead(MeteredStream.java:75)
15:13:54,627 ERROR [STDERR] at
sun.net.www.MeteredStream.read(MeteredStream.java:117)
15:13:54,627 ERROR [STDERR] at
java.io.FilterInputStream.read(FilterInputStream.java:111)
15:13:54,627 ERROR [STDERR] at
sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:2196)
15:13:54,627 ERROR [STDERR] at
sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:2191)
15:13:54,627 ERROR [STDERR] at
org.mobicents.media.server.impl.events.announcement.AudioPlayer.getFaileHandle(AudioPlayer.java:157)
15:13:54,628 ERROR [STDERR] at
org.mobicents.media.server.impl.events.announcement.AudioPlayer.start(AudioPlayer.java:102)
15:13:54,628 ERROR [STDERR] at
org.mobicents.media.server.impl.events.announcement.AnnSignal.apply(AnnSignal.java:42)
15:13:54,628 ERROR [STDERR] at
org.mobicents.media.server.impl.SignalQueue.next(SignalQueue.java:68)
15:13:54,628 ERROR [STDERR] at
org.mobicents.media.server.impl.SignalQueue.offer(SignalQueue.java:51)
15:13:54,628 ERROR [STDERR] at
org.mobicents.media.server.impl.BaseEndpoint$ExecuteCommand.run(BaseEndpoint.java:861)
15:13:54,628 ERROR [STDERR] at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
15:13:54,628 ERROR [STDERR] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
15:13:54,628 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
15:14:02,714 WARN [SipApplicationDispatcherImpl] Memory used:
88.36156356952719% < to the memory threshold : 90 => stopping to reject
requests
15:14:32,714 WARN [SipApplicationDispatcherImpl] Memory used:
92.58916687793129% > to the memory threshold : 90 => starting to reject
requests
15:14:34,060 ERROR [STDERR] Exception in thread
"CommandThread[media/trunk/IVR/58]"
15:14:34,060 ERROR [STDERR] java.lang.OutOfMemoryError: unable to create
new native thread
15:14:34,060 ERROR [STDERR] at java.lang.Thread.start0(Native Method)
15:14:34,060 ERROR [STDERR] at java.lang.Thread.start(Thread.java:574)
15:14:34,061 ERROR [STDERR] at
sun.net.www.http.KeepAliveCache$1.run(KeepAliveCache.java:89)
15:14:34,061 ERROR [STDERR] at
java.security.AccessController.doPrivileged(Native Method)
15:14:34,061 ERROR [STDERR] at
sun.net.www.http.KeepAliveCache.put(KeepAliveCache.java:75)
15:14:34,061 ERROR [STDERR] at
sun.net.www.http.HttpClient.putInKeepAliveCache(HttpClient.java:368)
15:14:34,061 ERROR [STDERR] at
sun.net.www.http.HttpClient.finished(HttpClient.java:356)
15:14:34,061 ERROR [STDERR] at
sun.net.www.http.KeepAliveStream.close(KeepAliveStream.java:71)
15:14:34,061 ERROR [STDERR] at
sun.net.www.MeteredStream.justRead(MeteredStream.java:75)
15:14:34,061 ERROR [STDERR] at
sun.net.www.MeteredStream.read(MeteredStream.java:117)
15:14:34,061 ERROR [STDERR] at
java.io.FilterInputStream.read(FilterInputStream.java:111)
15:14:34,061 ERROR [STDERR] at
sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:2196)
15:14:34,061 ERROR [STDERR] at
sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:2191)
15:14:34,061 ERROR [STDERR] at
org.mobicents.media.server.impl.events.announcement.AudioPlayer.getFaileHandle(AudioPlayer.java:157)
15:14:34,061 ERROR [STDERR] at
org.mobicents.media.server.impl.events.announcement.AudioPlayer.start(AudioPlayer.java:102)
15:14:34,061 ERROR [STDERR] at
org.mobicents.media.server.impl.events.announcement.AnnSignal.apply(AnnSignal.java:42)
15:14:34,061 ERROR [STDERR] at
org.mobicents.media.server.impl.SignalQueue.next(SignalQueue.java:68)
15:14:34,061 ERROR [STDERR] at
org.mobicents.media.server.impl.SignalQueue.offer(SignalQueue.java:51)
15:14:34,062 ERROR [STDERR] at
org.mobicents.media.server.impl.BaseEndpoint$ExecuteCommand.run(BaseEndpoint.java:861)
15:14:34,062 ERROR [STDERR] at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
15:14:34,062 ERROR [STDERR] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
15:14:34,062 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
15:15:02,714 WARN [SipApplicationDispatcherImpl] Memory used:
88.11359170997592% < to the memory threshold : 90 => stopping to reject
requests

mmsdemo_pcap.xml

Oleg Kulikov

unread,
Feb 13, 2010, 10:38:20 AM2/13/10
to mobicent...@googlegroups.com
Hello Klaus,

which version of media server is used?

Oleg

2010/2/13 Klaus Schwarzkopf <klau...@gmx.de>

Klaus Schwarzkopf

unread,
Feb 13, 2010, 10:38:19 AM2/13/10
to mobicent...@googlegroups.com
Hi,

i use the Mobicents ALL v1.2.1.GA binary.
Only media server is from svn.

Oleg Kulikov

unread,
Feb 13, 2010, 10:41:46 AM2/13/10
to mobicent...@googlegroups.com
The media server in trunk is not stable. We are fixing performance issue.
I would recomment to use Beta 1 for dev and then switch to GA if you are inerested in IVR and audio only.


Oleg. 

2010/2/13 Klaus Schwarzkopf <klau...@gmx.de>

Klaus Schwarzkopf

unread,
Feb 13, 2010, 10:47:54 AM2/13/10
to mobicent...@googlegroups.com
Oleg Kulikov wrote:
> Hello Klaus,
>
> which version of media server is used?
>
> Oleg
>

Hello Oleg,

i use the media server from here:
http://mobicents.googlecode.com/svn/branches/servers/media/1.x.y/

Klaus

Klaus Schwarzkopf

unread,
Feb 13, 2010, 10:56:52 AM2/13/10
to mobicent...@googlegroups.com
Oleg Kulikov wrote:
> The media server in trunk is not stable. We are fixing performance issue.
> I would recomment to use Beta 1 for dev and then switch to GA if you are
> inerested in IVR and audio only.
>

I use IVR, record and dtmf in my service. Can i use the media server
2.x.y (beta)?

I had a problem with the Media Server v1.0.3.GA, see my post:

http://groups.google.com/group/mobicents-public/browse_thread/thread/92f6658adc23c270/b5849f232edd6cce?lnk=gst&q=klaus#b5849f232edd6cce

So i switched to the svn version:

http://mobicents.googlecode.com/svn/branches/servers/media/1.x.y/


>
> Oleg.
>
> 2010/2/13 Klaus Schwarzkopf <klau...@gmx.de <mailto:klau...@gmx.de>>
>
> Hi,
>
> i use the Mobicents ALL v1.2.1.GA <http://v1.2.1.GA> binary.

Oleg Kulikov

unread,
Feb 13, 2010, 11:05:49 AM2/13/10
to mobicent...@googlegroups.com
ok, I understand. Can you profile your application. Looks like something is not clreared after when call is completed. Note, that media session still alive for 30 mins before timeout.

Oleg

2010/2/13 Klaus Schwarzkopf <klau...@gmx.de>
Oleg Kulikov wrote:

Klaus Schwarzkopf

unread,
Feb 14, 2010, 11:48:33 AM2/14/10
to mobicent...@googlegroups.com
Hi Oleg,

the onCallTerminated method close the mslink and media connection in
root sbb and his children.

Anything else do to after the call is complete?

public void onCallTerminated(RequestEvent evt, ActivityContextInterface
aci) {
logger.info("Call successfully completed");
ServerTransaction tx = evt.getServerTransaction();
Request request = evt.getRequest();


try {
SbbIf password = getPasswordObject();
if (null != password) {
password.destroy();
}
} catch (NullPointerException e) {

logger.error(e);
}
try {
SbbIf media = getMediaObject();
if (null != media) {
media.destroy();
}

} catch (NullPointerException e) {

logger.error(e);
}

this.destroy();

try {
Response response =
messageFactory.createResponse(Response.OK, request);
tx.sendResponse(response);
} catch (Exception e) {
logger.error(e);
}

}

public void destroy() {
logger.info("destroy");

try {
MsLink link = getLink();
if (link != null) {
link.release();
}
} catch (NullPointerException e) {

logger.error(e);
}
try {
MsConnection connection = this.getMediaConnection();
if (connection != null) {
connection.release();
}
} catch (NullPointerException e) {

logger.error(e);
}

}

Oleg Kulikov wrote:
> ok, I understand. Can you profile your application. Looks like something
> is not clreared after when call is completed. Note, that media session
> still alive for 30 mins before timeout.
>
> Oleg
>

> 2010/2/13 Klaus Schwarzkopf <klau...@gmx.de <mailto:klau...@gmx.de>>


>
> Oleg Kulikov wrote:
>
> The media server in trunk is not stable. We are fixing
> performance issue.
> I would recomment to use Beta 1 for dev and then switch to GA if
> you are inerested in IVR and audio only.
>
>
> I use IVR, record and dtmf in my service. Can i use the media server
> 2.x.y (beta)?
>

> I had a problem with the Media Server v1.0.3.GA <http://v1.0.3.GA>,

> <mailto:klau...@gmx.de> <mailto:klau...@gmx.de

Oleg Kulikov

unread,
Feb 14, 2010, 11:19:34 PM2/14/10
to mobicent...@googlegroups.com
Hi Klaus,

It is enouph to close connection and link but something still leaking. So would be better to profile. 

Oleg.

2010/2/14 Klaus Schwarzkopf <klau...@gmx.de>

Klaus Schwarzkopf

unread,
Feb 16, 2010, 6:53:53 AM2/16/10
to mobicent...@googlegroups.com
Hi Oleg,

i have profiled my service with netbeans yesterday and my pc slow down
and java crashed very often. This was the first time, i profiled an
application. I can not find the error. I shot a picture from my service:

http://fbi.hooster.de/index.php/Mobicents

The service and the sipp xml files can you download from here:

http://fbi.hooster.de/download/master/jslee/service.zip


Can you help me please?

Klaus

mobicents-all 1.2.1 with mediaserver from svn:

http://mobicents.googlecode.com/svn/branches/servers/media/1.x.y/


resource adapters:

sip11, tts, media


install:

mvn install

procedure:

* initiate session
* password over dtmf 123456*
* speak message
* close session

see uac_pcap.xml in sipp-test/

Oleg Kulikov wrote:
> Hi Klaus,
>
> It is enouph to close connection and link but something still leaking.
> So would be better to profile.
>
> Oleg.
>

> 2010/2/14 Klaus Schwarzkopf <klau...@gmx.de <mailto:klau...@gmx.de>>


>
> Hi Oleg,
>
> the onCallTerminated method close the mslink and media connection in
> root sbb and his children.
>
> Anything else do to after the call is complete?
>
>
>
>
>
> public void onCallTerminated(RequestEvent evt,
> ActivityContextInterface aci) {

> logger.info <http://logger.info>("Call successfully completed");


> ServerTransaction tx = evt.getServerTransaction();
> Request request = evt.getRequest();
>
>
> try {
> SbbIf password = getPasswordObject();
> if (null != password) {
> password.destroy();
> }
> } catch (NullPointerException e) {
>
> logger.error(e);
> }
> try {
> SbbIf media = getMediaObject();
> if (null != media) {
> media.destroy();
> }
>
> } catch (NullPointerException e) {
>
> logger.error(e);
> }
>
> this.destroy();
>
> try {
> Response response =
> messageFactory.createResponse(Response.OK, request);
> tx.sendResponse(response);
> } catch (Exception e) {
> logger.error(e);
> }
>
> }
>
> public void destroy() {

> logger.info <http://logger.info>("destroy");


>
> try {
> MsLink link = getLink();
> if (link != null) {
> link.release();
> }
> } catch (NullPointerException e) {
>
> logger.error(e);
> }
> try {
> MsConnection connection = this.getMediaConnection();
> if (connection != null) {
> connection.release();
> }
> } catch (NullPointerException e) {
>
> logger.error(e);
> }
>
> }
>
> Oleg Kulikov wrote:
>
> ok, I understand. Can you profile your application. Looks like
> something is not clreared after when call is completed. Note,
> that media session still alive for 30 mins before timeout.
>
> Oleg
>
> 2010/2/13 Klaus Schwarzkopf <klau...@gmx.de

> <mailto:klau...@gmx.de> <mailto:klau...@gmx.de


> <mailto:klau...@gmx.de>>>
>
>
> Oleg Kulikov wrote:
>
> The media server in trunk is not stable. We are fixing
> performance issue.
> I would recomment to use Beta 1 for dev and then switch
> to GA if
> you are inerested in IVR and audio only.
>
>
> I use IVR, record and dtmf in my service. Can i use the media
> server
> 2.x.y (beta)?
>
> I had a problem with the Media Server v1.0.3.GA

> <http://v1.0.3.GA> <http://v1.0.3.GA>,

> <mailto:klau...@gmx.de <mailto:klau...@gmx.de>>>>

Klaus Schwarzkopf

unread,
Feb 16, 2010, 7:03:03 AM2/16/10
to mobicent...@googlegroups.com
The picture was taken after 100 calls.

When i set the OpenConnTimeOut to 60 seconds, the service can not record
any file after this timeout.

Oleg Kulikov

unread,
Feb 16, 2010, 9:49:56 AM2/16/10
to mobicent...@googlegroups.com
Ok, I will test and profile it

2010/2/16 Klaus Schwarzkopf <klau...@gmx.de>

Klaus Schwarzkopf

unread,
Feb 16, 2010, 10:59:00 AM2/16/10
to mobicent...@googlegroups.com
Thanks a lot!

Oleg Kulikov wrote:
> Ok, I will test and profile it
>

> 2010/2/16 Klaus Schwarzkopf <klau...@gmx.de <mailto:klau...@gmx.de>>

> <mailto:klau...@gmx.de> <mailto:klau...@gmx.de

> <mailto:klau...@gmx.de <mailto:klau...@gmx.de>
> <mailto:klau...@gmx.de <mailto:klau...@gmx.de>>>>
>
>

Klaus Schwarzkopf

unread,
Feb 22, 2010, 1:48:56 PM2/22/10
to mobicent...@googlegroups.com
Hi Oleg,

Have you found the error?


Klaus


Oleg Kulikov wrote:
> Ok, I will test and profile it
>

> 2010/2/16 Klaus Schwarzkopf <klau...@gmx.de <mailto:klau...@gmx.de>>

> <mailto:klau...@gmx.de> <mailto:klau...@gmx.de

> <mailto:klau...@gmx.de <mailto:klau...@gmx.de>
> <mailto:klau...@gmx.de <mailto:klau...@gmx.de>>>>
>
>

Oleg Kulikov

unread,
Feb 22, 2010, 11:06:18 PM2/22/10
to mobicent...@googlegroups.com
Hi Klaus,

I am sorry, I had not time yet. Will do it when I will have a bit of free time. Thanks for remainder.

Oleg

2010/2/22 Klaus Schwarzkopf <klau...@gmx.de>

Klaus Schwarzkopf

unread,
Mar 3, 2010, 5:51:53 AM3/3/10
to mobicent...@googlegroups.com
Hi Oleg,

can you profile the code til next week?

The deadline for my master thesis is 19.03.

Tanks a lot!

Klaus

Oleg Kulikov wrote:
> Hi Klaus,
>

Oleg Kulikov

unread,
Mar 3, 2010, 5:55:04 AM3/3/10
to mobicent...@googlegroups.com
Hi Klaus,

this week is too busy. we are going to release CR1. Will do it at the begining of next week. Please remaind m again


Oleg

2010/3/3 Klaus Schwarzkopf <klau...@gmx.de>

Klaus Schwarzkopf

unread,
Mar 3, 2010, 6:52:02 AM3/3/10
to mobicent...@googlegroups.com
Hi Oleg,

ok, i remaind you after the release CR1.

Klaus

Oleg Kulikov wrote:
> Hi Klaus,
>

> this week is too busy. we are going to release CR1. Will do it at the
> begining of next week. Please remaind m again
>
>
> Oleg
>

> 2010/3/3 Klaus Schwarzkopf <klau...@gmx.de <mailto:klau...@gmx.de>>

Klaus Schwarzkopf

unread,
Mar 19, 2010, 5:55:02 AM3/19/10
to mobicent...@googlegroups.com
Hi Oleg,

congratulations! I like the Media Server!

Can you now profile the Service?

Thanks!

Klaus


Oleg Kulikov wrote:
> Hi Klaus,
>

> this week is too busy. we are going to release CR1. Will do it at the
> begining of next week. Please remaind m again
>
>
> Oleg
>

> 2010/3/3 Klaus Schwarzkopf <klau...@gmx.de <mailto:klau...@gmx.de>>

Oleg Kulikov

unread,
Mar 19, 2010, 7:59:41 AM3/19/10
to mobicent...@googlegroups.com
Hi Klaus,

I am going to profile it now. Can you explain in details what is your application doing (and where get source). Which versions you are using, etc. Any information which can help to setup the application itself.

Regards,
Olg 

2010/3/19 Klaus Schwarzkopf <klau...@gmx.de>
To unsubscribe from this group, send email to mobicents-public+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

Klaus Schwarzkopf

unread,
Mar 19, 2010, 8:46:43 AM3/19/10
to mobicent...@googlegroups.com
Hi Oleg,


the service and the sipp xml files can you download from here:

http://fbi.hooster.de/download/master/jslee/service.zip

mobicents-all 1.2.1 with mediaserver from svn (revision 10694):

http://mobicents.googlecode.com/svn/branches/servers/media/1.x.y/


resource adapters:

sip11, tts, media


install:

mvn install (in voicemail directory)

procedure:

* ue: initiate session
* service: play an announcement (password.wav in web.jar)
* ue: password over dtmf 123456*
* ue: speak message
* ue: close session
* service: saved the message at
mobicents-all-1.2.1.GA-jboss-4.2.3.GA/jboss-4.2.3.GA/server/default/data/recorder

see uac_pcap.xml in sipp-test/ path

sipp -sf uac_pcap.xml 192.168.178.24 -i 192.168.178.24 -rsa

192.168.178.20:5060 -m 10000 -r 50 -l 50 -s 1013 -trace_rtt
-trace_screen -trace_stat -trace_counts -trace_err

receive-call-sbb is the root sbb

media-sbb is to control the media server

password-sbb is to receive dtmf and send events (PASSWORD_OK) to
receive-call-sbb

web.jar contains password.wav

events du (custom events)

utility: all sbb inherit from commonSbb and contains also the local
object interface


the service is similar to the mms-demo


Regards,

Klaus


Oleg Kulikov wrote:
> Hi Klaus,
>

Oleg Kulikov

unread,
Mar 22, 2010, 3:03:44 AM3/22/10
to mobicent...@googlegroups.com
Hi Klaus,

I've profiled your application. When I am profiling it with sip phone I do not see any crime. Everything is working as expected and resources are cleaned. But when I am running sipp test attached I see errors due to ansynchronized requests what cause resource leaks. Media server cleans it after timeout (30 min).

Truly speaking we are not using sipp for media tests exactly due to not well synchronization and developing our own test applications.

Also I would recommend to use Media Server 2.x which is standalone. It has more improvement memory and thread structure.

Regards,
Oleg

2010/3/19 Klaus Schwarzkopf <klau...@gmx.de>

Klaus Schwarzkopf

unread,
Mar 23, 2010, 11:29:10 AM3/23/10
to mobicent...@googlegroups.com
Hi Oleg,

sorry for the delayed response.

OK, i switch to Media Server 2.x and JSLEE 2.x

Thanks for profiling.

Regards,

Klaus


Oleg Kulikov wrote:
> Hi Klaus,
>

> I've profiled your application. When I am profiling it with sip phone I
> do not see any crime. Everything is working as expected and resources
> are cleaned. But when I am running sipp test attached I see errors due
> to ansynchronized requests what cause resource leaks. Media server
> cleans it after timeout (30 min).
>
> Truly speaking we are not using sipp for media tests exactly due to not
> well synchronization and developing our own test applications.
>
> Also I would recommend to use Media Server 2.x which is standalone. It
> has more improvement memory and thread structure.
>
> Regards,
> Oleg
>

> 2010/3/19 Klaus Schwarzkopf <klau...@gmx.de <mailto:klau...@gmx.de>>


>
> Hi Oleg,
>
>
>
> the service and the sipp xml files can you download from here:
>
> http://fbi.hooster.de/download/master/jslee/service.zip
>
>
>
> mobicents-all 1.2.1 with mediaserver from svn (revision 10694):
>
>
> http://mobicents.googlecode.com/svn/branches/servers/media/1.x.y/
>
>
> resource adapters:
>
> sip11, tts, media
>
>
> install:
>
> mvn install (in voicemail directory)
>
> procedure:
>
> * ue: initiate session
> * service: play an announcement (password.wav in web.jar)
> * ue: password over dtmf 123456*
> * ue: speak message
> * ue: close session
> * service: saved the message at
> mobicents-all-1.2.1.GA-jboss-4.2.3.GA/jboss-4.2.3.GA/server/default/data/recorder

> <http://mobicents-all-1.2.1.GA-jboss-4.2.3.GA/jboss-4.2.3.GA/server/default/data/recorder>


>
> see uac_pcap.xml in sipp-test/ path
>
> sipp -sf uac_pcap.xml 192.168.178.24 -i 192.168.178.24 -rsa

> 192.168.178.20:5060 <http://192.168.178.20:5060> -m 10000 -r 50 -l


> 50 -s 1013 -trace_rtt -trace_screen -trace_stat -trace_counts
> -trace_err
>
>
>
> receive-call-sbb is the root sbb
>
> media-sbb is to control the media server
>
> password-sbb is to receive dtmf and send events (PASSWORD_OK) to
> receive-call-sbb
>
> web.jar contains password.wav
>
> events du (custom events)
>
> utility: all sbb inherit from commonSbb and contains also the local
> object interface
>
>
> the service is similar to the mms-demo
>
>
> Regards,
>
> Klaus
>
>
> Oleg Kulikov wrote:
>
> Hi Klaus,
>
> I am going to profile it now. Can you explain in details what is
> your application doing (and where get source). Which versions
> you are using, etc. Any information which can help to setup the
> application itself.
>
> Regards,
> Olg
>
>
> To unsubscribe from this group, send email to
> mobicents-public+unsubscribegooglegroups.com

> <http://unsubscribegooglegroups.com> or reply to this email with the

Reply all
Reply to author
Forward
0 new messages