Apps Manager slowness when loading large number of items
search cancel

Apps Manager slowness when loading large number of items

book

Article ID: 385208

calendar_today

Updated On:

Products

VMware Tanzu Application Service

Issue/Introduction

The issue occurs with Tanzu Platform for Cloud Foundry v6.0.0~v6.0.10 releases. It takes significant long time for loading a long list of items in Apps Manager web UI, the items could be organizations, applications, other types of objects or mix combination of them.

Environment

Tanzu Platform for Cloud Foundry v6.0.0~v6.0.10

Cause

The problem is due to pagination configuration. In previous TPCF 4.0 releases, the items can be listed are listed up to 50 per page. However in TPCF v6.0.0~v6.0.10, the pagination is no properly functioning so that all items are listed in one page. Because listing each items involving multiple CAPI calls to backend, the concurrent calls can only be processed by 5 working threads in Apps Manager. As the result, it takes significant long time to load all items. 

Resolution

The issue will be fixed in TPCF v6.0.11. 

The temporary workaround is: 

  1. Target system space: cf target -o system -s system
  2. Find active apps manager instance: cf apps | grep apps | grep started
  3. Update env variable: cf set-env apps-manager-js-[ green or blue ] API_PER_PAGE 50
  4. Restage apps manager to apply changes cf restage apps-manager-js-[ green or blue ]