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

[Nextcloud] - Increase PHP Memory Limit #1771

Open
dennysubke opened this issue Nov 8, 2024 · 2 comments
Open

[Nextcloud] - Increase PHP Memory Limit #1771

dennysubke opened this issue Nov 8, 2024 · 2 comments

Comments

@dennysubke
Copy link
Contributor

Description:

When using the Nextcloud app, the following PHP error appears:

allowed memory size of 536870912 bytes exhausted (tried to allocate 53248 bytes)

This error indicates that the current PHP memory_limit (512 MB) may be insufficient for the Nextcloud instance. As a result, the application may experience crashes or functional limitations, especially when handling larger files or data-intensive operations.

Proposed Solution:

To address this issue, it is recommended to increase the memory_limit for PHP in the docker-compose.yml file of the Nextcloud app to 1024 MB (1 GB). This adjustment could help prevent memory shortages and improve the stability of the Nextcloud instance.

Suggested Change for docker-compose.yml:

    environment:
      - PHP_MEMORY_LIMIT=1024M  # Increase memory limit to 1GB

Additional Information:

This modification should ensure that Nextcloud remains stable even during memory-intensive operations. Raising the memory_limit may provide improved performance and reliability without requiring deeper changes to the application.

Note:

It may be helpful to review the potential impacts on system resource management before making this adjustment.

Perhaps this change could be considered for the next version update?

@nmfretz
Copy link
Contributor

nmfretz commented Nov 8, 2024

Thanks for this @dennysubke! Added a note in #1682

@dennysubke
Copy link
Contributor Author

Thanks for this @dennysubke! Added a note in #1682

Best man!

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