# Health check java-sdk

**URL:** <https://community.temporal.io/t/health-check-java-sdk/4012>\
**Category:** Community Support\
**Tags:** java-sdk\
**Created:** [February 16, 2022, 6:14pm UTC](https://community.temporal.io/t/health-check-java-sdk/4012 "2022-02-16T18:14:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aswath\_Murugan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/aswath_murugan/32/162_2.png) [@Aswath\_Murugan](https://community.temporal.io/u/Aswath_Murugan)\
**Post date:** [February 16, 2022, 6:14pm UTC](https://community.temporal.io/t/health-check-java-sdk/4012/1 "2022-02-16T18:14:38Z")

</div>

Hi Team,  
Is there any java example to implement temporal server health check.

Thank You.

---

<div class="post-metadata">

**Author:** ![tihomir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tihomir/32/6580_2.png) [@tihomir](https://community.temporal.io/u/tihomir)\
**Post date:** [February 16, 2022, 8:38pm UTC](https://community.temporal.io/t/health-check-java-sdk/4012/2 "2022-02-16T20:38:14Z")

</div>

You can run run the same check as what  
`tctl cluster health` does with for example:

```auto
        GetClusterInfoResponse res = client
                .getWorkflowServiceStubs()
                .blockingStub()
                .getClusterInfo(GetClusterInfoRequest.newBuilder().build());
         // res.getClusterId();
         // res.getServerVersion();
         // res.getPersistenceStore();
         // ...

```

hope this helps
