# Kafka Broker shuts down often

**URL:** <https://forum.confluent.io/t/kafka-broker-shuts-down-often/4840>\
**Category:** Ops\
**Created:** [22 April 2022 03:38 UTC](https://forum.confluent.io/t/kafka-broker-shuts-down-often/4840 "2022-04-22T03:38:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aiyer100](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@aiyer100](https://forum.confluent.io/u/aiyer100)\
**Post date:** [22 April 2022 03:38 UTC](https://forum.confluent.io/t/kafka-broker-shuts-down-often/4840/1 "2022-04-22T03:38:02Z")

</div>

We are running a dev environment on Windows with Kafka Broker and our own Kafka Producer and Consumer implementation using Java.

After running the broker for a day or so, the broker just goes down. Due to logs folder getting filled up. We manage by cleaning up the tmp\kafka-logs folder and then restarting Kafka Broker.

Obviously, this is not an option in production. Please suggest how we could fix this. We are running Kafka on windows.

I googled this and some solutions suggested were using Kafka as a docker container or running it on Linux. We could also have an automatic batch file to periodically restart Kafka/clean up the logs. But that is not a good idea at all in production.

Please suggest if there is any config change or any other solution to solve this.

---

<div class="post-metadata">

**Author:** ![mmuehlbeyer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/mmuehlbeyer/32/1088_2.png) [@mmuehlbeyer](https://forum.confluent.io/u/mmuehlbeyer)\
**Post date:** [22 April 2022 06:30 UTC](https://forum.confluent.io/t/kafka-broker-shuts-down-often/4840/2 "2022-04-22T06:30:21Z")

</div>

Hi @aiyer100

welcome to the forum 🙂

did you already check the log files of the broker?

In general it should not be necessary to restart the Kafka broker periodically.

Basically I think a proper planning for you production system is needed.  
I would recommend to run the dev (and maybe integration) system with the same config and structure - despite of the hardware sizing the same power might not be needed for dev and int

Furthermore I would recommend also to run the whole Kafka stack on Linux  
Perhaps it might be good to get a step back and think about the needs (size, performance,integration) of your Kafka env and the plan accordingly.

Best,  
michael
