Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

dynamically adjust memory allocation for PHP with large files #52

Open
bdolor opened this issue Apr 6, 2018 · 1 comment
Open

dynamically adjust memory allocation for PHP with large files #52

bdolor opened this issue Apr 6, 2018 · 1 comment
Assignees

Comments

@bdolor
Copy link
Contributor

bdolor commented Apr 6, 2018

Description

Large OpenStax books present memory challenges for PHP. If the server configuration is insufficiently resourced, the import will fail. Adjusting this value dynamically could diminish the likelihood of this happening. Values to target:

post_max_size
upload_max_size

Needed to get past https://github.com/pressbooks/pressbooks/blob/dev/inc/modules/import/class-import.php#L510

Perhaps also look at:

memory_limit

Expected behaviour

Some assurance of reliability for importing large files from URL.

Actual behaviour

Fatal error: Allowed memory size exhausted

Steps to reproduce the problem

https://cnx.org/exports/0889907c-f0ef-496a-bcb8-2a5bb121717f@2.49.zip/elementary-algebra-2.49.zip

see #50

System Information

  • Openstax Import for Pressbooks: [1.1.1]
  • Pressbooks: [5.2.1]
  • WordPress: [4.9.5]
@bdolor bdolor changed the title dynamically adjust memory allocation for PHP for large files dynamically adjust memory allocation for PHP with large files Apr 6, 2018
@bdolor bdolor mentioned this issue May 8, 2018
@bdolor bdolor self-assigned this May 9, 2018
@bdolor
Copy link
Contributor Author

bdolor commented May 11, 2018

related pressbooks/pressbooks#1211

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant