Niall Mullen's WeblogNiall Mullen's Weblog |
|
Thursday May 25, 2006
specweb 2005 configuration : Generating SSL Certs
This blog entry forms one part of a larger guide to specweb2005 which generating SSL Certs Specweb2005 setup will involve setting up a secure webserver, which in many cases will Specweb2005 requires a server that listens both on port 80 for regular http connections In either case your going to have to generate ssl certs for the encrypted connections. Here ill take the example case using Sun Java Webserver. The following is what you need to cd /opt/SUNWwbsvr/alias One by one, select options 0, 1, 5, 6 and 9, and type y when the program asks certutil -C -m 2345 -i mycert.req -o mycert.crt -c myCA -v 100 -z ./seed -d `pwd` My source for minding most of the above comes from: http://www.modssl.org/docs/2.8/ssl_overview.html Posted at 03:37PM May 25, 2006 by nmullen in Performance |
Friday Feb 03, 2006
specweb 2005 configuration : Java Jsp Setup
This blog entry forms one part of a larger guide to specweb2005 which Java Jsp Setup : Deploying the Warfiles Specbweb2005 provides two different options for the server side script implementation, To deploy the warfiles on the Sun Java webserver is quite easy, the Deploy the java warfiles WDEPLOY=/opt/SUNWwbsvr/bin/https/bin/wdeploy For each of the three warfiles you should get output similar to the following: [wdeploy] The directory /export/bench/opt/SUNWwbsvr/https-oaf-x-1/webapps/bank doesn't exist. Creating it. Once this is done you can restart your webserver. The startup with php and java both configured should Sun ONE Web Server 6.1SP5 B04/18/2005 14:49 In the case of apache you will need to install the apache tomcat application server, The zeus webserver can be configured using the app server of your choice, Finally the specweb2005 configuration files will need to be modified to use jsp rather Posted at 09:31AM Feb 03, 2006 by nmullen in Performance | specweb 2005 configuration : PHP
This blog entry forms one part of a larger guide to specweb2005 which PHP Compilation Specbweb2005 provides two different options for the server side script implementation, Secondly the compiled PHP module must be installed on the webserver. php.net contains a perfectly good guide on howto build php , the only thing which I feel needs to be added here is specifically what arguments need to be The php compile will require your webserver of choice to be installed already so that it can Sun Java Webserver - /opt/SUNWwbsvr Of course your only going to need one of these, which ever you prefer. To build the nsapi module use the following command: ./configure --with-nsapi=/opt/SUNWwbsvr --enable-libgcc --enable-libxml For isapi: ./configure --with-isapi=/opt/zeus --enable-libgcc --enable-libxml And for fastgi / apache2 ./configure --enable-libgcc --enable-libxml --enable-fastcgi --with-apxs2filter=/usr/apache2/bin/apxs The follow this with: make This will build your php distribution. The module you need to deploy in your webserver -rwxr-xr-x 1 root root 6249892 Jan 13 15:03 libphp5.so Deployment in Webserver This is already covered in as much detail as I could on php.net For Sun Java Webserver the guide is here. Adding the specweb dynamic php scripts Once php is up and running a final simple step that must be taken, chown -R nobody:nobody /export/bench/specweb2005-102/scripts/php The final thing to do is to make sure the specweb configuration files are setup Posted at 09:31AM Feb 03, 2006 by nmullen in Performance | specweb 2005 configuration : besim
This blog entry forms one part of a larger guide to specweb2005 which The Backend Simulator of the Specweb2005 benchmark acts in the place of a The implementation is in c and must be compiled as a module to be deployed In this case ill be using the following different configurations on some nsapi -> Sun Java Webserver - example used here The besim source is located in the besim directory within the specweb2005 Building The Module First you need to cp Makefiles/Makefile.nsapi.`uname -m` Makefiles/Makefile.nsapi Secondly the compilation requires the nsapi.h header file. For this you will LD_LIBRARY_PATH=/opt/SUNWwbsvr/plugins/include; export LD_LIBRARY_PATH Then your good to build, simply make nsapi: # make nsapi Installing the Module You now should have the compiled besim_nsapi module present in the working directory: The next step is to setup this module in your webserver. Then make the following changes in your webserver config directory: obj.conf: ( at the top before the PathCheck entries) NameTrans fn="assign-name" from="/wbesim*" name="besim" nostat="/wbesim" ( At the end of the file) magnus.conf Init fn="load-modules" shlib="/opt/SUNWwbsvr/plugins/nsapi/besim_nsapi.so" funcs The only other change required is to move the listen port to somthing other than 80 , Testing the Simulator The Specweb2005 distribution contains a three perl scripts to test that the Firstly if you dont have it you must add the libiconv package which can be found on Sunfreeware Once these are all installed you just need to change the #! to point to your perl # ./test_besim_bank.pl http://10.1.1.10:81/wbesim Testing BESIM Requests for Banking Workload http://10.1.1.10:81/wbesim?1&0&1097157010&1&2000&200&/www/bank/images&0
SERVER_SOFTWARE = Sun ONE Web Server/6.1 REMOTE_ADDR = 10.1.1.207 SCRIPT_NAME = /wbesim QUERY_STRING = 1&0&1097157010&1&2000&200&/www/bank/images&0
.... output continues .... # ./test_besim_ecom.pl http://10.1.1.10:81/wbesim |more Testing BESIM Requests for Ecommerce Workload http://10.1.1.10:81/wbesim?2&0&1079975569&1&80&100
SERVER_SOFTWARE = Sun ONE Web Server/6.1 REMOTE_ADDR = 10.1.1.207 SCRIPT_NAME = /wbesim QUERY_STRING = 2&0&1079975569&1&80&100
# ./test_besim_support.pl http://10.1.1.10:81/wbesim |more Testing BESIM Requests for Ecommerce Workload http://10.1.1.10:81/wbesim?3&0&1079975569&500
SERVER_SOFTWARE = Sun ONE Web Server/6.1 REMOTE_ADDR = 10.1.1.207 SCRIPT_NAME = /wbesim QUERY_STRING = 3&0&1079975569&500
http://10.1.1.10:81/wbesim?3&1
SERVER_SOFTWARE = Sun ONE Web Server/6.1 REMOTE_ADDR = 10.1.1.207 SCRIPT_NAME = /wbesim QUERY_STRING = 3&1
The above is just the top of the output from each script and indicatest correct Posted at 09:30AM Feb 03, 2006 by nmullen in Performance | specweb 2005 configuration : Introduction
Having been through this process I have found that there doesn't seem to be a whole
The write ups here initiall are going to focus on what is required to configure
Firslty for anyone who hasnt a clue what im rambling about, Specweb2005 is the latest incarnation of an industry standard webservices benchmark developed by the Standard Performance Evaluation Corporation which aims to benchmark the ability of a given machine running kind of load that modern webservers experience. It is used by many hardware manufacturers, ourselves included to show off the latest offerings by submitting benchmark scores from the benchmark running to spec.org .
The Webserver in the middle layer being the machine under test. The topics the next few entries will cover are below. As each entry is written ill update the below and link it, so if the topic below is a link there's an entry, if not check back soon !
Posted at 09:30AM Feb 03, 2006 by nmullen in Performance | |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||