Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fetching catalog.json takes a lot of time in che-theia #19202

Closed
vinayb21 opened this issue Mar 3, 2021 · 7 comments
Closed

Fetching catalog.json takes a lot of time in che-theia #19202

vinayb21 opened this issue Mar 3, 2021 · 7 comments
Labels
area/editor/theia Issues related to the che-theia IDE of Che kind/question Questions that haven't been identified as being feature requests or bugs.

Comments

@vinayb21
Copy link

vinayb21 commented Mar 3, 2021

Bug Description:
When Theia is loaded, I have observed that there is a long freeze before actually fetching catalog.json file

Steps to Reproduce:

  • Create a Theia IDE using che-theia image and respective che plugin registry
  • Check the network tab (Chrome or firefox)
  • There is a big delay before the actual fetching of catalog.json
@vinayb21 vinayb21 changed the title Issues needs to be filed on the main Eclipse Che repository Fetching catalog.json takes a lot of time in che-theia Mar 3, 2021
@azatsarynnyy azatsarynnyy transferred this issue from eclipse-che/che-theia Mar 3, 2021
@azatsarynnyy
Copy link
Member

Hello @vinayb21
could you please clarify what is catalog.json file and where it fetched from? Is it related to any plug-in?
I don't remember catalog.json file being used in Che-Theia.

@vinayb21
Copy link
Author

vinayb21 commented Mar 3, 2021

@azatsarynnyy
Copy link
Member

@vinayb21 have you observed the same behavior in vanilla Theia?

@vinayb21
Copy link
Author

vinayb21 commented Mar 4, 2021

@azatsarynnyy In vanilla Theia, the waiting time is around 200-250ms
image
For Gitpod:
image
For self hosted Che-theia:
image

For Gitpod and self hosted che-theia:
The combined Initial connection and SSL are taking more than 1.3 seconds (waiting time is similar to plain theia)

Do you know if there is a fix for this?

@azatsarynnyy
Copy link
Member

@vinayb21 I believe that's how azurewebsites.net responds.
I've checked it with cURL:
curl 'https://schemastore.azurewebsites.net/api/json/catalog.json' -w 'Total: %{time_total}s\n'
and got Total: 0.945549s

@vinayb21
Copy link
Author

vinayb21 commented Mar 4, 2021

@azatsarynnyy Can we move this catalog.json to some CDN with lower latency. Thoughts?
curl 'https://schemastore.azurewebsites.net/api/json/catalog.json' -w 'Total: %{time_total}s\n'
For me, it's Total: 1.821044s

@azatsarynnyy
Copy link
Member

@vinayb21 I propose to discuss it in a single place. Let's continue upstream eclipse-theia/theia#9149 as obviously, it's not Che-Theia specific.

@azatsarynnyy azatsarynnyy added area/editor/theia Issues related to the che-theia IDE of Che kind/question Questions that haven't been identified as being feature requests or bugs. labels Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/editor/theia Issues related to the che-theia IDE of Che kind/question Questions that haven't been identified as being feature requests or bugs.
Projects
None yet
Development

No branches or pull requests

2 participants