bootRun issue while running application

we have upgrade spring boot 1.x with Gradle 2.x to Spring boot 2.7.18 and Gradle 8.5.
after migration, when we use “./gradlew bootRun” to run application
after 1hr application shutdown automatically . but for old version application is running for long time.

By using java -jar option , application is running for days.
when “./gradlew bootRun --debug” is used , application run for days

please help me to debug this issue

Is there a reason you are running that task for so long?
Running a Gradle task is not something you should do in production.
Gradle is a build tool, not an application executor.

Why it stops after an hour, I can just wildly guess, though, you probably have to debug what is happening.