Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

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 -0500

samajatnahi's avatar

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

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 -0500

Ester's avatar
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's avatar samajatnahi  ( 2019-10-28 15:14:14 -0500 )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's avatar Ester  ( 2019-10-29 02:43:52 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


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

Seen: 535 times

Last updated: Oct 28 '19