You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling the service directly, the download streams fine, however when calling through Zuul it seems to download the file to zuul first and then stream it from there.
This becomes for large file downloads especially when running in GB's, file download starts only after entire file is read in Zuul filter, this frces us to use really large heap size and other performance issues.
We debugged the code and looks like problem happens during
That loops over untill entire file is read. I tried sending the request as /zuul/...
but nothing helped, please let me know if there is a way out ? we are totally stuck.
The text was updated successfully, but these errors were encountered:
When calling the service directly, the download streams fine, however when calling through Zuul it seems to download the file to zuul first and then stream it from there.
This becomes for large file downloads especially when running in GB's, file download starts only after entire file is read in Zuul filter, this frces us to use really large heap size and other performance issues.
We debugged the code and looks like problem happens during
private void writeResponse(InputStream zin, OutputStream out) throws Exception {
byte[] bytes = buffers.get();
int bytesRead = -1;
while ((bytesRead = zin.read(bytes)) != -1) {
out.write(bytes, 0, bytesRead);
}
}
in org.springframework.cloud.netflix.zuul.filters.post.SendResponseFilter
That loops over untill entire file is read. I tried sending the request as /zuul/...
but nothing helped, please let me know if there is a way out ? we are totally stuck.
The text was updated successfully, but these errors were encountered: