Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • L lou-server
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ARC-Support
  • public projects
  • lou-server
  • Issues
  • #1

Closed
Open
Created Jun 18, 2021 by Maik Messerschmidt@messerschmidtOwner

Zip file creating makes the server run out of memory, when there's too much data

The currently used Zip-Creation uses the machines' memory in order to create a zip file. This will make the request fail, if too much memory is used. We'll get an exception of this kind:

[2021-06-16 09:04:40] prod.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 3768584 bytes) {"userId":1,"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalErrorException(code: 1): Allowed memory size of 134217728 bytes exhausted (tried to allocate 3768584 bytes) at /var/www/app/server/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:147)
[stacktrace]
#0 {main}
"} 

Solution:

  • Write the zip to a file.
  • Redirekt the user to the file.
  • Delete the zipfile after this or after some time (I think Laravel has tools for that...)

Related: a247c7ce

Assignee
Assign to
Time tracking