# Gradle daemon process binds port but never releases it

**URL:** <https://discuss.gradle.org/t/gradle-daemon-process-binds-port-but-never-releases-it/6489>\
**Category:** Old Forum Archive\
**Created:** [August 14, 2012, 9:08am UTC](https://discuss.gradle.org/t/gradle-daemon-process-binds-port-but-never-releases-it/6489 "2012-08-14T09:08:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moritz](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Moritz](https://discuss.gradle.org/u/Moritz)\
**Post date:** [August 14, 2012, 9:08am UTC](https://discuss.gradle.org/t/gradle-daemon-process-binds-port-but-never-releases-it/6489/1 "2012-08-14T09:08:00Z")

</div>

Hey guys,

I’m currenlty experiencing some weirdness concerning the gradle daemon and running a task which is starting a tomcat (using the tomcat plugin by bmuschko). Once the task is started, the given port is bound to the gradle daemon process but never released, even it the task is done and the tomcat stopped. When not using the gradle daemon, everything works great. Is this a known issues with a workaround?

Cheers,

Moritz

---

<div class="post-metadata">

**Author:** ![bmuschko1](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/bmuschko1/32/7194_2.png) [@bmuschko1](https://discuss.gradle.org/u/bmuschko1)\
**Post date:** [August 14, 2012, 10:33am UTC](https://discuss.gradle.org/t/gradle-daemon-process-binds-port-but-never-releases-it/6489/2 "2012-08-14T10:33:00Z")

</div>

Hi Moritz,

This issue was reported before but we had found a workaround for it. Based on the importance of the Gradle daemon to the development process I am going to reopen the ticket on GitHub: [https://github.com/bmuschko/gradle-tomcat-plugin/issues/16](https://github.com/bmuschko/gradle-tomcat-plugin/issues/16). Future comments will be added to the issue on GitHub.

Thanks,

Ben

---

<div class="post-metadata">

**Author:** ![Moritz](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Moritz](https://discuss.gradle.org/u/Moritz)\
**Post date:** [August 14, 2012, 11:17am UTC](https://discuss.gradle.org/t/gradle-daemon-process-binds-port-but-never-releases-it/6489/3 "2012-08-14T11:17:00Z")

</div>

Sounds good to me 😉

---

<div class="post-metadata">

**Author:** ![vips](https://avatars.discourse-cdn.com/v4/letter/v/54ee81/32.png) [@vips](https://discuss.gradle.org/u/vips)\
**Post date:** [August 20, 2012, 4:45pm UTC](https://discuss.gradle.org/t/gradle-daemon-process-binds-port-but-never-releases-it/6489/4 "2012-08-20T16:45:00Z")

</div>

What is the workaround for this issue? Since I am having the same issue.

---

<div class="post-metadata">

**Author:** ![Moritz](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Moritz](https://discuss.gradle.org/u/Moritz)\
**Post date:** [August 20, 2012, 4:47pm UTC](https://discuss.gradle.org/t/gradle-daemon-process-binds-port-but-never-releases-it/6489/5 "2012-08-20T16:47:00Z")

</div>

Turning off the gradle daemon works for us. It’s a little annoying because of the longer startup times but it works.

---

<div class="post-metadata">

**Author:** ![luke\_daley](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/luke_daley/32/9890_2.png) [@luke\_daley](https://discuss.gradle.org/u/luke_daley)\
**Post date:** [August 21, 2012, 9:34am UTC](https://discuss.gradle.org/t/gradle-daemon-process-binds-port-but-never-releases-it/6489/6 "2012-08-21T09:34:00Z")

</div>

All discussion for this issue is moving to the GitHub project for the Tomcat plugin. Once this issue is resolved I’ll update this topic.

The link to the GitHub issue is here: [https://github.com/bmuschko/gradle-tomcat-plugin/issues/16](https://github.com/bmuschko/gradle-tomcat-plugin/issues/16)
