Skip to content

[TT-2396] - Large file upload causes out of memory #2357

Open
@l-lin

Description

Do you want to request a feature or report a bug?
Bug / question

What is the current behavior?

I'm trying to upload a large file (~2GB) through the gateway, however it crashes with the following error:

tyk_gateway      | fatal error: runtime: out of memory                                                                         
tyk_gateway      |                                                                                                                               
tyk_gateway      | runtime stack:                                                                                                                 
tyk_gateway      | runtime.throw(0xf170fd, 0x16)                                                                               
tyk_gateway      |      /usr/local/go/src/runtime/panic.go:616 +0x81                                                                         
tyk_gateway      | runtime.sysMap(0xc520800000, 0x100000000, 0x0, 0x16f75b8)                                                                      
tyk_gateway      |      /usr/local/go/src/runtime/mem_linux.go:216 +0x20a
...

What is the expected behavior?

Does Tyk support large file uploads? I did not find anything on the documentation about how to configure Tyk to support large file uploads.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

  • Start Gateway
  • Create API definition to httpbin.org
  • Try to upload a large file and notice

Which versions of Tyk affected by this issue? Did this work in previous versions of Tyk?

2.8.1 (from latest docker image)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions