<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
{page:Section1;}
/* List Definitions */
@list l0
{mso-list-id:8723253;
mso-list-type:hybrid;
mso-list-template-ids:1942410936 838661902 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-font-family:Calibri;
mso-bidi-font-family:"Times New Roman";}
@list l1
{mso-list-id:1970357529;
mso-list-type:hybrid;
mso-list-template-ids:-1304821036 67698705 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l1:level1
{mso-level-text:"%1\)";
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span lang=EN-GB>I’m running the latest version of
MS4W on a virtual private server with the following:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span
lang=EN-GB><span style='mso-list:Ignore'>-<span style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]><span lang=EN-GB>2003 Server<o:p></o:p></span></p>
<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span
lang=EN-GB><span style='mso-list:Ignore'>-<span style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]><span lang=EN-GB>IIS 6.0<o:p></o:p></span></p>
<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span
lang=EN-GB><span style='mso-list:Ignore'>-<span style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]><span lang=EN-GB>Intel Xeon CPU 3.20Ghz<o:p></o:p></span></p>
<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span
lang=EN-GB><span style='mso-list:Ignore'>-<span style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]><span lang=EN-GB>640MB RAM <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>I have one shapefile 850KB and a basic
mapfile like below:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>MAP<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> NAME Test<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> STATUS ON<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> UNITS METERS<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> SHAPEPATH "C:\Inetpub\scripts\data\"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> IMAGECOLOR 0
255 255<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> SIZE 400
400<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> DEBUG ON<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> IMAGETYPE PNG<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> EXTENT -4.35
56.14 -3.23 56.91<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>WEB<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> METADATA<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> "wms_title" "Test
MS"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
"wms_onlineresource" "http://localhost/scripts/mapserv.exe&"
<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> "wms_srs" "EPSG:4326
EPSG:54004 EPSG:27700"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
"wms_feature_info_mime_type" "text/html"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> END<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>IMAGEPATH "C:\Inetpub\wwwroot\tmp\"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>IMAGEURL "C:\Inetpub\wwwroot\tmp\"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>LOG "C:\Inetpub\wwwroot\tmp\mapserver.log"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>TEMPLATE "C:\Inetpub\wwwroot\Test\templates\template.html"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>EMPTY "C:\Inetpub\wwwroot\Test\templates\template_empty.html"
<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>END<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>PROJECTION<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> "init=epsg:4326"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>END<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>SYMBOL<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> NAME "circle"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> TYPE ellipse<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> FILLED true<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> POINTS<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> 1 1<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> END<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>END<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>LAYER<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> NAME
Test<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> METADATA<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
"wms_title" "Test"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> "gml_include_items"
"all"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> "wms_include_items"
"all"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> "wms_feature_info_mime_type"
"text/html"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> END<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> TYPE POINT<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> DATA Test<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> STATUS ON<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> DUMP TRUE<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
CLASS<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
TEMPLATE "C:\Inetpub\wwwroot\Test\templates\template_test.html"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> STYLE<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> SYMBOL
"circle"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> SIZE
10<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> COLOR
0 0 255<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB> END<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>
END<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>END #end of layer<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>END # end of mapfile<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>I’m sending WMS GetMap requests to
the layer from my localhost and monitoring CPU on the server.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>Every time I send a request the server CPU
hits 100% until the request ends.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l1 level1 lfo2'><![if !supportLists]><span
lang=EN-GB><span style='mso-list:Ignore'>1)<span style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]><span lang=EN-GB>Is 640MB RAM enough to cope
with this simple request?<o:p></o:p></span></p>
<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l1 level1 lfo2'><![if !supportLists]><span
lang=EN-GB><span style='mso-list:Ignore'>2)<span style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]><span lang=EN-GB>Is there anything wrong with
the mapfile?<o:p></o:p></span></p>
<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l1 level1 lfo2'><![if !supportLists]><span
lang=EN-GB><span style='mso-list:Ignore'>3)<span style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]><span lang=EN-GB>Are there any methods I can use
to tune this further?<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>Cheers,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB>Steve<o:p></o:p></span></p>
</div>
</body>
</html>