# Idle server keeps restarting (considered dead by other servers)

**URL:** <https://discuss.hangfire.io/t/idle-server-keeps-restarting-considered-dead-by-other-servers/8795>\
**Category:** question\
**Tags:** sql-server, dashboard, aspnetcore, dotnetcore\
**Created:** [November 17, 2021, 5:58pm UTC](https://discuss.hangfire.io/t/idle-server-keeps-restarting-considered-dead-by-other-servers/8795 "2021-11-17T17:58:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![inasnum23](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/inasnum23/32/2746_2.png) [@inasnum23](https://discuss.hangfire.io/u/inasnum23)\
**Post date:** [November 17, 2021, 5:58pm UTC](https://discuss.hangfire.io/t/idle-server-keeps-restarting-considered-dead-by-other-servers/8795/1 "2021-11-17T17:58:28Z")

</div>

This one server keeps restarting, apparently due to heartbeat  
The other similar 14 are fine  
.NET 5 all idle for now 1 in Kubernetes (Linux) the others as Windows services  
Sharing an SQL Server

 ![1](https://europe1.discourse-cdn.com/flex017/uploads/hangfire/original/2X/4/48741473635e00a5e388e126c84cf743cbf3ab7d.png)

![2](https://europe1.discourse-cdn.com/flex017/uploads/hangfire/original/2X/2/2f1249b06b911bd10067f777903c40174c38ff06.png)

08:06:22 W 52 Server some-server\_ef5bc0c1-d2ae-4e1a-83a8-c2eafeba1b50:11148:5a94ab8a **was considered dead by other servers, restarting…**  
08:06:22 W 12 Server some-server\_ef5bc0c1-d2ae-4e1a-83a8-c2eafeba1b50:11148:5a94ab8a stopped non-gracefully due to ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler. Outstanding work on those dispatchers could be aborted, and there can be delays in background processing. This server instance will be incorrectly shown as active for a while. To avoid non-graceful shutdowns, investigate what prevents from stopping gracefully and add CancellationToken support for those methods.

```
HeartbeatInterval: TimeSpan.FromSeconds(15),
SchedulePollingInterval: TimeSpan.FromSeconds(15),
ServerCheckInterval: TimeSpan.FromMinutes(5),
ServerTimeout: TimeSpan.FromMinutes(5),
ShutdownTimeout: TimeSpan.FromSeconds(15),
SQL Server CommandBatchMaxTimeout: TimeSpan.FromMinutes(5),
SQL Server CommandTimeout: TimeSpan.FromSeconds(30),
SQL Server DisableGlobalLocks: true,
SQL Server QueuePollInterval: TimeSpan.Zero,
SQL Server SlidingInvisibilityTimeout: TimeSpan.FromMinutes(300),
SQL Server TransactionTimeout: TimeSpan.FromSeconds(30),
SQL Server UseRecommendedIsolationLevel: true

```

Tried changing the values above around, no luck so far  
Any help please?
