# Too slow latency and error break down

**URL:** <https://community.temporal.io/t/too-slow-latency-and-error-break-down/6015>\
**Category:** Server Deployment\
**Tags:** java-sdk\
**Created:** [September 19, 2022, 4:08pm UTC](https://community.temporal.io/t/too-slow-latency-and-error-break-down/6015 "2022-09-19T16:08:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![minhmv](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@minhmv](https://community.temporal.io/u/minhmv)\
**Post date:** [September 19, 2022, 4:08pm UTC](https://community.temporal.io/t/too-slow-latency-and-error-break-down/6015/1 "2022-09-19T16:08:34Z")

</div>

I have two question :

1. temporal frontend show warn log. what doesn’t this mean ?  
{“level”:“warn”,“ts”:“2022-09-19T15:23:00.983Z”,“msg”:“Context timeout is lower than critical value for long poll API.”,“service”:“frontend”,“wf-handler-name”:“PollWorkflowTaskQueue”,“wf-poll-context-timeout”:18.530926065,“logging-call-at”:“util.go:628”}
2. when monitoring the temporal dashboard, service latency and service error breakdown too slow.  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/temporal/original/2X/e/eddf17d7864fbc3d77c435c05f2895ef455c63f6.png)

---

<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:** [September 19, 2022, 4:46pm UTC](https://community.temporal.io/t/too-slow-latency-and-error-break-down/6015/2 "2022-09-19T16:46:36Z")

</div>

> Context timeout is lower than critical value for long poll API

This is a warning server message coming from [here](https://github.com/temporalio/temporal/blob/master/common/util.go#L606). The critical grpc timeout is set to [20s](https://github.com/temporalio/temporal/blob/master/common/constants.go#L81).

Seems that you have a timeout set thats lower that than. Do you have a gRPC proxy by chance that you client calls go through which has timeout set to \<20s?

---

<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:** [September 19, 2022, 4:49pm UTC](https://community.temporal.io/t/too-slow-latency-and-error-break-down/6015/3 "2022-09-19T16:49:51Z")

</div>

For 2) whats’ the top service latencies operations, can’t really tell from your graph.  
I think if you wanted to go over maybe some performance tuning things you would need to describe your deployment in more details.

---

<div class="post-metadata">

**Author:** ![minhmv](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@minhmv](https://community.temporal.io/u/minhmv)\
**Post date:** [September 20, 2022, 4:09pm UTC](https://community.temporal.io/t/too-slow-latency-and-error-break-down/6015/4 "2022-09-20T16:09:55Z")

</div>

Hi @tihomir ,  
for 1 , after I increse timeout of workflow, the temporal frontend always log error  
“level”:“error”,“ts”:“2022-09-20T15:11:01.876Z”,“msg”:“unavailable error”,“operation”:“PollWorkflowTaskQueue”,“wf-namespace”:“temporal-system”,“error”:“error reading from server: read tcp 10.244.4.123:33692-\>10.244.9.72:7235: read: connection reset by peer”,“logging-call-at”:“telemetry.go:187”,“stacktrace”:"[go.temporal.io/server/common/log](http://go.temporal.io/server/common/log).  
I don’t know that port 33692-\>7235.

---

<div class="post-metadata">

**Author:** ![minhmv](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@minhmv](https://community.temporal.io/u/minhmv)\
**Post date:** [September 20, 2022, 4:48pm UTC](https://community.temporal.io/t/too-slow-latency-and-error-break-down/6015/5 "2022-09-20T16:48:44Z")

</div>

for 3, I have a question. When my system have no request but worker\_task\_slots\_available value increse from 10 to 1000. Seem that have a process use slot of the worker.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/temporal/original/2X/7/7727c21060d200d2f53188a5cf80e5823aabe41b.png)
