onvif icon indicating copy to clipboard operation
onvif copied to clipboard

High memory usage problem (solved)

Open Rchion opened this issue 3 months ago • 1 comments

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.

Rchion avatar Oct 31 '24 02:10 Rchion