Skip to content
New issue

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

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

Already on GitHub? # to your account

Servers hang for one minute during startup #2699

Open
tharikaGitHub opened this issue Jun 4, 2020 · 0 comments
Open

Servers hang for one minute during startup #2699

tharikaGitHub opened this issue Jun 4, 2020 · 0 comments

Comments

@tharikaGitHub
Copy link
Member

Description:
In the server startup we observed an excessive usage of getConnectionId() method [1] and in other publisher/store functions. With our current implementation of the method, connectionId has been constructed as follows.

connectionId = (connectionMetaData.getUserName() != null ? connectionMetaData.getUserName().split("@")[0] : connectionMetaData.getUserName()) + "@" + connectionMetaData.getURL();

connectionMetaData.getUserName() is executing internal DB queries to get the User name from the database continuously, which causes the performance impact with some of the environment conditions (eg: slow network). As we analyzed this has caused the slowness in the server startup and other functionalities in all the environments.

[1]

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant