<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)">
<title>Re: [mapserver-users] High CPU</title>
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","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;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</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 style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Ed &#8211;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>The reason I feel edgy is because I have other hosted .NET applications
on the same box.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I discovered from my tests that another process (CSRSS.exe) is also
using excessive CPU (about 40%), so it&#8217;s not all MapServer, so I&#8217;m
going to set up some auto tests scripts to find out what kind of a ceiling I
have and see if I can pull down CSRSS.exe a bit.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Cheers,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Steve<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Ed McNierney
[mailto:ed@mcnierney.com] <br>
<b>Sent:</b> 07 September 2008 13:48<br>
<b>To:</b> Steve White; Paul Ramsey<br>
<b>Cc:</b> mapserver-users@lists.osgeo.org<br>
<b>Subject:</b> Re: [mapserver-users] High CPU<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif"'>Steve -<br>
<br>
Would you prefer your CPU was sitting idle? &nbsp;Keeping the CPU busy is a
good thing, isn&#8217;t it? &nbsp;It means your network, disk, and other
resources are not preventing your CPU from working at full capacity.<br>
<br>
What makes you feel that running your CPU at 100% capacity is a bad thing?<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;- Ed<br>
<br>
Ed McNierney<br>
205 Indian Hill Road<br>
Groton, MA &nbsp;01450<br>
<a href="ed@mcnierney.com">ed@mcnierney.com</a><br>
+1 (978) 761-0049<br>
<br>
<br>
<br>
On 9/7/08 4:20 AM, &quot;Steve White&quot; &lt;<a
href="steve@online-archaeology.co.uk">steve@online-archaeology.co.uk</a>&gt;
wrote:</span><o:p></o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif"'>The problem is that CPU shoots to 100%
while tiles are being generated from<br>
a remote WMS call.<br>
<br>
The shp2img dump was taken directly on the server but the problem occurs<br>
when I send remote WMS requests to the server.<br>
<br>
I'm starting to think that 640MB RAM isn't enough and I should probably bump<br>
it up to 1GB.<br>
<br>
<br>
-----Original Message-----<br>
From: Paul Ramsey [<a href="mailto:pramsey@cleverelephant.ca">mailto:pramsey@cleverelephant.ca</a>]<br>
Sent: 07 September 2008 06:07<br>
To: Steve White<br>
Cc: <a href="mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
Subject: Re: [mapserver-users] High CPU<br>
<br>
It took 0.3s to run to completion, what's the problem precisely?<br>
<br>
P.<br>
<br>
On Sat, Sep 6, 2008 at 1:35 PM, Steve White<br>
&lt;<a href="steve@online-archaeology.co.uk">steve@online-archaeology.co.uk</a>&gt;
wrote:<br>
&gt; Thanks Jeff -<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; - &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I upgraded to MS4w
2.2.9<br>
&gt;<br>
&gt; - &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I ran shptree.exe
and produced the index file<br>
&gt;<br>
&gt; - &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;My results of
shp2img.exe are below<br>
&gt;<br>
&gt; - &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I don't think any
projections-on-the-fly are occurring<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Shp2img dump:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; msDrawMap(): Layer 0 (OA), 0.015s<br>
&gt;<br>
&gt; msDrawMap(): Drawing Label Cache, 0.000s<br>
&gt;<br>
&gt; msDrawMap() total time: 0.015s<br>
&gt;<br>
&gt; SaveImage() total time: 0.297s<br>
&gt;<br>
&gt; msFreeMap(): freeing map at 0144B498.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I'm still getting very high CPU usage with just one active session, so<br>
&gt; there's no way I can go into production till this is resolved.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Any other things I can look at?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Steve<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; mapserver-users mailing list<br>
&gt; <a href="mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></span><o:p></o:p></p>

</div>

</body>

</html>