Jenkins gradle-kotlin build generating demon kill error

Hi there ,

I am getting daemon disappear or kill error on my Jenkins gradle build on one of my project. It is also generating heapoutofmemory issue.

I have tried all the possible ways of creating gradle. Properties file, creating java_opts, gradle_opts variable and increase memory size even update on .bash file on Linux.

Any help will be really appreciated.
Already spend 2 days.