This blog entry forms one part of a larger guide to specweb2005 which
is indexed here.
The Backend Simulator of the Specweb2005 benchmark acts in the place of a
database behind the webserver. It dynamically produces data in response to
requests from the webserver.
The implementation is in c and must be compiled as a module to be deployed
on your webserver using nsapi, isapi or fastcgi.
In this case ill be using the following different configurations on some
of my test rigs:
nsapi -> Sun Java Webserver - example used here
isapi -> Zeus Webserver
fastcgi -> apache 2.0
The besim source is located in the besim directory within the specweb2005
distribution once installed. For the nsapi case we will assume that were using
the SUNWsrpo compilers seeing thats its a compile for the sun webserver.
Building The Module
First you need to cp Makefiles/Makefile.nsapi.`uname -m` Makefiles/Makefile.nsapi
The makefiles by default point to your compilers at /opt/SUNWspro, if
they arent here you will need to change Makefiles/Makefile.nsapi
Secondly the compilation requires the nsapi.h header file. For this you will
need to have a copy of the Sun Java Webserver handy. Lets assume in this case
that its in the default location of /opt/SUNWwbsvr. You just need to point your
include path at it, i.e.:
The only other change required is to move the listen port to somthing other than 80 ,
I have used 81. This is all thats needed to setup the besim.
Testing the Simulator
The Specweb2005 distribution contains a three perl scripts to test that the
besim is functioning correctly. The perl scripts themselves however require
several modules which must be installed before use.
Once these are all installed you just need to change the #! to point to your perl
as by default it points to a non standard location.
Then your good to test the server: