'Out of Memory error in Netflix zuul (AWS) even I gave 6 GB -Xmx

enter image description here

enter image description here

I have added -Xmx to 6GB but still I am getting this error. When I am trying to upload a large file in Springboot application via Zuul. I can able to upload upto 600 MB file. I need to make it 4 GB.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source