All Questions
Tagged with performance nginx
136
questions
0
votes
0
answers
71
views
Http outperformed Http2 ,why, please help me to figure out?
I'm currently conducting performance testing on my NGINX web server container and I'm encountering some unexpected results. My tests show that HTTP performance is outperforming HTTP/2, despite SSL and ...
0
votes
1
answer
61
views
How to determine nginx/HTTPS encryption is my bottleneck?
I'm using a Digital Ocean droplet (like an EC2 host), it's Ubuntu 22.10, and running a node.js application. However, and this may be a bad idea, I'm running nginx on the same host and the application ...
0
votes
0
answers
76
views
Performance for static files (HTML, CSS and JS) of PHP Server - CDN vs NGINX
Without going too much into detail to avoid that this question becomes opinion-based; so talking from a purely technical perspective: When you currently have a PHP-Apache setup, both PHP and Apache ...
-1
votes
2
answers
401
views
nginx and php-fpm waiting for server too long
I am using docker to mount nginx and a PHP-FPM using Phalcon Framework and React as the front end
`upstream fastcgi_backend {
server bfy-%APP_VERSION_UID%_buildify-php-fpm_1:90%FPM_PORT_PREFIX%;
}
...
0
votes
0
answers
108
views
Slow server performance due to Google Bot and Ahrefs Bot
I have a VPS server with 64 CPU cores and 128 GB RAM running on Debian. I have noticed that Google Bot from IP address 66.249.66.0/24 and Ahrefs Bot from IP addresses 54.36.148.0/24 and 54.36.149.0/24 ...
1
vote
2
answers
83
views
Nginx performance issues
I made a website using React and connected to Strapi. But I need to keep some background videos mainly on the home page.
The main banner has 4 videos and the background of the page is also a video.
...
0
votes
1
answer
917
views
Nginx cache for frequent and different requests
I have a service.
This service has a GET handle(/api/v1/retrieve_blocks).
This handle's requests and responces are small, no more than 1024 characters.
regular situation:
this handle is constantly ...
0
votes
1
answer
2k
views
WordPress with Nginx + PHP-FPM sometimes slow where slowlog pointing to wp-config.php (PHP 8.1)
I have a recent WordPress 6 installation with MariaDB and PHP 8 FPM running on Docker. Sometimes, request on the frontend have a slow response time on the main HTML document. In this example, one of ...
0
votes
1
answer
90
views
What could be causing twitterbot to take 6s to download small image assets?
Many (most) times twitter makes http requests for certain images, the response time (as recorded by nginx in the logs) takes 6s. Yet other sites (e.g. facebook) and sometimes twitter, typically get ...
0
votes
1
answer
85
views
Assume platform performance based on Nginx - ngx_http_stub_status_module
Nginx is placed in front of a microservice architecture on which we don't have any insight. We retrieve the metrics exposed by the http stub status and would like to compute an indicator of the ...
0
votes
0
answers
517
views
Cache Images centrally
Application: Serve responsive and optimized images on the fly by cropping/resizing/compressing master images
Current Load: 10k request per minute, ~60MBps traffic.
Current Config : NginxPlus LB sits ...
0
votes
0
answers
827
views
PHP+Nginx response time too much
I'm running a php-fpm server behind an nginx reverse proxy which is simply serving phpinfo to benchmark the response time. The response time (using postman) for the phpinfo page is around 150ms which ...
1
vote
1
answer
457
views
nginx under high traffic: network goes down when log writes to disk?
An VPS with 2 vCPUs, with Ubuntu 20.04 and nginx.
Nothing changed regarding to loging: neither on nginx, rsyslogd, or journald.
I launch ab (apache-benchmark) from a nearby VPS, like this:
ab -k -c ...
0
votes
1
answer
108
views
Are multiple location blocks faster than multiple regex rewrites in a single block?
In the config pitfalls of the nginx docs, it's mentioned that regex should be kept simple. Well, in my case I can avoid it altogether and I wonder if that's going to matter in terms of performance.
I ...
0
votes
1
answer
64
views
What is a dispatcher?
I have a wordpress site that was running slow so I signed up for stackify to get a performance profile of server. I dont get the same slow down on baremetal and localhost running the same site. This ...
0
votes
1
answer
302
views
Will using reverse proxy negate the effect of CDN?
Goal: Serve a specific sub directory of a domain from a different CDN (cloudfront in our case). We are thinking of utilizing Nginx as a reverse proxy to achieve this.
For example, the following ...
1
vote
0
answers
917
views
Production server much slower then local test server when sending large request
I am running a django app and I am trying to send an API POST-request which is pretty big to my production server.
Now the problem is that what takes 4 seconds locally takes 1 minute in production. ...
0
votes
1
answer
76
views
Strictly segregate traffic in nginx reverse proxy?
I have nginx configured as a reverse proxy. It proxies two upstreams not under my control: Speedy and Flaky.
Speedy has consistently high uptime and consistently low response times.
Flaky sometimes ...
26
votes
4
answers
7k
views
Is it reasonable to use NFS on a production web server?
Can NFS be reasonably used on production servers as a means of connecting a compute server to a storage server, assuming the connection is over a LAN 1Gbe or 10Gbe connection?
There's obviously some ...
2
votes
2
answers
1k
views
How costly are nginx variables?
nginx FAQ Is there a proper way to use nginx variables to make sections of the configuration shorter, using them as macros for making parts of configuration work as templates? ) saying (bold is mine):
...
3
votes
1
answer
4k
views
Pages load only when you restart php-fpm
So here's more context in a GIF
Notice how pages do not load on link clicks, but as soon as you run service php7.2-fpm restart it instantly loads the page and like that with every page.
What is ...
0
votes
1
answer
2k
views
Nearly 100% disk utilization after upgrading to debian 10 without any reason
We recently upgraded our servers to debian 10. The setup is completely the same as with debian9 beside of course some new software packages.
We are running the default kernel:
$ uname -a
Linux ...
0
votes
0
answers
217
views
nginx slower than apache2
I migrate my nextcloud-instance from apache2 to nginx and I hoped that is faster than apache, but it isn't. We've around 30requests/s on this page.
With apache2 I've 160req/s and with nginx I got ...
0
votes
1
answer
84
views
NGINX: At which point should a webserver with multiple websites on one process be separated?
Currently looking at rebuilding a webserver from running 10-20 websites on a single Apache server to a NGINX proxy setup with separate docker stacks for each website.
However I noticed the current ...
3
votes
1
answer
8k
views
Litespeed vs Nginx high-traffic server performance? [closed]
Most top-level (high-traffic) websites use Nginx web servers. This community has many members who are experts about systems and servers, so I want to ask for feedback on which server can handle top-...
2
votes
0
answers
2k
views
Streaming proxied responses with gzip on nginx
I have an nginx reverse proxy in front of a node.js backend server. In my node app, I am able to stream responses as they become ready, so that the client can start downloading resources referenced in ...
1
vote
2
answers
2k
views
Serving a static website with nginx. Response time over 600 milliseconds. What’s wrong?
I serve a wordpress blog with nginx http cached to over 99% of the requests with a cache lifetime of 2 days. Here’s a webpage from the site. The webpages have quite a few images and therefore lazy ...
0
votes
1
answer
274
views
Linux Ubuntu disk usage
Currently, I have a streaming dedicated server, below you will be able to see server details:
HDD: 12TB HDD
RAM: 64GB
Processor: Intel® Core™ i7-6700 Quad-Core Skylake Hyper-Threading
Network speed: ...
0
votes
1
answer
2k
views
Can not run Brotli on my Nginx server
I installed Brotli on Ubuntu 18.04 with Nginx.
Here is the procedure I followed :
$ sudo apt-add-repository ppa:hda-me/nginx-stable
$ sudo apt update
$ sudo apt install brotli nginx nginx-module-...
4
votes
2
answers
10k
views
How to install Brotli on nginx and Ubuntu 18.04?
I installed Brotli on Ubuntu 18.04 with Nginx.
Here is the procedure I followed :
$ sudo apt-add-repository ppa:hda-me/nginx-stable
$ sudo apt update
$ sudo apt install brotli nginx nginx-module-...
3
votes
4
answers
5k
views
Nginx thousands of server config files very slow to reload (nginx -s reload)
I have one master nginx.conf where I include the rest of my servers (sever blocks) with the include directive:
include myservers/*.conf;
My problem is when I have a new configuration file in ...
2
votes
1
answer
872
views
Mariadb 1000% CPU [closed]
I have a big problem with my site (Laravel based), I have from 1000 to 1500 contemporary visitors, and I have a problem with mariadb, practically when people use filters, and other options that ...
3
votes
1
answer
2k
views
How to eliminate chunked response delay from NginX?
We have a cascade of two NginX reverse proxies in front of a Java web server.
The first proxy runs on FreeBSD (11.1-RELEASE-p10) load balancers and proxies all internet traffic into the internal ...
6
votes
2
answers
4k
views
Nginx: Optimizing server response time for a HTTP cached website
I have a website with all of the pages served from nginx’s http cache and rarely invalidated or expired.
The average total page download size is around 2 MB
But despite being a static site with no ...
0
votes
1
answer
5k
views
Nginx performance drops significantly when I enable https (slower 30 times than http only) & 12 times slower than Apache https
I have an Angular website with static assets of around 1.5 mb and gzipped it is around 400 kb, I have nginx as my webserver & reverse proxy to the API server, when I test nginx with Apache ...
0
votes
0
answers
532
views
SSD performance on Ubuntu + Nginx
I'm trying to improve the performance of server for nginx 100TB/month images distributions. But I have two problems: high CPU load and periodical splashes (I don't know why)
Hardware is quite poor (...
0
votes
0
answers
403
views
Is it worth using Nginx as an SSL/TLS terminator in front of Varnish, rather than just Nginx itself as a cache?
First off, as I understand it, Varnish Cache is only a HTTP accelerator, and thus does not support client-side or server-side (backend) connections over HTTPS, despite the existence of this whitepaper....
1
vote
0
answers
1k
views
Nginx & NodeJs slow static file serving
I have a small NodeJS app, with an Nginx front to serve the static files to increase performance.
The bundle.js file takes around 1s with no load, however, add some concurrent users and the bundle.js ...
0
votes
1
answer
3k
views
Slow TTFB in a single WordPress site in a Nginx environment on DigitalOcean (20$)
On an all default Ubuntu 16.04 Nginx environment hosted on a 20$ DigitalOcean droplet I have only one WordPress site with a small amount of data: About 10 webpages, 10 images (around 100kb each), and ...
0
votes
0
answers
1k
views
Nginx SSL config is slow
I'm having some issues with my SSL configuration being slow. Generally, my site responds in under 125ms when I'm connecting via HTTP, but over 400ms when connecting over HTTPS. I've tried tweaking the ...
0
votes
1
answer
57
views
What faster proxy_pass or redirect to resource
I transfer my website to new webserver, without assets. I have flolowing links: site.com/img/image.png on new website but now, it's got 404 error
also I have old server with images on the same paths, ...
5
votes
1
answer
3k
views
What is the best way to redirect 57,000 URLs on nginx?
I'm planning to do a lot of redirects in nginx with mapping files like in the example below, but just discovered that I have to redirect about 57,000 URLs. Is putting them in config files like this ...
1
vote
4
answers
894
views
Upgrade Nginx behind cloudflare to http2. To do or not?
I am running nginx version: 1.12.1 behind a CloudFlare machine. The CloudFlare front is http2 enabled.
I was wondering if it’s a good idea to upgrade to Nginx 1.9.5 that supports http2 ?. The cost ...
0
votes
1
answer
9k
views
PHP loads slow on nginx server
I have a php application with 815k monthly unique users which loads pretty fast on my dev machine ( around 600 ms for the home page ), and used to load fast on the production server.
I am not a ...
1
vote
1
answer
2k
views
TTFB Longer on Google Cloud than AWS with same config
Long time lurker, first time poster on the StackExchange network.
I have been racking my brain on this for the past couple of days and have read a lot of threads and tried a lot of things, but have ...
1
vote
2
answers
273
views
Outgoing network bandwidth is high even for empty response [closed]
I have a simple nginx server that monitors the requests and store them in the access logs. The requests contain data in query parameters and are about 500 bytes. My output is just a HTTP 204 response. ...
3
votes
0
answers
2k
views
Determining Rails max threads and database pool size using Puma and NGINX
I noticed the default pool size for a Rails 5 App using Puma is equal to:
<%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
Which means that you can establish a max number of threads as an ...
0
votes
1
answer
198
views
Performance issue on drupal
I am running a drupal 7 website on a Linux server (with 4 cores and 12GB RAM) with LEMP (nginx+php5-fpm+mysql).
The drupal installation has a large number of modules enabled(all of which are needed).
...
0
votes
1
answer
666
views
Why is Haproxy hitting (variable) connection limits?
I'm trying to understand some numbers I'm seeing as well as why Haproxy seems to be hitting variable limits on requests/s.
The test set up is pretty straightforward:
20 backend servers running on ...
1
vote
1
answer
109
views
Wildcard SSL negotiation across sub-domains
I'm wanting to make a site as fast as possible and as part of that will be using multiple sub-domains to essentially grow the number of concurrent connections in a browser.
My question is this: how ...