It's all about the answers!

Ask a question

How to control which port Jazz Build Engine uses?


ly work (111) | asked Jul 31 '14, 11:31 a.m.
In our nightly build and testing environment, it appears Jazz Build Engine opens a bunch of port randomly and do not properly close those ports:

here is an example:
/home/s888/s888/soft/jazz/buildsystem> lsof | grep -i 1897 | grep -i close_wait
java       1897       s888  111u     IPv6              59895      0t0      TCP mybuildserver:44730->myrtcserver:https (CLOSE_WAIT)
java       1897       s888  169u     IPv6           61034689      0t0      TCP mybuildserver:38965->myrtcserver:https (CLOSE_WAIT)
java       1897       s888  188u     IPv6              60025      0t0      TCP mybuildserver:44731->myrtcserver:https (CLOSE_WAIT)
java       1897       s888  199u     IPv6           48804442      0t0      TCP mybuildserver:39799->myrtcserver:https (CLOSE_WAIT)
java       1897       s888  200u     IPv6              59330      0t0      TCP mybuildserver:44726->myrtcserver:https (CLOSE_WAIT)
java       1897       s888  202u     IPv6              59511      0t0      TCP mybuildserver:44728->myrtcserver:https (CLOSE_WAIT)
java       1897       s888  203u     IPv6              59220      0t0      TCP mybuildserver:44723->myrtcserver:https (CLOSE_WAIT)
java       1897       s888  204u     IPv6              59439      0t0      TCP mybuildserver:44727->myrtcserver:https (CLOSE_WAIT)
java       1897       s888  205u     IPv6              59199      0t0      TCP mybuildserver:44722->myrtcserver:https (CLOSE_WAIT)
java       1897       s888  214u     IPv6              59569      0t0      TCP mybuildserver:44729->myrtcserver:https (CLOSE_WAIT)
java       1897       s888  220u     IPv6              55893      0t0      TCP mybuildserver:44691->myrtcserver:https (CLOSE_WAIT)
java       1897       s888  224u     IPv6              59241      0t0      TCP mybuildserver:44724->myrtcserver:https (CLOSE_WAIT)
/home/s888/s888/soft/jazz/buildsystem>

Those random port selection causes conflict to other running process periodically.

How do we configure Jazz Build Engine so that it use a fixed port or port range?

Thanks!


Comments
Anthony Kesterton commented Jul 31 '14, 3:14 p.m.
JAZZ DEVELOPER

This is interesting - I was under the impression (which could be totally wrong) that the Jazz Build Engine (JBE) only uses the https port specified when you start the JBE (to talk back to the RTC server).  Is it possible your build scripts are trying to do something on these ports?


Arne Bister commented Jul 31 '14, 3:44 p.m.
JAZZ DEVELOPER

Hi,

I second Anthony's opinion. JBE is a headless Eclipse RTC client so it should establish contact to the JTS via the standard URI with the standard port defined.
Can you please share what kind of build definitions are using the build engine and check that your build script is not the culprit? Any specific build ant tasks you are using in the script?

- Arne

2 answers



permanent link
Steven Wasleski (17633) | answered Jul 31 '14, 4:34 p.m.
JAZZ DEVELOPER
I suspect the question is about the client side port (the ones in the 30000's and 40000's above) and not the RTC server port. The JBE simply requests a free local socket and does not specify one. This is common practice for clients in a client/server relationship. These are called ephemeral ports and come in a range that is OS and OS version specific. On most systems you can change the default range. Here is a link to more information including links on how to set the range on many systems: http://www.ncftp.com/ncftpd/doc/misc/ephemeral_ports.html

I hope this helps.
Steve

permanent link
Mikhail Kuzmenko (1612) | answered May 06 '16, 7:02 p.m.
 I started jbe on build host successfuly.
Jbe waiting request,but I can't connect from client Eclipse. Jbe name the same on server and client. What could be the reason?

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.