just for your information, when im use in localhost this issue doesn't occur, the time taken to load the data only 1 sec meanwhile when I'm deploy the project in windows server the same data take 20 sec to load
Hello @lhakim12
It can be multiple things like by example:
Did you any measuring to find what makes the application slow? (Memory, filesystem, database, network itself)
Ps. Windows Server sounds like you try to run xampp in production. If I read the faq that is not advisable. See: https://www.apachefriends.org/faq_windows.html
Is XAMPP production ready?
XAMPP is not meant for production use but only for development environments. XAMPP is configured to be open as possible to allow the developer anything he/she wants. For development environments, this is great but in a production environment, it could be fatal.
lhakim12 liked this reply
Can you configure the slow queries log? How much memory and how many cores does the server have? Because sometimes the issue is not on the MySQL side.
lhakim12 liked this reply
Hello @tvbeek first of all thank you for replying my thread regarding the problem I'm facing. based on your question,
The database on the server, I download xampp, run the apache and MySQL and run my project in the vs code there. i run my project by using this command "PHP artisan serve --host=0.0.0.0" in the terminal inside the vs code.
I don't know how to answer this because someone else setup the windows server, I just access/remote the PC by using anydesk from my own laptop. p/s the person that setup the server have zero knowledge about laravel.
I'm not sure about this, cause I just paste my whole project there. what I use in my own laptop during development phase. the same thing I use in the deployment phase. the different just in localhost host I run the project using "PHP artisan serve" command, and in windows server I run the project using "PHP artisan serve --host=0.0.0.0".
remote using anydesk from my laptop
I don't know how to find the problem what makes the application slow.
yes, I'm trying to use xampp in production because I have zero knowledge about deployment. I'm only know about development only. i think this might be the cause to the problem that I'm facing. did you have any idea how can I overcome this?
thank you.
hi @edulazaro based on your question,
did you means check the data loadtime using something like clockwork when you ask about configure the slow query log?
the memory for the server is 16gb for ram and 4 core 2.3ghz for processor
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community