Hi Eric
shutdownGracefully(seconds);
Thread.sleep(2000);
startup();

it consistently works. So this is a timing issue. The MBean-Method
shutdownGracefully returns, before the server sockets are closed. The
strange thing is, that I was not able to reproduce this issue in other
environments. Maybe this is because the machines in this environment are
much faster. The whole cluster-reload takes less than a second without
the sleep.

Could you please check the code for a bug! We need this feature to work
reliably.
I went through the code, and I do not see any issues,.. however, can you check the following on your different systems:

$ cat /proc/sys/net/ipv4/tcp_tw_reuse
$ cat /proc/sys/net/ipv4/tcp_tw_recycle

Those define how soon sockets can be reused, and I think this could be OS specific. Even for the ESB shutdown, I included a 3 second delay just to be safe, and I think something like what you discovered would be the best option

asankha


_______________________________________________
Esb-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

Reply via email to