Hello shaikasiefhussain,
After reviewing the GC log report you provided, I have noticed that your application has been allocated only 120mb of memory. I am concerned if this amount is enough for your application to run smoothly. Inadequate memory allocation may result in an out-of-memory (OOM) condition, which can cause an exit with code 143. I suggest investigating further if this amount of memory is sufficient for your application's needs:
-
Normal Termination: A pod can receive a SIGTERM signal when it's being gracefully terminated, typically by a Kubernetes control plane component, or by a user when deleting a pod or scaling down a deployment. In this case, the application should have a chance to clean up any resources and exit gracefully.
-
Custom Signal Handling: Your application code may have custom signal handling, where it responds to SIGTERM by doing specific actions before exiting. Check your application code for any signal handling logic.
-
Kubernetes Configuration: Review your Kubernetes deployment or pod configuration to ensure that there are no unusual termination conditions or preStop hooks that might be sending SIGTERM.
-
Logs: Inspect the logs of your pod to see if there are any error messages or indications of what might be causing it to receive the SIGTERM signal.
-
Resource Limits: Ensure that you've set appropriate resource limits and requests for CPU and memory in your pod configuration. Resource constraints can lead to unexpected terminations.
-
Container Health: Check the health of the container itself. It might be experiencing crashes due to a bug or an external issue.
-
Check Dependencies: If your application relies on external services or dependencies, ensure that those services are available and responsive.
-
Kubernetes Events: Look at Kubernetes events for your pod and node to see if there are any relevant events that provide more information about the termination.
-
Kubernetes Version: Sometimes, issues like this can be related to the version of Kubernetes or the underlying infrastructure. Make sure you are running a stable and supported version.
Edit your Comment