<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.osgeo.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Wiki-Domtheo</id>
	<title>OSGeo - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.osgeo.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Wiki-Domtheo"/>
	<link rel="alternate" type="text/html" href="https://wiki.osgeo.org/wiki/Special:Contributions/Wiki-Domtheo"/>
	<updated>2026-04-13T02:11:16Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.9</generator>
	<entry>
		<id>https://wiki.osgeo.org/w/index.php?title=FOSS4G_Benchmark&amp;diff=72009</id>
		<title>FOSS4G Benchmark</title>
		<link rel="alternate" type="text/html" href="https://wiki.osgeo.org/w/index.php?title=FOSS4G_Benchmark&amp;diff=72009"/>
		<updated>2013-06-28T04:10:07Z</updated>

		<summary type="html">&lt;p&gt;Wiki-Domtheo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== FOSS4G WMS Benchmark ==&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
The FOSS4G WMS Benchmark tests how long each Web mapping server takes to generate a map image, from a common set of spatial data, on a common platform.  The data will be served by each Web mapping server through the WMS standard, which will serve exactly the same set of LAYERS.  A JMeter load will be run on the testing box to measure various aspects of those layers.&lt;br /&gt;
&lt;br /&gt;
== FOSS4G Performance Shoot-out ==&lt;br /&gt;
&lt;br /&gt;
Following a WMS server performance comparison between Mapserver and GeoServer at FOSS4G 2007 in Victoria, a performance shoot-out presentation at the yearly FOSS4G was institutionalized.&lt;br /&gt;
&lt;br /&gt;
One of the most important 'rules of engagement' for each Web server team is that all parties must contribute any changes that they make to their software for this exercise, back to their community.&lt;br /&gt;
&lt;br /&gt;
* [[Benchmarking 2013 | FOSS4G 2013 Nottingham]]&lt;br /&gt;
* [[Benchmarking 2011 | FOSS4G 2011 Denver]]&lt;br /&gt;
* [[Benchmarking_2010 | FOSS4G 2010 Barcelona]]&lt;br /&gt;
* [[Benchmarking_2009 | FOSS4G 2009 Sydney]]&lt;br /&gt;
* FOSS4G 2008 Cape Town&lt;br /&gt;
* [http://2007.foss4g.org/presentations/view.php?abstract_id=120 FOSS4G 2007 Victoria]&lt;br /&gt;
&lt;br /&gt;
== Running the FOSS4G WMS Benchmark ==&lt;br /&gt;
&lt;br /&gt;
The FOSS4G is a useful test suite for your own WMS server installation. This section gives you step-by-step instructions for running the FOSS4G WMS benchmark on different platforms.&lt;br /&gt;
&lt;br /&gt;
=== SVN ===&lt;br /&gt;
&lt;br /&gt;
The project files (minus data) are stored in Subversion (http://svn.osgeo.org/osgeo/foss4g/benchmarking/).&lt;br /&gt;
&lt;br /&gt;
=== Running Benchmark 2009 on Ubuntu 9.10 &amp;quot;Karmic Koala&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
==== Install scripts and data sets ====&lt;br /&gt;
&lt;br /&gt;
Needed packages:&lt;br /&gt;
  sudo apt-get install subversion unzip&lt;br /&gt;
  sudo apt-get install jmeter jmeter-http jmeter-junit&lt;br /&gt;
  sudo ln -s /usr/share/jmeter/ /usr/share/jmeter/lib/junit&lt;br /&gt;
&lt;br /&gt;
Get the test scripts and configuration files:&lt;br /&gt;
  svn export -r 3084 http://svn.osgeo.org/osgeo/foss4g/benchmarking foss4g_benchmark&lt;br /&gt;
&lt;br /&gt;
Some scripts need base path /opt/benchmarking&lt;br /&gt;
  sudo ln -s $(pwd)/foss4g_benchmark /opt/benchmarking&lt;br /&gt;
&lt;br /&gt;
Download the test data sets:&lt;br /&gt;
  mkdir data&lt;br /&gt;
  cd data&lt;br /&gt;
  #Download data: http://wiki.osgeo.org/wiki/Benchmarking_2009#Download&lt;br /&gt;
  for i in GNIS-2009.zip raster-data.zip vector-data-tiger08-tx-merged.zip vector-data-tiger08-tx-counties.zip; do&lt;br /&gt;
    wget --user=foss4g --password=foss4g http://www.maptools.org/foss4g/$i&lt;br /&gt;
    unzip $i&lt;br /&gt;
  done&lt;br /&gt;
&lt;br /&gt;
==== PostgreSQL 8.4 ====&lt;br /&gt;
&lt;br /&gt;
  sudo apt-get install postgresql-8.4 postgresql-8.4-postgis&lt;br /&gt;
&lt;br /&gt;
  sudo su postgres&lt;br /&gt;
&lt;br /&gt;
  psql -c &amp;quot;CREATE ROLE benchmark LOGIN PASSWORD 'benchmark'&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Optional: For local access via socket insert the following line in&lt;br /&gt;
/etc/postgresql/8.4/main/pg_hba.conf:&lt;br /&gt;
  local   benchmark    benchmark                         trust&lt;br /&gt;
&lt;br /&gt;
  createdb -E latin1 --owner benchmark benchmark&lt;br /&gt;
  createlang -d benchmark plpgsql&lt;br /&gt;
  psql -q -d benchmark -f /usr/share/postgresql/8.4/contrib/postgis.sql&lt;br /&gt;
  psql -q -d benchmark -f /usr/share/postgresql/8.4/contrib/spatial_ref_sys.sql&lt;br /&gt;
  psql -q -d benchmark -c &amp;quot;GRANT SELECT, UPDATE, INSERT, DELETE ON TABLE public.geometry_columns TO benchmark;&amp;quot;&lt;br /&gt;
  psql -q -d benchmark -c &amp;quot;GRANT SELECT, UPDATE, INSERT, DELETE ON TABLE public.spatial_ref_sys TO benchmark;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  export PGUSER=benchmark&lt;br /&gt;
  export PGPASSWORD=benchmark&lt;br /&gt;
&lt;br /&gt;
  shp2pgsql -I -D GNIS-2009/gnis_names09.shp gnis_names09 | psql -q -h localhost -d benchmark&lt;br /&gt;
  shp2pgsql -I -D TIGER-2008/48_TEXAS/areawater_merge.shp areawater_merge | psql -q -h localhost -d benchmark&lt;br /&gt;
  shp2pgsql -I -D TIGER-2008/48_TEXAS/edges_merge.shp edges_merge | psql -q -h localhost -d benchmark&lt;br /&gt;
&lt;br /&gt;
  exit #back to regular user&lt;br /&gt;
&lt;br /&gt;
==== UMN Mapserver ====&lt;br /&gt;
&lt;br /&gt;
  sudo apt-get install mapserver-bin cgi-mapserver&lt;br /&gt;
&lt;br /&gt;
Apache Fast-CGI:&lt;br /&gt;
&lt;br /&gt;
  apt-get install libapache2-mod-fcgid&lt;br /&gt;
  ln -s mapserv /usr/lib/cgi-bin/mapserv.fcgi&lt;br /&gt;
&lt;br /&gt;
/etc/apache2/conf.d/fcgi:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;IfModule fcgid_module&amp;gt;&lt;br /&gt;
      #fcgi settings (see http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html)&lt;br /&gt;
      DefaultMaxClassProcessCount 8&lt;br /&gt;
  &amp;lt;/IfModule&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  /etc/init.d/apache2 reload&lt;br /&gt;
&lt;br /&gt;
==== Installation checks ====&lt;br /&gt;
&lt;br /&gt;
  cd foss4g_benchmark/scripts&lt;br /&gt;
&lt;br /&gt;
Basic Mapserver installation check:&lt;br /&gt;
  shp2img -m ../mapserver/shapefile-merged.map -o /tmp/out.png&lt;br /&gt;
&lt;br /&gt;
Mapserver/Shapefile CGI:&lt;br /&gt;
  LANG=en_US jmeter -t mapserver/vector/shp_areawater_merge.jmx&lt;br /&gt;
&lt;br /&gt;
==== Setup connection settings ====&lt;br /&gt;
&lt;br /&gt;
Set your connection parameters:&lt;br /&gt;
  WMS_HOST=&amp;quot;localhost&amp;quot;&lt;br /&gt;
  PG_CONN=&amp;quot;dbname=benchmark user=benchmark password=benchmark port=5432 host=localhost&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Replace connection settings in map files:&lt;br /&gt;
  sed --in-place -e &amp;quot;s/dbname=benchmark user=postgres password=postgres port=5432 host=192.168.0.8/$PG_CONN/&amp;quot; ../mapserver/postgis.map&lt;br /&gt;
&lt;br /&gt;
Replace WMS host name in JMeter configuration:&lt;br /&gt;
  FILES=$(find . -name '*.jmx')&lt;br /&gt;
  sed --in-place -e &amp;quot;s/192.168.0.3/$WMS_HOST/&amp;quot; $FILES&lt;br /&gt;
  [http://www.forklift.co.id rental forklift]&lt;br /&gt;
  [http://www.locker.co.id jual locker]&lt;br /&gt;
  [http://saranasukses.com/outsourcing-indonesia.html outsourcing indonesia]&lt;br /&gt;
  [http://www.tokobungasabana.com toko bunga]&lt;br /&gt;
  [http://www.tokobungasabana.com toko bunga online]&lt;br /&gt;
&lt;br /&gt;
Set all jmeter configurations to Mapserver FCGI:&lt;br /&gt;
  FILES=$(find . -name '*.jmx')&lt;br /&gt;
  sed --in-place -e &amp;quot;s/mapserv560beta3/mapserv/&amp;quot; $FILES&lt;br /&gt;
  sed --in-place -e &amp;quot;s/mapserv560beta3.fcgi/mapserv.fcgi/&amp;quot; $FILES&lt;br /&gt;
  FILES=$(find . -name 'shp_*.jmx')&lt;br /&gt;
  sed --in-place -e &amp;quot;s!cgi-bin/mapserv&amp;lt;!cgi-bin/mapserv.fcgi&amp;lt;!&amp;quot; $FILES&lt;br /&gt;
&lt;br /&gt;
Set LANG when running jmeter:&lt;br /&gt;
  sed --in-place -e 's!$JMETER_HOME/jmeter!LANG=en_US jmeter!' benchmark&lt;br /&gt;
&lt;br /&gt;
==== Testing ====&lt;br /&gt;
&lt;br /&gt;
  cd foss4g_benchmark/scripts&lt;br /&gt;
&lt;br /&gt;
Mapserver/Shapefile FCGI:&lt;br /&gt;
  ./benchmark mapserver/vector/shp_areawater_merge.jmx&lt;br /&gt;
&lt;br /&gt;
Mapserver/PostgreSQL FCGI:&lt;br /&gt;
  ./benchmark mapserver/vector/pg_fcgi_areawater_merge.jmx&lt;br /&gt;
&lt;br /&gt;
Run all Mapserver tests:&lt;br /&gt;
  sh mapservconf | tee mapservconf.log&lt;br /&gt;
  grep -v &amp;quot;Generate&amp;quot; mapservconf.log | grep -v &amp;quot;Waiting&amp;quot;| grep -v &amp;quot;Starting&amp;quot; | grep -v &amp;quot;Created&amp;quot; | grep -v &amp;quot;Tidying&amp;quot; | grep -v &amp;quot;end of run&amp;quot; &amp;gt;mapservconf-summarized.log&lt;br /&gt;
&lt;br /&gt;
== Discussion ==&lt;br /&gt;
&lt;br /&gt;
Please edit the wiki for improvements and add instructions for your platform.&lt;br /&gt;
&lt;br /&gt;
Benchmarking mailing list: http://lists.osgeo.org/mailman/listinfo/benchmarking&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Category:FOSS4G]]&lt;/div&gt;</summary>
		<author><name>Wiki-Domtheo</name></author>
	</entry>
</feed>