facerecognition icon indicating copy to clipboard operation
facerecognition copied to clipboard

Getting System memory error even with 32GB of RAM and 4GB RAM assigned to php

Open ajaykaps opened this issue 4 years ago • 2 comments

Hey, Thanks for reporting issues back to Nextcloud Face Recognition. Please, try to complete this report in detail so we can help you easier. :smile:

Make sure you read all the documentation, and the FAQ, and that the issue has not been reported before. :wink:

Expected behavior

The image processing should start

Actual behaviour

root@nextcloud:~ # php -r "phpinfo();" | grep memory memory_limit => 4096M => 4096M Collecting memory statistics => No Shared memory model => mmap Used memory => 9167704 Free memory => 125050024 Wasted memory => 0 Interned Strings Used memory => 337272 Interned Strings Free memory => 5953736 opcache.memory_consumption => 128 => 128 opcache.preferred_memory_model => no value => no value opcache.protect_memory => Off => Off

root@nextcloud:/usr/local/www/nextcloud # sudo -u www /usr/local/www/nextcloud/occ face:background_job 1/10 - Executing task CheckRequirementsTask (Check all requirements) Your system does not meet the minimum of memory requirements. Face recognition application requires at least 2 GB of system memory. See https://github.com/matiasdelellis/facerecognition/wiki/Performance-analysis-of-DLib%E2%80%99s-CNN-face-detection for more details

Steps to reproduce

  1. sudo -u www /usr/local/www/nextcloud/occ face:background_job

Server configuration

  • Operating system: FreeNAS

  • Pdlib version: 1.0.2

  • How is DLib installed: Make sure it is working correctly with this tool

root@nextcloud:/usr/local/www/nextcloud # php -i | grep dlib pdlib pdlib support => enabled pdlib extension version => 1.0.2 dlib library version => 19.20.0

  • PHP version: root@nextcloud:/usr/local/www/nextcloud # php -i | grep dlib pdlib pdlib support => enabled pdlib extension version => 1.0.2 dlib library version => 19.20.0

  • Web server: apache24

  • Database: mysql

  • Nextcloud version: 11.3-RELEASE-p12

Client configuration

  • Browser: Chrome

  • Operating system: Windows

Logs

Background task log with debug.

sudo -u apache php occ -vvv face:background_job root@nextcloud:~ # sudo -u www php /usr/local/www/nextcloud/occ face:background_job 1/10 - Executing task CheckRequirementsTask (Check all requirements) Your system does not meet the minimum of memory requirements. Face recognition application requires at least 2 GB of system memory. See https://github.com/matiasdelellis/facerecognition/wiki/Performance-analysis-of-DLib%E2%80%99s-CNN-face-detection for more details

Fill an issue here if that doesn't help: https://github.com/matiasdelellis/facerecognition/issues Task CheckRequirementsTask signaled we should not continue, bailing out

Insert your background log here

Web server error log

Web server error log
Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Nextcloud log
Insert your Nextcloud log here

Browser log

Browser log
Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...

ajaykaps avatar Aug 13 '20 14:08 ajaykaps

Hi @ajaykaps We have not yet implemented memory control in Freebsd. Do you dare to help? :smile:

Meanwhile maybe you can ignore this control commenting this line:

  • https://github.com/matiasdelellis/facerecognition/blob/master/lib/BackgroundJob/BackgroundService.php#L93

matiasdelellis avatar Aug 13 '20 14:08 matiasdelellis

Hello @matiasdelellis ,

Thank you for that tip, it actually worked I can't believe that it did took me a month to install and get it up and running.

And as far as me trying to help, I will study up and do the best I can to give inputs.

ajaykaps avatar Aug 13 '20 16:08 ajaykaps