Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] skywalking agent randomly occupies some ports during runtime. #11868

Closed
2 of 3 tasks
kamyuk opened this issue Feb 4, 2024 · 3 comments
Closed
2 of 3 tasks

[Bug] skywalking agent randomly occupies some ports during runtime. #11868

kamyuk opened this issue Feb 4, 2024 · 3 comments
Labels
backend OAP backend related. question End user question and discussion.

Comments

@kamyuk
Copy link

kamyuk commented Feb 4, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

Apache SkyWalking Component

Java Agent (apache/skywalking-java)

What happened

In my configuration file, there is no setting for ports 50990, 50991, and 50992. However, during runtime, I observed that SkyWalking is occupying these three ports. As a result, other services configured to use these ports are unable to start.

What you expected to happen

to fix the port setting

How to reproduce

check the TCP port occupancy

Anything else

No response

Are you willing to submit a pull request to fix on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

@kamyuk kamyuk added the bug Something isn't working and you are sure it's a bug! label Feb 4, 2024
@wu-sheng
Copy link
Member

wu-sheng commented Feb 4, 2024

Any outbound rpc will use a random port. That is how rpc works.

@wu-sheng wu-sheng closed this as not planned Won't fix, can't repro, duplicate, stale Feb 4, 2024
@Superskyyy
Copy link
Member

This is by design on the gRPC side, you may can force using a source port but that is in general a limited usecase, since grpc already picks a random unused port. You normally just need to make sure you bind other specific ports in advance.

@Superskyyy Superskyyy added question End user question and discussion. backend OAP backend related. and removed bug Something isn't working and you are sure it's a bug! labels Feb 4, 2024
@kamyuk
Copy link
Author

kamyuk commented Feb 5, 2024

This is by design on the gRPC side, you may can force using a source port but that is in general a limited usecase, since grpc already picks a random unused port. You normally just need to make sure you bind other specific ports in advance.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend OAP backend related. question End user question and discussion.
Projects
None yet
Development

No branches or pull requests

3 participants