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

The immich_postgres container consumes all server resources #102

Closed
HowWof opened this issue Apr 1, 2022 · 10 comments
Closed

The immich_postgres container consumes all server resources #102

HowWof opened this issue Apr 1, 2022 · 10 comments

Comments

@HowWof
Copy link

HowWof commented Apr 1, 2022

I don't know if it's a bug or a configuration problem but immich_postgres is consuming all server resources below the logs
Logs

@alextran1502
Copy link
Contributor

Can you monitor with docker stats to see how much CPU/RAM immich_postgres is pulling?

If I remember correctly, you are running on Ubuntu Server 20.04, correct?

@HowWof
Copy link
Author

HowWof commented Apr 1, 2022

67% to 93% of the processor.
RAM Consumption 2.7 GB swap 500 MB
You remember the system correctly

@alextran1502
Copy link
Contributor

Is this behavior happening during idle or during the backup process?

@HowWof
Copy link
Author

HowWof commented Apr 1, 2022

During idle time

@alextran1502
Copy link
Contributor

Interesting, I am seeing mine at 0% during idle. Let me investigate this.

What is your docker and docker-compose version?

@HowWof
Copy link
Author

HowWof commented Apr 2, 2022

Docker version 20.10.14, build a224086
docker-compose version 1.29.2, build 5becea4c
OS: Ubuntu 20.04.4 LTS x86_64

@Eidenz
Copy link
Contributor

Eidenz commented Apr 15, 2022

The exact same issue happened to me today. 99% CPU on idle from postgres.

Docker version 20.10.14
Docker-compose version 1.29.2, build 5becea4c
OS: Ubuntu 20.04.4 LTS x64

@alextran1502
Copy link
Contributor

alextran1502 commented Apr 15, 2022

@Eidenz Can you access to the database container with

docker exec -it immich_postgres psql -U postgres

then

select * from pg_stat_activity WHERE state='active';

And let me know the output?

@HowWof
Copy link
Author

HowWof commented Apr 17, 2022

docker exec -it immich_postgres psql -U postgres
give:
psql (14.2 (Debian 14.2-1.pgdg110+1))
Type "help" for help.
select * from pg_stat_activity WHERE state='active';
give:
LINE 1: docker exec -it immich_postgres psql -U postgres
^

@alextran1502
Copy link
Contributor

Is this issue still relevant?

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

3 participants