Application Pool hang and keeps loading - php

I have a problem. We have an in house server in our office. It's a super computer server running windows server 2016. Then we developed our own mobile app that's hosted on our in house server and we used PHP and IIS for web services for our mobile app.
Before it was running smoothly and then for some reason sometimes the Application Pool hangs like if I access the url API it's just keeps loading. I don't have any idea what's the problem. I added Worker Process and it works and I thought that's the solution. And then after 2 days we encountered same problem.
So every time it happens were down for 5 to 10 minutes. So I need to recycle or switch the application pool to another application pool so I can stop and start again the application pool that I used for that API.
BTW, the app we developed is for uploading of pictures and sending JSON base64 images with maximum of 8 pictures and we have 500 users.
Do you all guys any idea on how to resolve this problem? I'm struggling right now. Please I need help!

Related

Joomla on Azure Web App - performance issues

I'm trying to get Joomla running on Azure Web Apps but the performance is terrible. 3-5 second response time no matter what operation I'm doing.
Tried the Bitnami VM and it runs much much smoother, so the problem is obviously in the web app. Have tried both Cleardb and the internal mysql preview db and both give the same laggy result. It doesn't matter what sized machines I run on, they all lag.
The only thing I haven't tried is upgrading the Cleardb database from the free tier to the paid ones, simply because my subscription doesn't allow it. Since I see the same performance issue with the internal mysql db this should not matter.
My guess is that this is an issue with PHP and IIS. Anyone with similar experience, and possibly a solution?

GAE with Laravel / Lumen extremely slow

I have a server hosted on DigitalOcean responding within 70-300ms window depending on the request. The same code when hosted on GAE external or local server response time goes up 3 times even when I put dd('test') in index.php file. It's clear GAE PHP interpreter is extremely slow. Did anyone experience this problem and fixed it?
What I found out is it takes longer for GAE to boot laravel or even lumen than it takes my 5$ DigitalOcean server to respond! It's ridiculously slow.

How to monitor PHP Laravel web application processes?

I would like to know how could I monitor my web application processes locally? This is because my production site on my current hosting (bluehost), it is showing several processes for my web app and api (around 35 - 40) which cause the application to load infinitely.
When I am running it on my local machine, there's no problem and the application works flawlessly. It is too hard to replicate the scenario since it only occurs on my web hosting. I have several websites hosted there and it seems that only my Laravel application has the issue. My wordpress and Codeigniter apps works smoothly.
I have contacted support already and according to them, it is regarding the code that caused the performance issue but I do not see any mistake in my code since it works fast on my local.
I already used caching for it, routes and database, yet problem still persists.
try running $ php artisan optimize in deployment and ensure that Config::get('app.debug') is not true.

TTFB too high on one computer, not on another

I have a web app for hotel that monitors guest checkin running in PHP/MySQL.
The checkin interface is composed of ajax calls that return data for a checkin to complete. The server where the web app is installed has a TTFB of 3.58 seconds.
What I did is I copied the web files and the whole database for comparison.
I installed xampp on my computer. Tried to run the same process, I got 100ms.
There are not much differences except that their server is faster than my home computer. All files and database is the same. What could be the culprit?
Here's my screenshot of Chrome's debugger tools (Home computer)
And here's their server
I hope I provided all the information you guys need to troubleshoot the issue.
I appreciate all the help I can get. Thank you.

How to fix server response time error showing in Google Pageinsights?

I have hosted my magento website on a VPS having 3GB RAM & 2CPU core. Even having free memory of approximately 1.9GB I am still facing server response time problems. I am using Apache web server.
Please help me to get rid of this problem.

Categories