Does anyone know why Wordpress on Xampp causes a long time to first byte, around 10-15 sec? I'm running on 100mbit box, latest Xampp and latest Wordpress.
If we even can help you with this, I think that more information is needed - if you are running it locally, network connection speed shouldn't matter. Maybe the specs of your machine, stuff like that.
On a slightly more helpful note (:-):
Try running a network sniffer such as Wireshark (or using Task Manager) to check what traffic is actually going through the network - is it full?
Is there a process taking up lots of CPU time, or thrashing the disk a lot?
Check the speed of the MySQL database
Try redownloading Wordpress and XAMPP, just to be sure
Re-install Wordpress (ie, run setup.php again)
Run the initialisation batch script for XAMPP
These are only wild suggestions, so I'm not sure how useful they will be.
Related
We have some files on our portal that aren't that big to me: 50MB-80MB. On my home connection, it takes <10seconds to download these files. I've had other users test and they experience the same thing.
However, in the office, the connection is terrible. These files don't even download because once the download time gets to about 30-35 seconds, even though it is downloading (just incredibly slow), it triggers a non-descriptive error in the Developer Tools > Network and stops the download. Not seeing anything in any logs that indicates why the download is terminated.
The bigger problem is we now have a few end users with crappy internet who are also experiencing the same issue.
So I'm trying to figure out what we can do on our end. Obviously, we can't tell them, "Well, just get better internet service." It seems like there can be something done on our end to persist the download until it is completed. What that is, I'm not quite sure and that is what I'm looking for help on. Maybe it is a default setting in a dependency somewhere in our stack.
ReactJS FE that uses FileSaver.js for downloads
Django BE using native Django downloading
nginx-ingress for traffic ingress controller to the Kubernetes cluster
The FE uses nginx to serve the FE
The BE uses gunicorn to serve the BE
Any suggestions on what I should do to prevent this timeout on downloads?
I'm thinking the issue is somewhere with nginx-ingress, nginx, and/or FileSaver.js, so investigating those.
Per Saurabh, adjusting the timeout did the trick. I now just start the web server with the -t 300 flag and the users that were having issues no longer do.
I have made a website in WordPress on GoDaddy Linux Hosting. I am getting an error after each edit in WordPress backend that all the resources are getting utilized and site stops working due to CPU usage, physical memory and I/O processes being filled completely.
Is there any way to resolve this problem?
Thanks
First thing you can do is to disable all plugins and check again for high CPU load.
If this solves the problem then you should activate your plugins again one by one and check if your CPU load.
You can also use Query Monitor to check what cause that high CPU load.
Another thing you should check is the PHP version installed on server. On cPanel you should have something like MultiPHP Manager. Change the PHP version to 7.x.
We had the same problem in the last few days
After the used php 7.3, the problem was completely solved
my server load went up to 52, but now it's under 1. Of course, there were other problems that created some areas of databases (not my WordPress script).
also you can see all sql process in phpmyadmin: from top tab-> Status Status -> process
if you access root server and need to Upgrading PHP with EasyApache for php 7.3 Need to select this
php73-pear
php73-php-cli
php73-php-common
php73-php-devel
php73-php-fpm
php73-php-ftp
php73-php-litespeed
php73-php-mysqlnd
php73-php-pdo
php73-php-posix
php73-php-xml
php73-runtime
php73-scldevel
High CPU in WP can be helped by improving the indexes on wp_postmeta as discussed here:
http://mysql.rjweb.org/doc.php/index_cookbook_mysql#speeding_up_wp_postmeta
It happens because the resources you are using are not optimized.
You can go to cpanel>optimize site> and put the mime types you want to optimize eg. img/png img/jpg.
This might help you out.
You need to contact to your hosting provider and upgrade your plan for high resources. Or you can contact your developer to optimize the site code to reduce the CPU usage.
Regards,
We have one particular site that is Symfony and uses the e-commerce bundle Sylius.
Our developers are trying to use Vagrant so we can have similar dev environments. We use Puphpet to generate the Vagrant instance and share the config file.
If we are working on the site/repo natively or on a staging server, all runs fine. Pages load in around 2-3 seconds.
When we are using Vagrant / Virtualbox, it's 30-35 seconds per page load.
So far we've tried
Allocating up to 6GB to the box
Giving up to 4 processors to the box
Turning on NFS for file sync
Turning off all other programs on computers running Vagrant / Virtualbox (chat, other browsers, etc)
None of those things made an impact on page load time.
I can provide 2 things. One is the load trace from Symfony: https://nimbus.everhelper.me/client/notes/share/708707/mvw707mckzm2wq4rlkzc
Since there is so much code to the puphpet config, I put it in a pastebin here: http://pastebin.com/7ciVA5FL
What is OS on a host machine?
My guess would be that file system is slow. Try to run an app outside of shared folder on the guest machine. If it will be fast, then you'll spot a problem at least.
NFS on *nix or mac should be fast enough, are you sure you've succeed to turn it on?
I had this pain once, and finally started to use unison instead of native vagrant's file sharing system (https://www.cis.upenn.edu/~bcpierce/unison/)
Have your tried:
http://www.whitewashing.de/2013/08/19/speedup_symfony2_on_vagrant_boxes.html
or http://jeremybarthe.com/2015/02/02/speed-up-vagrant-environment-symfony2/
I think the first one is already included in Sylius, but not sure.
Also, dynamic image resize/crop may be reading/writing in the host file system and maybe there's a way to also change that (using symlinks or similar)?
vagrant-winnfsd works fine for me for getting NFS to work on Windows.
I have been experiencing MySQL crashing recently and really need to figure out what I need to do to get this to stop.
I have a 2GB Digital Ocean server running the following:
Ubuntu 14.04
PHP v5.5.9
Apache v20120211
MySQL v5.5.43
Wordpress v4.2
I also have 2GB of swap.
The last time MySQL crashed this was in my error log
http://laravel.io/bin/E304E
The important part seems (to me) to be this
InnoDB: Fatal error: cannot allocate memory for the buffer pool
I am getting about 2000 page views per day. I thought this should be easily enough memory to run the site.
Can anyone give me some ideas what I can do or what I definitely need to do to stop this happening?
Thanks
2000 page views per day is well within the range of what your server can handle. It's possible you're getting hit by bots and/or Apache isn't configured well for your server size.
Apache2Buddy is a quick diagnostic tool to help with your Apache configurations. $ curl -L http://apache2buddy.pl/ | perl. It'll print out a report with suggested configuration adjustments given your RAM available and application size. My guess is that you'll need to update MaxRequestWorkers (located at /etc/apache2/mods-available/mpm_prefork.conf) to something smaller.
I'm also guessing that you have bots hitting your site, which is causing the huge volume of traffic that is crashing Apache. Check your access logs $ cat /var/log/apache2/access.log.
I wrote an article on this situation if you want a deeper explanation, a method to stress test, or ideas on how to block some of the bot traffic: http://brunzino.github.io/blog/2016/05/21/solution-how-to-debug-intermittent-error-establishing-database-connection/
I'm running WordPress on lamp install in a virtual machine. I frequently pause it, save snapshots, etc. Date and time aren't correct because of this and I think I noticed weird behavior of plugins that use cron. How do I fix my time and plugins? Maybe I should get time from an external location so it would be correct even though I regularly pause my machine?
In my experience, running WindowsXP via VMware on OS X, Windows updates the system time a minute or two after I start the VM after a pause. If that happens, you should be able to manually trigger Wordpress cron and as a result WP and plugins should update. Wordpress docs for wp_cron