Module Simple_httpd.StatusSource

A module to get detail status about the server

Sourceval html : ?log_size:int -> ?in_head:Html.elt -> ?css:string -> ?start_header:Html.elt -> ?end_header:Html.elt -> ?start_contents:Html.elt -> ?end_contents:Html.elt -> Server.t -> Html.chaml

Returns a detailed server status as html, including

  • number of actives connections (total and per threads)
  • memory and cpu usage
  • hd usage
  • number of used file descriptor

We are planning to make this page extensible with your own date...

If the server uses a log_folder, the given number of lines of the log is given for each thread/domain. If log_size is not provider, the value of the parameter "nb" of the query will be used, and if it not provided or is not an integer, 100 is used.

You may add content in the page, in the same way as for the Stats module below.