

Ask Your Question

pass debug ports to GSCs

I need to start 4 GSCs and be able to remote debug. But when I start GSCs with following command : bin/gs.sh host run-agent --gsc=4, only one starts and other 3 do not because they can't bind to the debug port that's set in the environment.

Is there a way to start 4 GSCs separately and then have them join the same group (single GSA), so each one of the GSCs could be customized in some way? Thanks.

asked 2019-10-25 14:29:48 -0600

samajatnahi gravatar image

updated 2019-10-28 15:13:03 -0600

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

Hi, You have to give each a different port, you can do so by using the agent id environment variable and add it to the initial port.

Regards, Ester.

answered 2019-10-27 03:18:33 -0600

Ester gravatar image
edit flag offensive delete link more


Thanks Ester. Could you give me an example of how I would do this?

Where would I set the agentId?

samajatnahi gravatar imagesamajatnahi ( 2019-10-28 15:14:14 -0600 )edit

Hi, In the setenv-overrides script where you set the debug port use : your_base_port + ${AGENT_ID} You can also echo this variable to see its value. The AGENT_ID is just a running number that the GSA gives to the components its manage, you can set your own running number or start each gsc as different service giving it different parameters.

Regards, Ester.

Ester gravatar imageEster ( 2019-10-29 02:43:52 -0600 )edit

Your Answer


Add Answer

Question Tools


Asked: 2019-10-25 14:22:00 -0600

Seen: 73 times

Last updated: Oct 28