CA API Management: OAuth Manager is slow to load

Document ID : KB000008699
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

The OAuth manager (/oauth/manager) can be slow to load sometimes taking several minutes to render the page.

This applies to the login screen as well as all client and token management. While the pages will eventually load without any noticeable errors there are extreme delays.

Environment:
API Management Gateway with the OAuth Toolkit installed and configured
Cause:

When there are no other contributing factors, such as network latency, this problem typically stems from a failure to load the "jquery.min.js" Javascript.

This is loaded as part of each screen and if inaccessible will severely delay the load time.

 

Resolution:

To resolve the issue we will need to load the jquery script using ONE of these methods:

1. Ensure https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js is accessible from your Gateway. This can be done with a simple curl command via SSH. If this is not accessible you will need to configure access from your network or edit the firewall rules to allow access

[root@ssg]# curl -v https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js

2. Host the file internally on a web server accessible to the Gateway. The variable named 'js' can be changed in the below policies and the script source set to your internally hosted file.

policies.png

js.png

 

3. Lastly, you can embed the jquery script directly in the variable

 

min.png

 

Additional Information:

As of OTK 4.1 these changes can be made, however please be advised that in the future these policies will be read only and this changes will no be possible through a direct change.