-
Notifications
You must be signed in to change notification settings - Fork 50
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
Allowed memory exhausted #1228
Comments
Hello 👋 Thank you for taking the time to open this issue with recognize. I know it's frustrating when software I look forward to working with you on this issue |
Hey @zycker
This seems to indicate the limit is at 1GiB when the cron job is run, so somehow AIO is not setting the right memory limit it seems. |
@zycker can you post the output of |
It seems the memory limit isn't applied. I'm using Portainer with this stack : volumes: services: |
You need to restart the containers via the aio interface after adjusting the value. Otherwise is the change not applied to the sibling containers as docker containers are immutable. |
Indeed, after doing that the result changed : I will see tomorrow if the cron job runs without errors. Thank you ! |
Thanks for chiming in, @szaimen 💙 |
5 days later, it is now working properly, thank for your help to you both ! |
Which version of recognize are you using?
8.2.0
Enabled Modes
Face recognition
TensorFlow mode
WASM mode
Downstream App
Memories App
Which Nextcloud version do you have installed?
30.0.4
Which Operating system do you have installed?
Proxmox 8.3.2 LXC container
Which database are you running Nextcloud on?
unknown
Which Docker container are you using to run Nextcloud? (if applicable)
27.4.1
How much RAM does your server have?
16GB
What processor Architecture does your CPU have?
x86_64
Describe the Bug
No face detected for just my user (180Go of pictures), works fine for the other users.
Manually run, here is the ouput :
`docker exec --user www-data -it nextcloud-aio-nextcloud php -d memory_limit=15000M occ recognize:cluster-faces --batch-size 200
Clustering face detections for user User2
ClusterDebug: Retrieving face detections for user User2
ClusterDebug: Not enough face detections found
Clustering face detections for user User3
ClusterDebug: Retrieving face detections for user User3
ClusterDebug: Not enough face detections found
Clustering face detections for user User1
ClusterDebug: Retrieving face detections for user User1
ClusterDebug: Found 500 fresh detections. Adding 50 old detections and 3727 sampled detections from already existing clusters. Calculating clusters on 4277 detections.
ClusterDebug: Clustering complete. Total num of clustered detections: 183
Clustering face detections for user User4
ClusterDebug: Retrieving face detections for user User4
ClusterDebug: Not enough face detections found
Clustering face detections for user User5
ClusterDebug: Retrieving face detections for user User5
ClusterDebug: Not enough face detections found
Clustering face detections for user admin
ClusterDebug: Retrieving face detections for user admin
ClusterDebug: Found 500 fresh detections. Adding 50 old detections and 3120 sampled detections from already existing clusters. Calculating clusters on 3670 detections.`
No face detection for User1.
I'm running Nextcloud AIO, I've seen similar issues here that where solved by increasing Nextcloud Memory limit, here is mine :
NEXTCLOUD_MEMORY_LIMIT=16000M
Expected Behavior
Faces being detected
To Reproduce
Install Recognize and Memories, wait for cron job to run.
Debug log
Allowed memory size of 1073741824 bytes exhausted (tried to allocate 655360 bytes) at /var/www/html/custom_apps/recognize/lib/Clustering/MrdBallTree.php#450
The text was updated successfully, but these errors were encountered: