aimeos / ai-admin-jqadm

Aimeos e-commerce Vue.js+Bootstrap based admin interface
https://aimeos.org
GNU Lesser General Public License v3.0
182 stars 43 forks source link

Slow JS respond #228

Closed Ameeko closed 2 years ago

Ameeko commented 2 years ago

Hello! It happens very often that when I enter the admin interface, the "/admin/default/jqadm/file/js?locale=en" responds very slowly. After 10-12 seconds, the response arrives and the page starts working. There is no problem with internet speed and other websites. Only this request is slow. What is the problem?

image

image

aimeos commented 2 years ago

Do you use AWS or another cloud service? The "file" action collects all CSS or JS files from the file system and sends them concatenated to the browser

Ameeko commented 2 years ago

I don't use AWS. This is a standard web hosting service, the largest hosting company in my country. :( Could it be a server setup problem? The weird thing is that only this request is slow.

aimeos commented 2 years ago

All other requests only execute PHP files from the OPCache but this request actually reads several file from the disk. It's likely that there's a problem with the read performance of small files.

Ameeko commented 2 years ago

Sorry to write about this again, but I'm already moving to the third hosting and it works poorly everywhere. I really don't know how to solve this.

image

image

aimeos commented 2 years ago

Do these providers all use the same infrastructure?

You can add some debug statements here to see where the time is wasted: