Skip to content

Token generation request - Performance issue for Marklogic based authentication with concurrent users #178

@MayuriSivanesan

Description

@MayuriSivanesan

We have used marklogic based authentication for our koop-provider application and have begun load testing of about 100 concurrent users. With every request the time taken to fetch the token gradually increases. Some of them taking nearly more than 70secs to complete token generation request. This causes request timeout error after about 24 concurrent requests through the koop provider. We have also added the diagnostic data for better understanding.
The REST endpoint we tried to access: https://myhost/marklogic/token
And the time taken to complete each response is shown as graph in the attached image
MicrosoftTeams-image (3)
And this the error log we get on server multiple times for concurrent request
{"address":"","code":"ETIMEDOUT","errno":"ETIMEDOUT","level":"error","port":,"syscall":"connect"}
{"level":"debug","message":"resolving connection error connectionInfo:"}
{"level":"debug","message":{"error":true,"errorMsg":"connect ETIMEDOUT :"}}
{"level":"debug","message":"response from connectClient: "}
{"level":"debug","message":{"error":true,"errorMsg":"connect ETIMEDOUT :"}}
{"level":"debug","message":"MarkLogic error"}
Error: connect ETIMEDOUT :
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1144:16) {
errno: 'ETIMEDOUT',
code: 'ETIMEDOUT',
syscall: 'connect',
address: '',
port:
}
Error: connect ETIMEDOUT :
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1144:16) {
errno: 'ETIMEDOUT',
code: 'ETIMEDOUT',
syscall: 'connect',
address: '',
port:
}
{"level":"debug","message":"error occurred:"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions