Pod Issue - Container is getting restarted throwing Java Head Memory Issue

Hi All,

one of the spinnaker clouddriver pod is restarting frequently.Logs are showing below error -

Did anyone faced come across below issue

java.lang.OutOfMemoryError: Java heap space

2022-10-31 15:21:42.426 ERROR 1 — [lTaskScheduler5] o.s.s.s.TaskUtils$LoggingErrorHandler : Unexpected error occurred in scheduled task

java.lang.OutOfMemoryError: Java heap space

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “http-nio-0.0.0.0-7002-Acceptor”
2022-10-31 15:21:42.426 ERROR 1 — [gentScheduler-0] c.n.s.c.r.c.ClusteredAgentScheduler : Unable to run agents

java.lang.OutOfMemoryError: Java heap space

2022-10-31 15:22:16.765 ERROR 1 — [lTaskScheduler1] o.s.s.s.TaskUtils$LoggingErrorHandler : Unexpected error occurred in scheduled task

java.lang.OutOfMemoryError: Java heap space

Regards,
Cherish

Hello @t.sreenivasulu,

Are you following any labs/courses? Can you share how the cluster is setup and how you create the pod?

Thanks,
Trung.

Hi Trung,

no,its not in kodekloud env - Can you brief more what are the things need to check cluster setup and pod side.

Thank You,
Cherish