<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">Hi Jim,</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"> Thanks for sharing your Python program but can it work on <STRONG>windows server 2003.</STRONG><BR>Thks</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">Max<BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Jim O'Leary <jo@pat.ca><BR>To: mapguide-users@lists.osgeo.org<BR>Sent: Wednesday, May 21, 2008 10:20:09 PM<BR>Subject: Re: [mapguide-users] mgserver process hangs / memory usage<BR><BR><BR>The attached Python program uses two command line utilities that are<BR>available with XP Pro, TASKLIST and TASKKILL.<BR><BR>TASKLIST returns a string containing memory usage for each process. The<BR>Python program parses out the memory usage for mgserver.exe. TASKKILL kills<BR>the mgserver.exe process. The Python program tests if the memory usage for<BR>mgserver.exe is greater than a certain limit and kills the process if it is,<BR>and then restarts the mgserver.exe process.<BR><BR>This doesn't help the hapless user who suddenly finds that the map doesn't<BR>work, but at least the map comes back after about 10 seconds.<BR><BR>Also we have found
that, as Andy indicated earlier in this thread, the<BR>newly-released MGOS 2.0.1 does a better job managing memory.<BR><BR><BR><BR>max_samart wrote:<BR>> <BR>> Hi, <BR>> I am using the following code and using the windows scheduler to<BR>> schedule the batch file.<BR>> echo MapGuide Scheduler Task Starting<BR>> taskkill /F /FI "SERVICES eq MapGuideServer1.2"<BR>> net stop MapGuideServer1.2<BR>> net start MapGuideServer1.2<BR>>
echo MapGuide Scheduler Task Completed<BR>> <BR>> Buti am getting the System Error 109 which is the "The Pipe has been<BR>> ended", while executing net stop MapGuideServer1.2 line , kindly refer to<BR>> the attached screen shot.<BR>> Thks<BR>> Max !<BR>> ----- Original Message ----<BR>> From: nclayton <<A href="mailto:nclayton@gmail.com" ymailto="mailto:nclayton@gmail.com">nclayton@gmail.com</A>><BR>> To: <A href="mailto:mapguide-users@lists.osgeo.org" ymailto="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</A><BR>> Sent: Wednesday, May 21, 2008 2:58:50 AM<BR>> Subject: Re: [mapguide-users] mgserver process hangs / memory usage<BR>> <BR>> <BR>> I'm using the batch file apporach as well. I have it scheduled to run<BR>> every 6<BR>> hours to clear out the
memory used.<BR>> <BR>> Here is the batch file I use:<BR>> ==========================================================================<BR>> taskkill /F /FI "SERVICES eq MapGuideServer2.0"<BR>> net stop MapGuideServer2.0<BR>> net start MapGuideServer2.0<BR>> -- <BR>> View this message in context:<BR>> <A href="http://www.nabble.com/mgserver-process-hangs---memory-usage-tp17335201p17349393.html" target=_blank>http://www.nabble.com/mgserver-process-hangs---memory-usage-tp17335201p17349393.html</A><BR>> Sent from the MapGuide Users mailing list archive at <A href="http://nabble.com/" target=_blank>Nabble.com</A>.<BR>> <BR>> _______________________________________________<BR>> mapguide-users mailing list<BR>> <A href="mailto:mapguide-users@lists.osgeo.org" ymailto="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</A><BR>> <A href="http://lists.osgeo.org/mailman/listinfo/mapguide-users"
target=_blank>http://lists.osgeo.org/mailman/listinfo/mapguide-users</A><BR>> <BR>> <BR>> <BR>> <BR>> <BR>> _______________________________________________<BR>> mapguide-users mailing list<BR>> <A href="mailto:mapguide-users@lists.osgeo.org" ymailto="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</A><BR>> <A href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target=_blank>http://lists.osgeo.org/mailman/listinfo/mapguide-users</A><BR>> <BR>> <BR><A href="http://www.nabble.com/file/p17364311/monitorMapGuide.py" target=_blank>http://www.nabble.com/file/p17364311/monitorMapGuide.py</A> <A href="http://monitormapguide.py/" target=_blank>monitorMapGuide.py</A> <BR><BR>-----<BR>&nbsp;<BR><BR><BR>Jim O’Leary Bachelor of Technology<BR><BR><BR>Technical Consultant<BR><BR><BR>Pacific Alliance Technologies<BR><BR>TEL 604.676.6000 EXT 110 TOL 877.691.9171<BR>FAX 604.682.0962
<BR><BR><BR>WEB <A href="http://www.pat.ca/" target=_blank>http://www.pat.ca/</A> <A href="http://www.pat.ca/" target=_blank>www.pat.ca</A> <BR><BR><BR>&nbsp;<BR><BR><BR>&nbsp;“A Member<BR>of&nbsp;StarDyne Technologies”<BR>&nbsp;&nbsp; <A href="http://www.stardynetech.com/" target=_blank>http://www.stardynetech.com/</A> <A href="http://www.stardynetech.com/" target=_blank>www.stardynetech.com</A> <BR><BR><BR>The information contained<BR>in this message may be privileged and confidential and protected from<BR>disclosure. If the reader of this message is not the intended recipient, or<BR>an<BR>employee or agent responsible for delivering this message to the intended<BR>recipient, you are hereby notified that any dissemination, distribution or<BR>copying of this message is strictly prohibited. If you have received this<BR>message in error, please notify us immediately by replying to this message<BR>and<BR>deleting it
from your system without making a copy.&nbsp; Internet<BR>communications cannot be guaranteed to be secure or error-free as<BR>information<BR>could be intercepted, corrupted, lost, arrive late or contain viruses.&nbsp;<BR>We<BR>are not liable for the timely, proper or complete transmission of the<BR>information contained in such communications.&nbsp; We are also not liable<BR>for<BR>the loss of confidentiality of information contained in such communications.<BR><BR><BR>&nbsp;<BR><BR><BR>-- <BR>View this message in context: <A href="http://www.nabble.com/mgserver-process-hangs---memory-usage-tp17335201p17364311.html" target=_blank>http://www.nabble.com/mgserver-process-hangs---memory-usage-tp17335201p17364311.html</A><BR>Sent from the MapGuide Users mailing list archive at <A href="http://nabble.com/" target=_blank>Nabble.com</A>.<BR><BR>_______________________________________________<BR>mapguide-users mailing list<BR><A
href="mailto:mapguide-users@lists.osgeo.org" ymailto="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</A><BR><A href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target=_blank>http://lists.osgeo.org/mailman/listinfo/mapguide-users</A><BR></DIV></div><br>
</body></html>