-
1. Re: PortUtil - Hits Max Will Always Hand Out 65535
ron_sigal Mar 7, 2008 11:09 PM (in response to jcreynol)After getNextPort() returns MAX_LEGAL_PORT, the next call to getNextPort() will return MIN_UNPRIVILEGED_PORT.
-
2. Re: PortUtil - Hits Max Will Always Hand Out 65535
jcreynol Mar 7, 2008 11:20 PM (in response to jcreynol)Got it. Need to step through that a little slower. Thanks for the reply. Before I post another thread, I see that the docs say Connector has a default "socketTimeout" of 60000, but the default jboss-service.xml -- at least the one that was packaged with the 4.2.0 and 4.2.2 that I have, has this set at 600000. Beginning to think that's my issue and going to try a 60000 setting to see if that cleans things up a bit and more quickly frees up the WorkerThreads for re-use.
http://labs.jboss.com/jbossremoting/docs/guide/ch05.html#d0e2491493 <attribute name="Configuration"> 494 <!-- Using the following <invoker> element instead of the InvokerLocator above because specific attributes needed. --> 495 <!-- If wanted to use any of the parameters below, can just add them as parameters to the url above if wanted use the InvokerLocator attribute. --> 496 <config> 497 <!-- Other than transport type and handler, none of these configurations are required (will just use defaults). --> 498 <invoker transport="socket"> 499 <attribute name="dataType" isParam="true">invocation</attribute> 500 <attribute name="marshaller" isParam="true">org.jboss.invocation.unified.marshall.InvocationMarshaller</attribute> 501 <attribute name="unmarshaller" isParam="true">org.jboss.invocation.unified.marshall.InvocationUnMarshaller</attribute> 502 <!-- This will be port on which the marshall loader port runs on. --> 503 <!-- <attribute name="loaderport" isParam="true">4447</attribute> --> 504 <!-- The following are specific to socket invoker --> 505 <!-- <attribute name="numAcceptThreads">1</attribute>--> 506 <!-- <attribute name="maxPoolSize">303</attribute>--> 507 <!-- <attribute name="clientMaxPoolSize" isParam="true">304</attribute>--> 508 <attribute name="socketTimeout" isParam="true">600000</attribute>
Should a Jira issue be created to modify the socketTimeout in jboss-service.xml that ships in the default distribution? (or maybe the docs need to change?)
Thanks again for the speedy reply!
-John -
3. Re: PortUtil - Hits Max Will Always Hand Out 65535
ron_sigal Mar 7, 2008 11:32 PM (in response to jcreynol)Hmmm. Actually, that's an oversight in jboss-service.xml, since "socketTimeout" hasn't been used for quite a while. The current parameter is "timeout", so setting "socketTimeout" wouldn't have any effect. The default values are 60000 on the server and 1800000 on the client.
-
4. Re: PortUtil - Hits Max Will Always Hand Out 65535
jcreynol Mar 7, 2008 11:45 PM (in response to jcreynol)Thanks once again. I do see that this shows as timeout in the jmx-console for the Connector. Looks like the .xml and the docs need to be updated.
http://labs.jboss.com/jbossremoting/docs/guide/ch05.html#d0e2491Note that all the server side socket invoker configurations will be set to their default values in this case. Also, it is important to add CDATA to any locator uri that contains more than one parameter. The other way to configure the Connector and its server invoker in greater detail is to provide an invoker sub-element within the config element of the Configuration attribute. The only attribute of invoker element is transport, which will specify which transport type to use (e.g.. socket, rmi, http, or multiplex). All the sub-elements of the invoker element will be attribute elements with a name attribute specifying the configuration property name and then the value. An isParam attribute can also be added to indicate that the attribute should be added to the locator uri, in the case the attribute needs to be used by the client. An example using this form of configuration is as follows: <mbean code="org.jboss.remoting.transport.Connector" name="jboss.remoting:service=Connector,transport=Socket" display-name="Socket transport Connector"> <attribute name="Configuration"> <config> <invoker transport="socket"> <attribute name="numAcceptThreads">1</attribute> <attribute name="maxPoolSize">303</attribute> <attribute name="clientMaxPoolSize" isParam="true">304</attribute> <attribute name="socketTimeout">60000</attribute> <attribute name="serverBindAddress">192.168.0.82</attribute> <attribute name="serverBindPort">6666</attribute> <attribute name="clientConnectAddress">216.23.33.2</attribute> <attribute name="clientConnectPort">7777</attribute> <attribute name="enableTcpNoDelay" isParam="true">false</attribute> <attribute name="backlog">200</attribute> </invoker> <handlers> <handler subsystem="mock"> org.jboss.remoting.transport.mock.MockServerInvocationHandler </handler> </handlers> </config> </attribute> </mbean>
-
5. Re: PortUtil - Hits Max Will Always Hand Out 65535
ron_sigal Mar 7, 2008 11:58 PM (in response to jcreynol)Good catch. Thanks!