Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High memory usage problem (solved) #34

Open
Rchion opened this issue Oct 31, 2024 · 1 comment
Open

High memory usage problem (solved) #34

Rchion opened this issue Oct 31, 2024 · 1 comment

Comments

@Rchion
Copy link

Rchion commented Oct 31, 2024

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.

@fpompermaier
Copy link
Owner

Hi @Rchion, thanks for your interest! Feel free to submit a PR so we can improve that part!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants