Monkey, an Open Source High Performance Embedded Web Server

Some time ago, I mentioned 5 web servers (mathopd, thttpd, busybox httpd, boa and lighttpd) suitable for embedded systems (including those featuring no MMU processors) and low end machines.

I’ve recently come across Monkey web server, a lightweight open source Web Server for Linux (2.6.29 or greater), which has been designed with focus in embedded devices. Monkey is currently supported on ARM, x86 and x64, although a quick analysis of the source code shows it forks, so it won’t be supported on processors that do not feature a memory management unit (MMU) without modifications.

Monkey supports the following features:

  • HTTP/1.1 compliant
  • Virtual Hosts
  • Asynchronous networking model (event-driven)
  • Indented configuration
  • Plugins Support
  • C API Interface
  • Other features through base plugins:
    • SSL
    • Security
    • Log writter
    • Directory Listing
    • Shell: Command line

The developers have benchmarked Monkey against busybox httpd and nginx on a now well-know ARMv6 platform: the Raspberry Pi. They used Siege v.2.72 benchmarking tool to perform the tests instead of Apache Benchmark (ab) because the former is said to provide more accurate results because it has a lower latency than ab.

Here are the results between Monkey web server and Busybox httpd.

The left chart shows the number of transactions per second and the right chart shows the shortest and longest transaction times. In this benchmark, they used 10 concurrent users download an HTML file in localhost and Monkey delivers better performance on the metrics shown.

Now, let’s see the results between Monkey 1.1.0 (development version) and nginx.

In this benchmark, they used 100 concurrent users downloading a PNG file in localhost, so the results in this benchmark are not directly comparable to the previous test results for busybox vs monkey. Monkey is also shown to outperform nginx both in terms of requests per second and longest and shortest transaction times.

Monkey can support PHP and Mysql (via extensions), but does not implement PHP-FastCGI yet (this is work in progress), so you won’t be able to use this web server for things like WordPress.

The latest version – Monkey 1.0.1 (codenamed Monkey I/O) – has been released on the 15th of June. The web server is a small source code download (322KB), and can easily be build using the usual configure + make procedure. [Update: Sander commented that you can also install Monkey (version 0.9.3) in Debian/Ubuntu with “sudo apt-get install monkey”]

For further details,  documentation and support, you can visit Monkey Project website.

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK 5 ITX Rockchip RK3588 mini-ITX motherboard
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
11 Comments
oldest
newest
Haris Sarwar
Haris Sarwar
12 years ago

What about mongoose web server?
http://code.google.com/p/mongoose/

Sander
Sander
12 years ago

FYI: “monkey” is in the Ubuntu and Debian repository. I just installed Monkey on my Raspi with an easy “sudo apt-get install monkey” …

Sander
Sander
12 years ago

Hmmm. I couldn’t get monkey working on IPv6, so I’m back on lighttpd, which works on IPv6 out-of-the-box.

Eduardo Silva
Eduardo Silva
12 years ago

Hi,

thanks for the article 🙂

The web server will just fork() once if you request to run in background mode. It always use the event-driven socket model.

regards,

Eduardo Silva
monkey-project.com

Eduardo Silva
Eduardo Silva
12 years ago

patches are welcome 🙂

We just released v1.2 and we are distributing our own .deb packages:

http://monkey-project.com/Announcements/v1.1.0
http://monkey-project.com/documentation/debian_ubuntu

Kelvin
Kelvin
12 years ago

I have an embedded linux app but our linux is 2.6.18.8, will this preclude using monkey or can it be made to build under this version.

Thanks

Boardcon Rockchip RK3588S SBC with 8K, WiFI 6, 4G LTE, NVME SSD, HDMI 2.1...