This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
During AS installation incorrect port checking procedure invoked. For example default ports for HTTP and HTTPS access are 8080 and 8181. If port is already in use then next port checked and so on - this is correct. But in case of heavy ports occupation then all ports from 8080 to 8181 are already in use followed error appear. Installer checks ports from 8080 to first unused, say 8280 and select this value as unused. Then checks ports from 8181 to first unused again 8280. To prevent this already found unused ports should be used by installer or should be treated as used.
Nice find. I thought it is possible but never go to really try it :) Anyway, the is installer should not allow to proceed, as the ports are duplicate.
-> M10
Fixed. Now the available ports search algorithm takes into account an (optional) list of forbidden ports, and this list is correctly populated by the glassfish settings panel.
Verified. BTW I know another one interesting combination but one is hardly unrealizable... Just a question for now: what will come if all ports from say 8080 to 64K already occupied? If all ports occupied?
I guess OS will die earlier.
Hm. Nice. The current logic will return 65536, which would be invalid. So the user will not be able to proceed, but we could do better and inform that there are no available ports. File another issue?
Yes, I successfully occupied just less then 10K ports :) So will you answer my "just a question"?
Sure I'll file.