How to identify, analyze & track FMS memory leak issue
I am writing a DVR application that is a bit more advanced than the DVRCast application.
The basic algorithm within the application is:
1. We have a live stream from a separate application composed of recorded video files by using server-side playlist.
2. on a periodical basis (40 seconds in our stress testing), we start & stop the recording of the live stream from the DVR application, with the file names containing time information.
3. Flash clients use DVRGetStreamInfo to get file recording info and do proper seek.
The problems we got was the abservation that the memory usage by the FMS goes up fairly quickly. e.g. within an hour the memory would increase by about 300M bytes. I found the increasing of memory occurs when we start new recording and when Flash clients make DVRGetStreamInfo calls.
I double checked and made sure there were no stream object leaks in our codes, which was also collaborated by the observation that in the admin console, the streams got recycled over time by the GC.
So I have no clue how to identify & fix the memory leak issue (or even if there is one). My questions are:
1. How do I know for sure if there is a memory leak issue? (mine app goes out of memory eventually)
2. How do I find clue to fix the memory leak issue if there is any?
Thanks.
