Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Nginx Troubleshooting

You're reading from   Nginx Troubleshooting Investigate and solve problems with Nginx-powered websites using a deep understanding of the underlying principles

Arrow left icon
Product type Paperback
Published in Apr 2016
Publisher
ISBN-13 9781785288654
Length 172 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Alexey Kapranov Alexey Kapranov
Author Profile Icon Alexey Kapranov
Alexey Kapranov
Arrow right icon
View More author details
Toc

Obsolete pages and VirtualBox


There is one other possible problem that manifests itself as users (or, more frequently, developers) seeing old versions of web pages in HTTP responses. There is a bug in VirtualBox virtualization software, which is very popular as a development virtualization solution (for example, with Vagrant or, more lately, Otto). VirtualBox is also sometimes used as a production virtualization technology. It has a feature named "shared folders", which allows it to have a copy of the host machine folder inside one of the guest machines.

The bug is in the handling of the sendfile() Linux kernel syscall inside VirtualBox. This syscall directly copies a file to a TCP socket, avoiding extra unneeded memory copies and providing all possible optimizations for this rather specific but very popular special case. You can imagine how well this case suits many Nginx workloads. Even if it is not just serving local static files, Nginx cache may use sendfile() very efficiently.

The support...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime