Status: New
Owner: ----
Labels: Package-SIP Component-RA-SIP
New issue 98 by [email protected]: SIP-RA leaks when UAS is unavailable
http://code.google.com/p/jain-slee/issues/detail?id=98
Preconditions:
- Setup SIP11-RA (2.8.0-SNAPSHOT) with B2BUA example application
Actions:
- Generate load (with SIPP) from UAC but don't start UAS
Expected Result:
- Client Transactions/Dialogs should time because UAS is not available
- The system should be stable in terms of memory also when increasing the
load
Real Result:
- Slee crashes after a while with memory problems
- Profiling revealed the Heap is filled up
with "DialogWithoutIdActivityHandle" which are referenced from
ActivityContextFactoryImpl.
- In this case the Dialog-Activities are never ended
Suggested Fix
- SIPResourceAdaptor-Implementation currently only ends those activities
(invocation of endActivity Method) in processDialogTerminated-Method
- processDialogTerminated is never called from SIP Stack as the dialog is
never really created within SIP Stack (See discussion in mobicents-public)
- Instead processTimeout is called from SIP Stack and can be used by SIP-RA
to end the Dialog Activity
This piece of code can be included at the very end of processTimeout-Method:
--- code start ---
//End Activity because stack will not send DialogTerminated-Event in
Timeout-Case
if (d != null && dw != null && d.getState() == DialogState.TERMINATED)
endActivity(dw);
--- code end---
No leak can be reproduced anymore in this case after applying this fix
Attached are screenshots showing the memory profile before and after the
fix as well as Debug logs of one single call, aswell as updated files for
SIP B2BUA Example App to handle the Timeout Event also.
Also the fix itself is attached (SipResourceAdaptor.java) based on latest
GIT Head Version.
Attachments:
b2bua_nouas.rar 165 KB
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
---
You received this message because you are subscribed to the Google Groups "mobicents-all-issues-changes" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.