Score:0

Laravel App on Server takes high CPU

ag flag

I have a larvel app that runs very smooth and quick on my localhost, but when I push it to my server and run the deployment environment there (same as on my localhost), sometimes the app is very slow and in htop I see:

/us/bin/php8.1 -S 0.0.0.0:80 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Console/../resources/server.php

The path /var/www/html/ does not exist in my host - I assume this is the binded past in the sail container.

I'm running the latest Laravel & Sail.

The CPU Usage is 100% and the server specs are: 4vCPU with 8 GB RAM. In docker stats I see a CPU usage of ~105%.

The question is: How can I debug this process? I want to know, what behind that process creates such a high peak.

If you need any further information about my setup, let me know and I'll keep this question up to date.

Btw: I noticed, but maybe it's not true, this happens, when a Livewire component is displayed. But could be misleading.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.