Forum Discussion
raniazouari
Nov 08, 2023Copper Contributor
Azure App Service - Wordpress super slow and cURL error 28
Hello,
AJAX and API calls in a WordPress site hosted on Azure App Service are slow and returns 504 error timeout.
I verified that database and website are in the same Azure region (I'm usingAzure Database for MySQL flexible server)
I enabled "Always On" to keep web app always loaded
I verified the existance of Azure CDN
But always same error.
Can you help me please!
6 Replies
what is the plan of your webapp ?
- Tam-2360Copper Contributorการเรียก AJAX และ API ในไซต์ WordPress ที่โฮสต์บน Azure App Service อาจเกิดปัญหาในการโหลดหรือส่งกลับข้อผิดพลาด 504 หมดเวลา เนื่องจากหลายปัจจัย เช่น การกำหนดค่าของเซิร์ฟเวอร์ การประมวลผลของฐานข้อมูล การจัดการแคช หรือการป้องกันการโจมตี DDoS
เพื่อแก้ไขปัญหานี้ คุณควรตรวจสอบสิ่งต่อไปนี้:
- ให้แน่ใจว่าไซต์ WordPress และฐานข้อมูล MySQL มีการเชื่อมต่อที่มีประสิทธิภาพและมีความเสถียร
- ให้แน่ใจว่าไซต์ WordPress มีการอัปเดตเป็นเวอร์ชันล่าสุดและไม่มีปลั๊กอินหรือธีมที่ไม่เข้ากัน
- ให้แน่ใจว่าไซต์ WordPress มีการใช้งาน Azure CDN เพื่อเพิ่มความเร็วในการโหลดและลดการใช้ทรัพยากรของเซิร์ฟเวอร์
- ให้แน่ใจว่าไซต์ WordPress มีการป้องกันการโจมตี DDoS โดยใช้ Azure DDoS Protection Standard
- ให้แน่ใจว่าไซต์ WordPress มีการปรับแต่งการเรียก AJAX และ API เพื่อลดการร้องขอที่ไม่จำเป็นหรือที่ไม่ถูกต้อง
หากคุณทำตามขั้นตอนเหล่านี้แล้วยังพบปัญหา เข้าไปที่ Azure Portal เพื่อตรวจสอบ Application Insights, Log Stream, Diagnose and solve problems, Metrics, Alerts, Scale up (App Service plan) เพื่อค้นหาสาเหตุของปัญหา
หวังว่าคำแนะนำนี้จะช่วยคุณได้ - Hello, have you tried to scale up your app service ? Could you enable application insights and share some logs?
- Rania1811Copper Contributor
Yes I tried to scale up my app service but always I have the same error
- Could you share some screen shots from the env ? else we can schedule a call for that