Main Article Content

Abstract

This study aims to analyze and compare the performance of two widely used web servers, Apache and Nginx, operating within Docker container environments on Ubuntu Server. The evaluation focuses on determining the efficiency of each web server in handling client requests, particularly in terms of throughput, response time, latency, resource utilization, and error rate. An experimental method was employed, where both servers were configured in separate containers and tested using Apache Benchmark (ab) and Wrk Benchmark under various load scenarios. The results indicate that Nginx outperforms Apache across most performance parameters. Nginx achieved a throughput of 1316.86 requests per second, which is more than twice the throughput of Apache at 631.56 requests per second. Nginx also demonstrated higher transfer rates and lower latency, with both servers recording a 3% error rate during testing. Furthermore, Nginx exhibited more efficient CPU and memory usage compared to Apache. The findings conclude that Nginx is more suitable for high-load environments requiring fast response and efficient resource consumption, while Apache remains relevant for applications that rely on dynamic content processing and flexible module support.

Keywords

Apache Nginx Docker web server performance benchmarking

Article Details

References

  1. A. Tedyyana and O. Ghazali. (2021). Teler Real-Time Http Intrusion Detection At Website With Nginx Web Server. Int. J. Informatics Vis., 5(3), 327–332.
  2. Chandra, A. Y. (2019). Analisis Performansi Antara Apache & Nginx Web Server dalam Menangani Client Request. 48–56. https://doi.org/10.30864/jsi.v14i1.248.
  3. Komaruddin, A. M., Sipitorini, D. M., & Rispian, P. (2020). Load Balancing dengan Metode Round Robin Untuk Pembagian Beban Kerja Web Server. Siliwangi, 5(2), 47–50.
  4. Kurniawan, M. F., Setianto, W., & Ilyas, A. (2021). Implementasi Module Google Pagespeed Pada Apache Web Server Untuk Meningkatkan Performa Aplikasi Web. IC-Tech, 16(2), 47–51. https://doi.org/10.47775/ictech.v16i2.209
  5. Perdana, G. P, Prihanto, A., (2025). Analisis Perbandingan Performa Web Server Apache ,. 06, 1145–1155.
  6. Seimahuira, S., Fitriana, L., A. (2023). Penerapan Metode SAW dalam Analisa Perbandingan Performa Web server ( Apache , Nginx , Lighttpd , Iis ) pada Bahasa Pemrograman PHP. 7, 409–420.
  7. Rafli, M. (2022). Jurnal Pengujian Kinerja Load Balancing Web Server menggunakan Nginx Riverse Proxy Berbasis OS Centos 7. JATISI (Jurnal Teknik Informatika Dan Sistem Informasi), 9(3), 1824–1840. https://doi.org/10.35957/jatisi.v9i3.2185.
  8. Rahmadhani, D. S, (2025). ANALISIS KINERJA WEB SERVER BERBASIS LINUX. 5(1), 35–44.
  9. Ridwan, A. (2020). ANALISIS PERBANDINGAN PERFORMA APACHE WEB SERVER. 8(2), 87–92.
  10. Riswandi, Kasim, & Raharjo, M. F. (2020). Evaluasi Kinerja Web Server Apache menggunakan Protokol HTTP2. Journal of Engineering, Technology, and Applied Science, 2(1), 19–31. https://doi.org/10.36079/lamintang.jetas-0201.92
  11. Saputra, P. S., Pratama, P. A., Putu, L., Sri, A., Informasi, T., Teknik, F., Sakti, U. P., & Korespondensi, P. (2023). PERANCANGAN DAN KOMPARASI WEB SERVER NGINX DENGAN WEB SERVER APACHE SERTA PEMANFAATAN REVERSE PROXY SERVER DESIGN AND COMPARISON OF NGINX WEB SERVER WITH APACHE WEB. 2(1), 16–21.