Long Network response time #415
Replies: 12 comments 11 replies
-
Yes, I've had the same on long-running projects. I have never found the course. The task manager doesn't show any bottlenecks. I have a long-running project with 800 tests, running an in-memory SQLite database.
It's not only a network response time. It's fine for a new project on Laragon. At least on newer, different OS and hardware. This is one of the reasons I do a clean install, rather than an upgrade of Laragon (see How to update? #405), the "new install" appears to fly, for a short time. My colleagues have also complained their Laptops are slow. We are due a hardware refresh:
Even though I 💖 Laragon, I can't figure out the problem. Why does exactly the same code run x4 slower on my old Windows laptop? Is it a slowing of the SSD? Anti-virus? Big log file? MySQL log? Conflict of some sort? 🤷 It doesn't seem to be a Laragon problem, as it runs fine on my personal laptop. I will be staying with Lagon on that. My personal projects are usually short-lived, small databases. |
Beta Was this translation helpful? Give feedback.
-
Excuse me for my English, but I gave a solution to a slow response from the network, more than anything associated with the connection to the MySQL database, I updated it to MaríaDB and these are the steps to follow:
You can comment if this solution turned out to be perfect for me since it was taking up to 3 seconds to load anything simple, with this it was in less than 1 second. |
Beta Was this translation helpful? Give feedback.
-
Clearly an issue with Windows... I tried to deploy my code on a cloud hosting, it worked like a charm |
Beta Was this translation helpful? Give feedback.
-
Having the same problem, I can't find a solution to it. Note that when I do |
Beta Was this translation helpful? Give feedback.
-
Check if it takes the same time via Note: It was the browser that was |
Beta Was this translation helpful? Give feedback.
-
Don't get me wrong, but browsing speed on local development servers, is always related to hardware/system speed, it really doesn't have much to do with LARAGON. You can point your finger at apache/mysql/php configurations, but not at LARAGON. Check your "applications" (apache/mysql/php) settings and see where it can be improved... For instance if you have 16GB of RAM, increase the RAM available to mysql for instance... If you have a 12core CPU increase the number of PHP processes, etc. But, as mentioned, and in my opinion, this has nothing to do with LARAGON per say. |
Beta Was this translation helpful? Give feedback.
-
@mohamedds-12 : Can you provide further information:
|
Beta Was this translation helpful? Give feedback.
-
It does not use Apache! |
Beta Was this translation helpful? Give feedback.
-
I suspect on my side an issue with the default conf of mysql. With blank projects, there is no slowdown. I have tried to use mysql in a blank project and a simple query, it worked but maybe with more complex queries... |
Beta Was this translation helpful? Give feedback.
-
Hello,
Interesting observation, but not ODD at all. In fact this is an artefact of DNS resolution.
Any time DNS resolution is required you are adding seconds to any transaction.
Unfortunately, with any production site, you will need to use DNS.
With a home DEV setup you can cheat a little bit. 127.0.0.1 is an OLD low level IP HACK that is built into any modern-day TCP/IP v4 compatible setup.
You specify the IP, you save DNS, and you shave seconds off your process.
It’s not odd, it’s just how it works.
Just like a V6 is faster than a V4 engine.
++++
Andres M. Partridge-Rios
From: prathamesh-gharat ***@***.***>
Sent: Thursday, April 6, 2023 11:44 AM
To: leokhoa/laragon ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [leokhoa/laragon] Long Network response time (Discussion #415)
I am not sure if my observation is specific to my system or Windows in general.
I am on Windows 10.
I had a WordPress website with DB_HOST configured as 'localhost'
Switching to '127.0.0.1' shaved off around 1.5 second. Really odd.
—
Reply to this email directly, view it on GitHub <#415 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAOYYIYSJ2MQCKWSWRHRUS3W73QEVANCNFSM6AAAAAAVED4J7Y> .
You are receiving this because you are subscribed to this thread. <https://github.com/notifications/beacon/AAOYYI76JOYIMPRXCAAMTK3W73QEVA5CNFSM6AAAAAAVED4J72WGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAKSOKM.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
-
I was puzzled by this issue testing a Drupal install locally on Laragon 6. A page takes forever (minutes) to load. I tried it on a "Private Browsing" instance of FF and it was loaded in a blink of an eye. I'm guessing it has to do with browser/cache! |
Beta Was this translation helpful? Give feedback.
-
If I ever come back to this, issue is misconfigured DNS. No idea how, where or why, however, I found a solution. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have been using Laragon for quite a long time now and network response time is very long when I refresh a page (between 5s and 13s). I have tried a lot of things (changing the database host from localhost to 127.0.0.1, removing some chunks of the code, ...) but I am a bit stuck and it's really painful...
I have tried to start a fresh laravel install, or a fresh wordpress install, but it does the same. However, when I start a blank project, I have no network issue (even when I try to make a mysql connection). So I imagine there may be something with laragon config or something...
Anyone has already experienced that ?
Thanks a lot,
Beta Was this translation helpful? Give feedback.
All reactions