Welcome! Log In Create A New Profile

Advanced

Debugging performance under high load

February 17, 2013 06:52AM
Hi all,

I have a reasonably beefy VPS (16gb RAM, 4x vCores) running Ubuntu 12.04 LTS on a 1GigE line that is basically uncontested at the moment. Speed tests on the box show reasonably high bandwidth available up and down (VirtIO isn't on at the moment, but that doesn't seem to be affecting it). When doing a load test on a static object via HTTPS (apachebench on a 100kb image) with a concurrency of 1000 I'm seeing pretty poor performance - 450 requests per second, about 4.5mbps traffic, and an average of about 2.2s per request. Monitoring the server in htop I'm not seeing the memory even twitch above 570mb (out of 16gb) and an overall processor usage of like 25% per core, if that much.

My config is fairly standard - this is a static file, after all, so it's not even touching php-fpm. I have my hard and soft ulimits raised to 100k for the www-data user. I have my worker_processes set to 4, worker_rlimit_nofile set to 100k, and worker_connections set to 2048. multi_accept is on and epoll is on. I have a keepalive timeout of 2. For the purposes of this test I have a self-signed cert on the server, the ssl_protocols are set to SSLv2 SSLv3 TLSv1; and the ssl_ciphers are set to RC4:HIGH:!aNULL:!MD5:!kEDH;. Suggestions? How do I debug the poor performance so I at least know what to fix? Is there a way to step through exactly what is happening in a request under load to see where it's being delayed? I'd like to get it up to at least 1k RPS if not more, and I believe the server and the bandwidth are up to the task.

FP
Subject Author Posted

Debugging performance under high load

fluffypony February 17, 2013 06:52AM

Re: Debugging performance under high load

agentzh February 18, 2013 02:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 239
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready