onvif
onvif copied to clipboard
High memory usage problem (solved)
When I used this project, I used http request calls to move the PTZ. Every time I received a request, I would call new OnvifDevice() to operate. Then, because I would initiate a request to obtain device information during the object creation process, the memory overhead increased sharply when the call was frequent. Finally, I used a Map to store the objects corresponding to the devices so that each device was a singleton to reduce memory overhead. Thanks to the author , this project which provided me with great help.