I have developed one java SDK microservice and deployed in Complicity tenant and subscribed from other tenant.
It works for few minutes after that it seem it stops working.
I don’t see any error in logs as well. What could be the reason ?
Any help would be greatly apricated. Thank you.
When the image of your service runs fine locally but runs in issues after deployment, this is often caused by the Service hitting the memory limits that are defined in cumulocity.json. But in this case, the service would restart rather than stop working/idling.
When you go to Administration > Ecosystem > Microservices > your-service and check the Tab “status”, are there any interesting Events (e.g. deployment-change events)?
One approach could be also to optimize your microservice memory usage. I don’t know your use case and implementation but in some scenarios it can be optimized by avoiding holding large objects in memory (which never get cleaned up by the GC properly). You can also monitor that by using prometheus endpoints and check if you might have a memory leak or something else.