Win2008 - Jenkins slave generates a lot of FIN_WAIT_2 socket status

18 views
Skip to first unread message

morten bjoernsvik

unread,
Aug 19, 2015, 3:34:14 AM8/19/15
to Jenkins Users
Hi All

We have this irritating problem when restarting jenkins that it hangs with port already in use:

INFO: Winstone shutdown successfully
aug 10, 2015 11:57:41 AM winstone.Logger logInternal
SEVERE: Container startup failed
java.io.IOException: Failed to start Jetty
at winstone.Launcher.<init>(Launcher.java:156)
at winstone.Launcher.main(Launcher.java:354)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at Main._main(Main.java:293)
at Main.main(Main.java:98)
Caused by: java.net.BindException: Address already in use: bind

I've tailed it to slave communication leaving a lot of sockets in FIN_WAIT_2 state, which
will time out after around 120sec unless slave sends again and reset the timer:
https://msdn.microsoft.com/en-us/library/windows/hardware/ff550023%28v=vs.85%29.aspx

when they are gone it starts fine.We are running latest Jenkins 1.624. But I've not done anything on the slave
it just starts a jekins.war file. should this also be updated?

$ netstat -nao | grep ":8080" | grep FIN_WAIT_2
  TCP    10.11.1.82:8080        10.11.1.75:52425       FIN_WAIT_2      5860
  TCP    10.11.1.82:8080        10.11.1.75:52426       FIN_WAIT_2      5860
  TCP    10.11.1.82:8080        10.11.1.75:52427       FIN_WAIT_2      5860
  TCP    10.11.1.82:8080        10.11.1.75:52428       FIN_WAIT_2      5860
  TCP    10.11.1.82:8080        10.11.1.75:52430       FIN_WAIT_2      5860
  TCP    10.11.1.82:8080        10.11.1.75:52431       FIN_WAIT_2      5860
  TCP    10.11.1.82:8080        10.11.1.75:52432       FIN_WAIT_2      5860
  TCP    10.11.1.82:8080        10.11.1.75:52433       FIN_WAIT_2      5860
  TCP    10.11.1.82:8080        10.11.1.75:52434       FIN_WAIT_2      5860
  TCP    10.11.1.82:8080        10.11.1.75:52435       FIN_WAIT_2      5860
  TCP    10.11.1.82:8080        10.11.1.75:52436       FIN_WAIT_2      5860
  TCP    10.11.1.82:8080        10.11.1.75:52437       FIN_WAIT_2      5860

--
Morten Bjoernsvik, Oslo, Norway
Reply all
Reply to author
Forward
0 new messages