my sugar instance is taking too long to authenticate

my sugar instance is taking around 15 seconds to authenticate user both from web and rest API, what is the problem?