Search code examples
apachehttpnetwork-programmingoperating-systemwebserver

Resource Consumption while serving static Files with a webserver


you are running a http server that is configured to serve static files of the local file system of a multi core server connected to a gigabit network . A handful of clients start requesting the same 8 kb static file . what system resource will be exhausted first ?

1)CPU 2) DISK I/0 3)MEMORY 4) NETWORK 5)OTHER

Reason?


Solution

  • I would go with network. Reasoning:

    1. CPU on a multi-core server should be enough to serve static files over 1 Gbit/s network
    2. Disk will be used just once and then we serve the same file form a cache.
    3. Memory is not used much either, sincethe file is just 8kb

    So the client will be served until we reach the maximum network throughput.