Performance issue for token endpoint

Hi All,
While getting refresh token in keycloak response is very slow.
What could be possible reason of slowness ? Other part is working fine it is just that /token endpoint taking long time.