Status 504 (Gateway Timeout Issue)

Hi Team,   When I try to run custom java action in my local machine it is working fine as expected but when I deploy the same code to server it is throwing status 504 gateway timeout issue. I also set the microflow settings to asynchronous but still the issue persist. How to overcome this issue? Thanks in advance.
1 answers

I could able to see only this content in the log console