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

Any insight on memory usage? #32

Open
chadpriddle opened this issue Jun 10, 2024 · 0 comments
Open

Any insight on memory usage? #32

chadpriddle opened this issue Jun 10, 2024 · 0 comments

Comments

@chadpriddle
Copy link

Digital Ocean server 1 Intel vCPU and 2GB of memory with Ubuntu 24.04, Apache2, PHP 8.3

Brand new server and messing around with this library. The server idles about 30-40% of memory with no users/activity.

If I process an object detection function for one image it jumps about 5-10%

If I process 5 images in a row in one function it hits 90% memory usage then the server is bogged down for quite some time (30-60 minutes) until the memory comes back down. CPU is normal, spikes up and then back down after the process ends, as you'd expect.

While I know I have wimpy sever specs for testing, I'm wondering if there is a memory leak, is there a function to tell opencv to release the memory usage after it processes an image?

At the time of writing this the memory is at 92% after processing 5 images. Reboot the server, let it idle for about 10 minutes and the memory is back down to 34%.

Any insight would be helpful. Thanks

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

1 participant