Possible portrange.randomized problems?

Mike Silbersack silby at silby.com
Wed Jun 2 00:44:48 PDT 2004


I've been informed that there have been some reports of problems with
MySQL connections failing due to randomized ephemeral ports.  If you're
one of the people affected, could you check a few things and then contact
me?

Things to check:

1.  Are the stuck sockets / failing connections sticking in the SYN_SENT
state?

2.  Does the range of ports in use look like it's relatively random, or do
you see only a small amount of your portrange being used?  (The portrange
is 1024 to 5000 by default.)

3.  Does setting net.inet.ip.portrange.randomized=0 solve the problem for
you?

Thanks,

Mike "Silby" Silbersack


More information about the freebsd-stable mailing list