Analisis Kinerja NGINX sebagai Image Container pada Lingkungan Simulasi Docker Play-With-Docker dengan Pembatasan Memory dan CPU
Keywords:
NGINX, Docker, Play-With-Docker, Resource Limitation, Container PerformanceAbstract
The rapid adoption of containerization technologies has increased the use of lightweight web servers in both production and educational environments. NGINX is widely recognized for its high performance and efficient resource utilization, making it suitable for container-based deployment. However, resource constraints applied to containers may significantly affect service performance and stability. This study aims to analyze the performance of NGINX as an image container in a Docker simulation environment using the Play-With-Docker platform, focusing on the impact of memory and CPU limitations. An experimental quantitative approach was employed by comparing two testing scenarios: NGINX containers without resource limitations and containers with constrained resources, specifically 64 MB of memory and 0.2 CPU cores. The experiments were conducted in a simulated learning environment involving 20 participants using heterogeneous devices. Performance evaluation parameters included container startup time, HTTP response time, memory usage, CPU utilization, and container stability. The results indicate that NGINX containers without resource constraints achieve faster startup times, lower HTTP response latency, and higher service stability. In contrast, containers with memory and CPU limitations experience increased startup time, higher response latency, CPU throttling, and occasional out-of-memory events, although resource usage becomes more efficient. These findings demonstrate a clear trade-off between performance and resource efficiency. This study concludes that Play-With-Docker is an effective platform for simulating container-based web server performance and provides significant educational value in understanding resource management and optimization in containerized environments.