Unexpected ports in use

Description

Need an option to configure the ports we are using internally. When the cluster contains few hosts, these ports are in use also between the hosts. When a customer needs to start other applications in parallel on the same hosts and these applications are using fix ports we have a problem.
We are using these unconfigurable ports:
1. Between GSM and GSC we are using unconfigurable ports for Service Lease Renewal.
2. Between LUS and GSC we are using unconfigurable ports for Lookup Locator Discovery.
3. Between GS-UI and GSC, GSM,LUS for presentation.

How to reproduce:
1. edit setenv-override.sh and add:
export EXT_JAVA_OPTIONS='-Dcom.gs.multicast.discoveryPort=4174 -Dcom.gigaspaces.system.registryPort=10098 -Dcom.gigaspaces.start.httpPort=7104 -Dcom.gs.transport_protocol.lrmi.bind-port=5100-5600'
2. increase lrmi log level:
com.gigaspaces.lrmi.level = ALL
3. start gs-agent with 1 gsm 1 lus and 2 gsc
4. run netstat -vanp tcp | grep <gsc pid>
5. check that this gsc is connected to ports that are out of range.
yuval-pc:bin yuval$ netstat -vanp tcp | grep 1360
tcp4 0 0 127.0.0.1.61354 127.0.0.1.5102 ESTABLISHED 405237 146988 1360 0 0x0002 0x00000008
6. From the GSC log:
2019-03-18 11:27:01,141 GSC FINER [com.gigaspaces.lrmi] - At CPeer.invoke method, trying to invoke method [Landlord.renew] [invoker address=/127.0.0.1:61354, ServerEndPoint=NIO://yuval-pc:5102/pid[1342]/1137947483965806_2_-9034068455827685758_details[class org.jini.rio.resources.servicecore.LandlordLessor]]
2019-03-18 11:27:01,141 GSC FINEST [com.gigaspaces.lrmi] - At CPeer.invoke, thread stack:
at com.gigaspaces.lrmi.nio.CPeer.detailedLogging(CPeer.java:397)
at com.gigaspaces.lrmi.nio.CPeer.invoke(CPeer.java:634)
at com.gigaspaces.lrmi.ConnPoolInvocationHandler.invoke(ConnPoolInvocationHandler.java:79)
at com.gigaspaces.lrmi.MethodCachedInvocationHandler.invoke(MethodCachedInvocationHandler.java:76)
at com.gigaspaces.lrmi.DynamicSmartStub.invokeRemote(DynamicSmartStub.java:449)
at com.gigaspaces.lrmi.DynamicSmartStub.invoke(DynamicSmartStub.java:429)
at com.gigaspaces.reflect.$GSProxy8.renew(Unknown Source)
at com.sun.jini.landlord.LandlordLease.doRenew(LandlordLease.java:122)
at com.sun.jini.lease.AbstractLease.renew(AbstractLease.java:93)
at org.jini.rio.cybernode.ServiceConsumer$ProvisionLeaseManager.run(ServiceConsumer.java:567)

7. From the GSM log:
2019-03-18 11:01:24,733 GSM FINE [com.gigaspaces.lrmi] - Connected new client from /127.0.0.1:61354 endpoint.

8. grep other gsc: netstat -vanp tcp | grep 7347
tcp4 0 0 127.0.0.1.5101 127.0.0.1.55778 ESTABLISHED 408041 146988 7347 0 0x0102 0x0000000c
9. From the UI log:
From GS-UI log (
2019-03-18 14:19:20,676 FINER [com.gigaspaces.lrmi] - At CPeer.invoke method, trying to invoke method [ServiceBeanAdmin.getServiceElement] [invoker address=/127.0.0.1:55778, ServerEndPoint=NIO://yuval-pc:5101/pid[7347]/1149114757857645_2_-1657996422403625764_details[class org.jini.rio.cybernode.CybernodeAdminImpl]]
2019-03-18 14:19:20,674 FINEST [com.gigaspaces.lrmi] - At CPeer.invoke, thread stack:
at com.gigaspaces.lrmi.nio.CPeer.detailedLogging(CPeer.java:397)
at com.gigaspaces.lrmi.nio.CPeer.invoke(CPeer.java:634)
at com.gigaspaces.lrmi.ConnPoolInvocationHandler.invoke(ConnPoolInvocationHandler.java:79)
at com.gigaspaces.lrmi.MethodCachedInvocationHandler.invoke(MethodCachedInvocationHandler.java:76)
at com.gigaspaces.lrmi.DynamicSmartStub.invokeRemote(DynamicSmartStub.java:449)
at com.gigaspaces.lrmi.DynamicSmartStub.invoke(DynamicSmartStub.java:429)
at com.gigaspaces.reflect.$GSProxy3.getZones(Unknown Source)
at com.gigaspaces.admin.ui.grid.gsc.ServiceTreeTableModel$ServiceUserObject.<init>(ServiceTreeTableModel.java:495)
at com.gigaspaces.admin.ui.grid.gsc.ServiceTreeTableModel.createServiceUserObject(ServiceTreeTableModel.java:307)
at com.gigaspaces.admin.ui.grid.gsc.ServiceTreeTableModel.createServiceNode(ServiceTreeTableModel.java:249)
at com.gigaspaces.admin.ui.grid.gsc.ServiceTreeTableModel.addService(ServiceTreeTableModel.java:871)
at com.gigaspaces.admin.ui.grid.gsc.HostGSCsComponent.addService(HostGSCsComponent.java:902)

10. Regarding the LUS we have seen this kind of messages in the GSC log:
2019-03-18 11:41:01,203 GSC FINEST [com.gigaspaces.lrmi] - <-- Read packet [ReplyPacket: result = 59997]
2019-03-18 11:41:06,598 CommonClassLoader FINER [com.gigaspaces.lrmi] - At CPeer.invoke method, trying to invoke method [Registrar.getLocator] [invoker address=/127.0.0.1:61226, ServerEndPoint=NIO://yuval-pc:5100/pid[1351]/1137946120448642_2_-1206870256420337986_details[class com.gigaspaces.grid.lookup.ServiceGridRegistrar]]
2019-03-18 11:41:06,599 CommonClassLoader FINEST [com.gigaspaces.lrmi] - At CPeer.invoke, thread stack:
at com.gigaspaces.lrmi.nio.CPeer.detailedLogging(CPeer.java:397)
at com.gigaspaces.lrmi.nio.CPeer.invoke(CPeer.java:634)
at com.gigaspaces.lrmi.ConnPoolInvocationHandler.invoke(ConnPoolInvocationHandler.java:79)
at com.gigaspaces.lrmi.MethodCachedInvocationHandler.invoke(MethodCachedInvocationHandler.java:76)
at com.gigaspaces.lrmi.DynamicSmartStub.invokeRemote(DynamicSmartStub.java:449)
at com.gigaspaces.lrmi.DynamicSmartStub.invoke(DynamicSmartStub.java:429)
at com.gigaspaces.reflect.$GSProxy4.getLocator(Unknown Source)
at com.sun.jini.reggie.RegistrarProxy.getLocator(RegistrarProxy.java:231)
at net.jini.discovery.LookupLocatorDiscovery$LookupAliveTask.run(LookupLocatorDiscovery.java:1681)

Workaround

None

Acceptance Test

None

Status

Assignee

Unassigned

Reporter

Yuval Dori

Labels

None

Priority

Minor

SalesForce Case ID

12228

Fix versions

None

Commitment Version/s

None

Due date

None

Product

XAP

Edition

Open Source

Platform

All