1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
2 | <html dir="ltr" lang="en"><head><title>How to monitor CPU and RAM usage using Python - Python Forum</title> |
---|
3 | |
---|
4 | |
---|
5 | |
---|
6 | <meta name="keywords" content="How to monitor CPU and RAM usage using Python software, programming, scripts, php, C++, C, .NET, python, VB, VB.net, perl, java, javascript, web services, xml, database, mysql, oracle"> |
---|
7 | <meta name="description" content="How to monitor CPU and RAM usage using Python. Get answers to your questions in our Python Forum forum."> |
---|
8 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
---|
9 | <link href="thread628262_files/all.css" rel="stylesheet" type="text/css"> |
---|
10 | <link rel="stylesheet" type="text/css" href="thread628262_files/as_styles.css"><!-- CSS Stylesheet --> |
---|
11 | |
---|
12 | <link rel="stylesheet" type="text/css" href="thread628262_files/style-137a3df0-00010.css"><!-- / CSS Stylesheet --> |
---|
13 | |
---|
14 | |
---|
15 | |
---|
16 | <script type="text/javascript"> |
---|
17 | <!-- |
---|
18 | var SESSIONURL = ""; |
---|
19 | var IMGDIR_MISC = "http://www.thescripts.com/forum/images/cnome_misc"; |
---|
20 | var goo_keywords = "flash, actionscript, adobe, macromedia"; |
---|
21 | // --> |
---|
22 | </script> |
---|
23 | |
---|
24 | <script type="text/javascript" src="thread628262_files/vbulletin_global.js"></script> |
---|
25 | |
---|
26 | <link href="thread628262_files/navMenu.css" rel="stylesheet" type="text/css"> |
---|
27 | <script type="text/javascript" src="thread628262_files/navMenu.js"></script> |
---|
28 | |
---|
29 | |
---|
30 | <script> |
---|
31 | window.onload = navMenuExp; |
---|
32 | </script></head><body> |
---|
33 | <table class="maintable"> |
---|
34 | <tbody><tr> |
---|
35 | <td width="180"><a href="http://www.thescripts.com/"><img title="Professional Developer Community" src="thread628262_files/logo.jpg" alt="Professional Developer Community" border="0" height="60" width="180"></a></td> |
---|
36 | |
---|
37 | <td class="top_header" align="right"> |
---|
38 | <table width="100%"> |
---|
39 | <tbody><tr> |
---|
40 | <td class="top_header" align="right" height="20" valign="top"> |
---|
41 | |
---|
42 | <a href="http://www.thescripts.com/forum/faq.php">Help</a> | |
---|
43 | <a href="http://www.thescripts.com/forum/archive/index.php">Site Map</a> |
---|
44 | |
---|
45 | </td> |
---|
46 | </tr> |
---|
47 | <tr> |
---|
48 | <td class="top_header" align="left" height="30" valign="bottom"> |
---|
49 | |
---|
50 | <table width="100%"> |
---|
51 | <tbody><tr><td class="top_header" align="left" width="50%"> |
---|
52 | |
---|
53 | Hello! <a href="http://www.thescripts.com/forum/login.php">Sign in</a> or <a href="http://www.thescripts.com/forum/register.php">register</a>. |
---|
54 | |
---|
55 | </td> |
---|
56 | <td class="top_header" align="right"> |
---|
57 | <form action="http://www.thescripts.com/forum/search.php" method="post" name="search"> |
---|
58 | <input name="do" value="process" type="hidden"> |
---|
59 | <input name="showposts" value="0" type="hidden"> |
---|
60 | <input name="quicksearch" value="1" type="hidden"> |
---|
61 | <input name="forumchoice[]" value="" type="hidden"> <input name="query" size="20" value="Search" onfocus="this.value=''" type="text"> |
---|
62 | <input value="Go" name="gobutton" type="submit"> |
---|
63 | </form> |
---|
64 | </td> |
---|
65 | </tr> |
---|
66 | </tbody></table> |
---|
67 | </td> |
---|
68 | </tr> |
---|
69 | </tbody></table> |
---|
70 | |
---|
71 | </td> |
---|
72 | </tr> |
---|
73 | </tbody></table> |
---|
74 | |
---|
75 | <div id="menuwrapper"> |
---|
76 | <ul id="navMenubar"> |
---|
77 | <li><a class="trigger" href="#">Discussions</a> |
---|
78 | <ul> |
---|
79 | <li><a href="http://www.thescripts.com/forum/forum30.html">Introductions</a></li> |
---|
80 | <li><a href="http://www.thescripts.com/forum/forum160.html">Cafe / Lounge</a></li> |
---|
81 | <li><a href="http://www.thescripts.com/forum/forum67.html">Games and Puzzles</a></li> |
---|
82 | <li><a href="http://www.thescripts.com/forum/forum125.html">Feedback, Bugs, Suggestions</a></li> |
---|
83 | |
---|
84 | |
---|
85 | </ul> |
---|
86 | </li> |
---|
87 | <li><a class="trigger" href="#">Forums</a> |
---|
88 | <ul> |
---|
89 | <div id="menudesc">Programming forums for software developers and programmers:</div> |
---|
90 | <li><div class="menucat">Languages</div> |
---|
91 | <div id="sublist"> |
---|
92 | <a href="http://www.thescripts.com/forum/forum129.html">C / C++</a> |
---|
93 | <a href="http://www.thescripts.com/forum/forum130.html">Java</a> |
---|
94 | <a href="http://www.thescripts.com/forum/forum131.html">.NET</a> |
---|
95 | <a href="http://www.thescripts.com/forum/forum132.html">Visual Basic </a> |
---|
96 | <a href="http://www.thescripts.com/forum/forum152.html">Python</a> |
---|
97 | </div> |
---|
98 | </li> |
---|
99 | <li><div class="menucat">Web Development</div> |
---|
100 | <div id="sublist"> |
---|
101 | <a href="http://www.thescripts.com/forum/forum128.html">PHP</a> |
---|
102 | <a href="http://www.thescripts.com/forum/forum147.html">Ruby / Rails</a> |
---|
103 | <a href="http://www.thescripts.com/forum/forum150.html">Perl</a> |
---|
104 | <a href="http://www.thescripts.com/forum/forum151.html">ASP</a> |
---|
105 | <a href="http://www.thescripts.com/forum/forum148.html">Coldfusion</a> |
---|
106 | <a href="http://www.thescripts.com/forum/forum149.html">Javascript / Ajax</a> |
---|
107 | <a href="http://www.thescripts.com/forum/forum144.html">Flash / Actionscript</a> |
---|
108 | <a href="http://www.thescripts.com/forum/forum145.html">XML</a> |
---|
109 | <a href="http://www.thescripts.com/forum/forum143.html">HTML / CSS</a> |
---|
110 | </div> |
---|
111 | </li> |
---|
112 | <li><div class="menucat">Database</div> |
---|
113 | <div id="sublist"> |
---|
114 | <a href="http://www.thescripts.com/forum/forum138.html">MySQL</a> |
---|
115 | <a href="http://www.thescripts.com/forum/forum139.html">Oracle</a> |
---|
116 | <a href="http://www.thescripts.com/forum/forum141.html">SQL Server</a> |
---|
117 | <a href="http://www.thescripts.com/forum/forum140.html">PostgreSQL</a> |
---|
118 | <a href="http://www.thescripts.com/forum/forum142.html">Access</a> |
---|
119 | <a href="http://www.thescripts.com/forum/forum159.html">DB2</a> |
---|
120 | </div> |
---|
121 | </li> |
---|
122 | <li><div class="menucat">System Administration</div> |
---|
123 | <div id="sublist"> |
---|
124 | <a href="http://www.thescripts.com/forum/forum133.html">Apache</a> |
---|
125 | <a href="http://www.thescripts.com/forum/forum134.html">IIS</a> |
---|
126 | <a href="http://www.thescripts.com/forum/forum135.html">Networking</a> |
---|
127 | <a href="http://www.thescripts.com/forum/forum136.html">Linux / Unix / BSD</a> |
---|
128 | <a href="http://www.thescripts.com/forum/forum137.html">Windows</a> |
---|
129 | </div> |
---|
130 | </li> |
---|
131 | <li><div class="menucat">More</div> |
---|
132 | <div id="sublist"> |
---|
133 | <a href="http://www.thescripts.com/forum/forum158.html">Software Development</a> |
---|
134 | <a href="http://www.thescripts.com/forum/forum146.html">Mobile Development</a> |
---|
135 | <a href="http://www.thescripts.com/forum/forum214.html">Jobs</a> |
---|
136 | <a href="http://www.thescripts.com/forum/forum28.html">Misc Questions</a> |
---|
137 | </div> |
---|
138 | </li> |
---|
139 | </ul> |
---|
140 | </li> |
---|
141 | <li><a class="trigger" href="#">Articles</a> |
---|
142 | <ul> |
---|
143 | <div id="menudesc">Software development articles from experts and community members:</div> |
---|
144 | <li><div class="menucat">Languages</div> |
---|
145 | <div id="sublist"> |
---|
146 | <a href="http://www.thescripts.com/forum/forum161.html">C / C++</a> |
---|
147 | <a href="http://www.thescripts.com/forum/forum163.html">Java</a> |
---|
148 | <a href="http://www.thescripts.com/forum/forum166.html">.NET</a> |
---|
149 | <a href="http://www.thescripts.com/forum/forum169.html">Visual Basic </a> |
---|
150 | <a href="http://www.thescripts.com/forum/forum172.html">Python</a> |
---|
151 | </div> |
---|
152 | </li> |
---|
153 | <li><div class="menucat">Web Development</div> |
---|
154 | <div id="sublist"> |
---|
155 | <a href="http://www.thescripts.com/forum/forum174.html">PHP</a> |
---|
156 | <a href="http://www.thescripts.com/forum/forum176.html">Ruby / Rails</a> |
---|
157 | <a href="http://www.thescripts.com/forum/forum178.html">Perl</a> |
---|
158 | <a href="http://www.thescripts.com/forum/forum180.html">ASP</a> |
---|
159 | <a href="http://www.thescripts.com/forum/forum182.html">Coldfusion</a> |
---|
160 | <a href="http://www.thescripts.com/forum/forum184.html">Javascript / Ajax</a> |
---|
161 | <a href="http://www.thescripts.com/forum/forum186.html">Flash / Actionscript</a> |
---|
162 | <a href="http://www.thescripts.com/forum/forum188.html">XML</a> |
---|
163 | <a href="http://www.thescripts.com/forum/forum192.html">HTML / CSS</a> |
---|
164 | </div> |
---|
165 | </li> |
---|
166 | <li><div class="menucat">Database</div> |
---|
167 | <div id="sublist"> |
---|
168 | <a href="http://www.thescripts.com/forum/forum194.html">MySQL</a> |
---|
169 | <a href="http://www.thescripts.com/forum/forum197.html">Oracle</a> |
---|
170 | <a href="http://www.thescripts.com/forum/forum198.html">SQL Server</a> |
---|
171 | <a href="http://www.thescripts.com/forum/forum200.html">PostgreSQL</a> |
---|
172 | <a href="http://www.thescripts.com/forum/forum202.html">Access</a> |
---|
173 | <a href="http://www.thescripts.com/forum/forum205.html">DB2</a> |
---|
174 | </div> |
---|
175 | </li> |
---|
176 | <li><div class="menucat">System Administration</div> |
---|
177 | <div id="sublist"> |
---|
178 | <a href="http://www.thescripts.com/forum/forum208.html">Apache</a> |
---|
179 | <a href="http://www.thescripts.com/forum/forum210.html">IIS</a> |
---|
180 | <a href="http://www.thescripts.com/forum/forum211.html">Networking</a> |
---|
181 | <a href="http://www.thescripts.com/forum/forum212.html">Linux / Unix / BSD</a> |
---|
182 | <a href="http://www.thescripts.com/forum/forum213.html">Windows</a> |
---|
183 | </div> |
---|
184 | </li> |
---|
185 | <li><div class="menucat">More</div> |
---|
186 | <div id="sublist"> |
---|
187 | <a href="http://www.thescripts.com/forum/forum254.html">Software Development</a> |
---|
188 | <a href="http://www.thescripts.com/forum/forum190.html">Mobile Development</a> |
---|
189 | |
---|
190 | </div> |
---|
191 | </li> |
---|
192 | </ul> |
---|
193 | </li> |
---|
194 | <li><a class="trigger" href="#">Our Community</a> |
---|
195 | <ul> |
---|
196 | <li><a href="#">Meet the Admins</a></li> |
---|
197 | <li><a href="#">Meet the Moderators</a></li> |
---|
198 | <li><a href="#">Meet the Experts</a></li> |
---|
199 | <li><a href="#">Most active members</a></li> |
---|
200 | <li><a href="http://www.thescripts.com/forum/memberlist.php">Member Directory</a></li> |
---|
201 | <li><a href="#">Who's Online</a></li> |
---|
202 | </ul> |
---|
203 | </li> |
---|
204 | </ul> |
---|
205 | <br class="clearit"> |
---|
206 | </div> |
---|
207 | |
---|
208 | |
---|
209 | |
---|
210 | <script type="text/javascript"> |
---|
211 | <!-- |
---|
212 | function log_out() |
---|
213 | { |
---|
214 | ht = document.getElementsByTagName("html"); |
---|
215 | ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)"; |
---|
216 | if (confirm('Are you sure you want to log out?')) |
---|
217 | { |
---|
218 | return true; |
---|
219 | } |
---|
220 | else |
---|
221 | { |
---|
222 | ht[0].style.filter = ""; |
---|
223 | return false; |
---|
224 | } |
---|
225 | } |
---|
226 | //--> |
---|
227 | </script> |
---|
228 | |
---|
229 | |
---|
230 | <br> |
---|
231 | <div class="jointable"> |
---|
232 | Need Python Forum help? <a href="http://www.thescripts.com/forum/register.php">Post your Question here</a>. It's Free! |
---|
233 | </div> |
---|
234 | |
---|
235 | |
---|
236 | |
---|
237 | <br> |
---|
238 | <div class="adtable"> |
---|
239 | |
---|
240 | <!-- begin ad tag (programming/python) --> |
---|
241 | <script language="JavaScript" type="text/javascript"> |
---|
242 | document.write('<script language="JavaScript" src="http://ad.doubleclick.net/adj/ttm.thescripts/programming/python;cmy=programming;zn=python;sz=728x90;tile=1;ord=778852147?" type="text/javascript"></scr' + 'ipt>'); |
---|
243 | </script><script language="JavaScript" src="thread628262_files/python_003" type="text/javascript"></script> |
---|
244 | <script language="JavaScript" src="thread628262_files/show_ads.js"></script><script language="JavaScript1.1" src="thread628262_files/ads_002"></script><div id="headerads"><div id="as3a"><div class="ghdrad"><a href="http://pagead2.googlesyndication.com/pagead/iclk?sa=l&ai=BGF-dFWJbRriDPZXS4ALVlKyrB4W9-heBl7XZAsCNtwGAph0QARgBIJi2iwIoAzgAUJ_ss8H4_____wFgyd6Oh8yjwBeYAeDXggKgAaOS3foDqgEKNDM5NzA3MDI4OLIBEnd3dy50aGVzY3JpcHRzLmNvbboBCTk1MHg5MF9qc8gBAdoBMWh0dHA6Ly93d3cudGhlc2NyaXB0cy5jb20vZm9ydW0vdGhyZWFkNjI4MjYyLmh0bWyAAgGpAiL6bDVvD68-qAMB6AOvAugDH-gD2wXoAwX1AwABAAA&num=1&ggladgrp=321602077&gglcreat=637415557&adurl=http://xwires.com/split/%3Faid%3D5914%26s%3D385&client=ca-pub-3431100313772407" onmouseout="window.status=''" onmouseover="window.status='go to www.PCTuneUpTips.com/VirtualMemory'">Fix Low Virtual Memory<div class="desc">Expert Low Virtual Memory Tweaks To Banish Virtual Memory Errors</div><div class="lnk">www.PCTuneUpTips.com/VirtualMemory</div></a></div></div><div id="as3b"><div class="ghdrad"><a href="http://pagead2.googlesyndication.com/pagead/iclk?sa=l&ai=BZM4XFWJbRriDPZXS4ALVlKyrB_zrtRj00I2yAsCNtwGg0RkQAhgCIJi2iwIoAzgAUI3Nq537_____wFgyd6Oh8yjwBeYAeDXggKgAcD88foDqgEKNDM5NzA3MDI4OLIBEnd3dy50aGVzY3JpcHRzLmNvbboBCTk1MHg5MF9qc8gBAdoBMWh0dHA6Ly93d3cudGhlc2NyaXB0cy5jb20vZm9ydW0vdGhyZWFkNjI4MjYyLmh0bWyAAgGpAiL6bDVvD68-qAMB6AOvAugDH-gD2wXoAwX1AwABAAA&num=2&ggladgrp=298852780&gglcreat=551115340&adurl=http://www.faster-pc.net/process/%3Fid%3DU4AnImxEjwvys4nUL60QBPH9_vdvWqh4siorNhWbasA-sKUn3LsHFX8jUS-ZqWlW&client=ca-pub-3431100313772407" onmouseout="window.status=''" onmouseover="window.status='go to www.Faster-PC.net'">Fix Virtual Memory<div class="desc">Repair Virtual Memory in 2 mins. Free Download. 100% Guaranteed.</div><div class="lnk">www.Faster-PC.net</div></a></div></div><div id="as3c"><div class="ghdrad"><a href="http://pagead2.googlesyndication.com/pagead/iclk?sa=l&ai=BHMW6FWJbRriDPZXS4ALVlKyrB4jfvxWY_unZAsCNtwGgnVQQAxgDIJi2iwIoAzgAUMGqyO8FYMnejofMo8AXmAHg14ICoAG5p7T_A6oBCjQzOTcwNzAyODiyARJ3d3cudGhlc2NyaXB0cy5jb226AQk5NTB4OTBfanPIAQHaATFodHRwOi8vd3d3LnRoZXNjcmlwdHMuY29tL2ZvcnVtL3RocmVhZDYyODI2Mi5odG1sgAIBqAMB6AOvAugDH-gD2wXoAwX1AwABAAA&num=3&adurl=http://manageengine.adventnet.com/products/opmanager/server-monitoring.html&client=ca-pub-3431100313772407" onmouseout="window.status=''" onmouseover="window.status='go to www.OpManager.com'">Tool to Monitor Server<div class="desc">Monitor Server Performance, CPU Memory, Disk space. Free Download!</div><div class="lnk">www.OpManager.com</div></a></div></div><div id="as3d"><div class="ghdradby"><a href="http://services.google.com/feedback/abg?url=http://www.thescripts.com/forum/thread628262.html&hl=en&client=ca-pub-3431100313772407&adU=www.PCTuneUpTips.com/VirtualMemory&adT=Fix+Low+Virtual+Memory&adU=www.Faster-PC.net&adT=Fix+Virtual+Memory&adU=www.OpManager.com&adT=Tool+to+Monitor+Server&done=1">Ads by Google</a><br></div></div></div><noscript> |
---|
245 | <a |
---|
246 | href="http://ad.doubleclick.net/jump/ttm.thescripts/programming/python;cmy=programming;zn=python;ord=778852147?" |
---|
247 | target="_blank"><img |
---|
248 | src="http://ad.doubleclick.net/ad/ttm.thescripts/programming/python;cmy=programming;zn=python;ord=778852147?" |
---|
249 | width="728" height="90" border="0" alt="sponsor content">sponsor |
---|
250 | content</a></noscript> |
---|
251 | <!-- End ad tag --> |
---|
252 | |
---|
253 | </div> |
---|
254 | |
---|
255 | |
---|
256 | |
---|
257 | <table class="navtable"> |
---|
258 | <tbody><tr> |
---|
259 | <td> |
---|
260 | <!-- breadcrumb, login, pm info --> |
---|
261 | <div class="navbar_box"> |
---|
262 | |
---|
263 | |
---|
264 | |
---|
265 | |
---|
266 | <strong><a href="http://www.thescripts.com/forum/" accesskey="1">Community</a> |
---|
267 | <span class="navbar">> <a href="http://www.thescripts.com/forum/forum65.html">Developer Groups</a></span> |
---|
268 | |
---|
269 | <span class="navbar">> <a href="http://www.thescripts.com/forum/forum218.html">Python</a></span> |
---|
270 | |
---|
271 | <span class="navbar">> <a href="http://www.thescripts.com/forum/forum152.html">Python Forum</a></span> |
---|
272 | > How to monitor CPU and RAM usage using Python</strong> |
---|
273 | |
---|
274 | |
---|
275 | </div> |
---|
276 | </td> |
---|
277 | </tr> |
---|
278 | </tbody></table> |
---|
279 | |
---|
280 | |
---|
281 | |
---|
282 | |
---|
283 | <table class="maintable"> |
---|
284 | <tbody><tr> |
---|
285 | <td valign="top"> |
---|
286 | <table border="0" cellpadding="0" cellspacing="0" width="100%"> |
---|
287 | <tbody><tr> |
---|
288 | <td height="1000" valign="top"> |
---|
289 | |
---|
290 | |
---|
291 | |
---|
292 | <!-- content table --> |
---|
293 | |
---|
294 | |
---|
295 | |
---|
296 | |
---|
297 | |
---|
298 | |
---|
299 | <a name="poststop" id="poststop"></a> |
---|
300 | |
---|
301 | |
---|
302 | <!-- end content table --> |
---|
303 | |
---|
304 | <!-- / end content table --> |
---|
305 | |
---|
306 | |
---|
307 | |
---|
308 | <!-- post #2485887 --> |
---|
309 | |
---|
310 | <div id="post_box"> |
---|
311 | <div class="alt2 post_box_top"> |
---|
312 | <!-- user info --> |
---|
313 | <table border="0" cellpadding="3" cellspacing="0" width="100%"> |
---|
314 | <tbody><tr> |
---|
315 | <td valign="top" width="30"> |
---|
316 | |
---|
317 | |
---|
318 | |
---|
319 | <a href="http://www.thescripts.com/forum/member.php?u=97821"><img title="soulofstar's Avatar" class="avtr" src="thread628262_files/noavatar.gif" alt="soulofstar's Avatar" border="0" height="30" width="30"></a> |
---|
320 | |
---|
321 | |
---|
322 | |
---|
323 | |
---|
324 | </td> |
---|
325 | <td id="post_box_clear" width="50%"> |
---|
326 | <div id="postmenu_2485887" class="post_auth"> |
---|
327 | |
---|
328 | <a href="http://www.thescripts.com/forum/member.php?u=97821">soulofstar</a> |
---|
329 | <script type="text/javascript"> vbmenu_register("postmenu_2485887", true); </script> |
---|
330 | |
---|
331 | |
---|
332 | <div class="smallfont">Newbie</div> |
---|
333 | <div class="smallfont"> |
---|
334 | 3 Posts |
---|
335 | </div> |
---|
336 | </div> |
---|
337 | </td> |
---|
338 | <td id="post_box_clear" class="post_auth" align="right" valign="bottom"> |
---|
339 | <div class="smallfont"> |
---|
340 | |
---|
341 | April 5th, 2007<br>02:13 AM |
---|
342 | <br> |
---|
343 | #<a href="http://www.thescripts.com/forum/post2485887-1.html" target="new" class="smallfont"><strong>1</strong></a> |
---|
344 | |
---|
345 | </div> |
---|
346 | </td> |
---|
347 | </tr> |
---|
348 | </tbody></table> |
---|
349 | <!-- / user info --> |
---|
350 | </div> |
---|
351 | <div class="alt1 post_box_bottom"> |
---|
352 | <!-- message, attachments, sig --> |
---|
353 | <!-- message --> |
---|
354 | <br> |
---|
355 | |
---|
356 | <strong>How to monitor CPU and RAM usage using Python</strong> |
---|
357 | |
---|
358 | <hr style="color: rgb(238, 238, 238); padding-top: 3px;" size="1"> |
---|
359 | <div class="post_message">I want to monitor the CPU and RAM usage using Python, <br> |
---|
360 | <br> |
---|
361 | Now, I know how to monitor RAM usage by Python<br> |
---|
362 | <br> |
---|
363 | <!-- CODE --> |
---|
364 | <div class="smallfont" style="margin-bottom: 2px;">Code: ( text )</div> |
---|
365 | <div class="text" style="margin: 0px; padding: 2px; background: rgb(252, 252, 252) none repeat scroll 0%; color: rgb(34, 34, 34); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><ol><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;">from ctypes import *</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;">from ctypes.wintypes import *</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"> </div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;">class MEMORYSTATUS(Structure):</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"> _fields_ = [</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"> ('dwLength', DWORD),</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"> ('dwMemoryLoad', DWORD),</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"> ('dwTotalPhys', DWORD),</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"> ('dwAvailPhys', DWORD),</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"> ('dwTotalPageFile', DWORD),</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"> ('dwAvailPageFile', DWORD),</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"> ('dwTotalVirtual', DWORD),</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"> ('dwAvailVirtual', DWORD),</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"> ]</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;">def winmem():</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"> m = MEMORYSTATUS()</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"> windll.kernel32.GlobalMemoryStatus(byref(m))</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"> return m</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;">m = winmem()</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;">print '%d MB physical RAM left.' % (m.dwAvailPhys/1024**2)</div></li></ol></div> |
---|
366 | <br> |
---|
367 | <br> |
---|
368 | <br> |
---|
369 | But I don't know how to monitor CPU realtime usage, please help me.<br> |
---|
370 | <br> |
---|
371 | And how to monitor CPU and RAM used by one program?</div> |
---|
372 | <!-- / message --> |
---|
373 | |
---|
374 | |
---|
375 | |
---|
376 | |
---|
377 | <hr style="color: rgb(238, 238, 238); padding-top: 3px;" size="1"> |
---|
378 | |
---|
379 | <!-- edit note --> |
---|
380 | <div class="smallfont"> <em> |
---|
381 | Last edited by bartonc : April 5th, 2007 at <span class="time">02:49 AM</span>. |
---|
382 | Reason: added [code][/code] tags |
---|
383 | </em> |
---|
384 | </div> |
---|
385 | <!-- / edit note --> |
---|
386 | |
---|
387 | |
---|
388 | <div class="post_buttons" align="right"> |
---|
389 | <!-- controls --> |
---|
390 | |
---|
391 | |
---|
392 | |
---|
393 | |
---|
394 | |
---|
395 | |
---|
396 | |
---|
397 | <a href="http://www.thescripts.com/forum/newreply.php?do=newreply&p=2485887">Reply</a> |
---|
398 | |
---|
399 | |
---|
400 | <!-- / controls --> |
---|
401 | </div> |
---|
402 | <!-- message, attachments, sig --> |
---|
403 | </div> |
---|
404 | </div> |
---|
405 | |
---|
406 | <!-- / post #2485887 --> |
---|
407 | |
---|
408 | <!-- post #2485954 --> |
---|
409 | |
---|
410 | <div id="post_box"> |
---|
411 | <div class="alt2 post_box_top"> |
---|
412 | <!-- user info --> |
---|
413 | <table border="0" cellpadding="3" cellspacing="0" width="100%"> |
---|
414 | <tbody><tr> |
---|
415 | <td valign="top" width="30"> |
---|
416 | |
---|
417 | |
---|
418 | |
---|
419 | <a href="http://www.thescripts.com/forum/member.php?u=3979"><img title="ghostdog74's Avatar" class="avtr" src="thread628262_files/noavatar.gif" alt="ghostdog74's Avatar" border="0" height="30" width="30"></a> |
---|
420 | |
---|
421 | |
---|
422 | |
---|
423 | |
---|
424 | </td> |
---|
425 | <td id="post_box_clear" width="50%"> |
---|
426 | <div id="postmenu_2485954" class="post_auth"> |
---|
427 | |
---|
428 | <a href="http://www.thescripts.com/forum/member.php?u=3979">ghostdog74</a> |
---|
429 | <script type="text/javascript"> vbmenu_register("postmenu_2485954", true); </script> |
---|
430 | |
---|
431 | |
---|
432 | <div class="smallfont"><span style="color: rgb(255, 79, 0);">Expert</span></div> |
---|
433 | <div class="smallfont"> |
---|
434 | 345 Posts |
---|
435 | </div> |
---|
436 | </div> |
---|
437 | </td> |
---|
438 | <td id="post_box_clear" class="post_auth" align="right" valign="bottom"> |
---|
439 | <div class="smallfont"> |
---|
440 | |
---|
441 | April 5th, 2007<br>02:54 AM |
---|
442 | <br> |
---|
443 | #<a href="http://www.thescripts.com/forum/post2485954-2.html" target="new" class="smallfont"><strong>2</strong></a> |
---|
444 | |
---|
445 | </div> |
---|
446 | </td> |
---|
447 | </tr> |
---|
448 | </tbody></table> |
---|
449 | <!-- / user info --> |
---|
450 | </div> |
---|
451 | <div class="alt1 post_box_bottom"> |
---|
452 | <!-- message, attachments, sig --> |
---|
453 | <!-- message --> |
---|
454 | <br> |
---|
455 | |
---|
456 | <strong>Re: How to monitor CPU and RAM usage using Python</strong> |
---|
457 | |
---|
458 | <hr style="color: rgb(238, 238, 238); padding-top: 3px;" size="1"> |
---|
459 | <div class="post_message"><!-- Quote --> |
---|
460 | <table width="500"><tbody><tr><td> |
---|
461 | <div style="margin: 5px;"> |
---|
462 | <div class="smallfont" style="margin-bottom: 2px;">Quote:</div> |
---|
463 | <div class="alt2 smallcode" style="border: 1px inset ; margin: 0px; padding: 6px; width: 500px;"> |
---|
464 | <div>Originally Posted by <strong>soulofstar</strong></div> |
---|
465 | <div style="font-style: italic;">I want to monitor the CPU and RAM usage using Python, <br> |
---|
466 | <br> |
---|
467 | Now, I know how to monitor RAM usage by Python<br> |
---|
468 | <blockquote>from ctypes import *<br> |
---|
469 | from ctypes.wintypes import *<br> |
---|
470 | <br> |
---|
471 | class MEMORYSTATUS(Structure):<br> |
---|
472 | _fields_ = [<br> |
---|
473 | ('dwLength', DWORD),<br> |
---|
474 | ('dwMemoryLoad', DWORD),<br> |
---|
475 | ('dwTotalPhys', DWORD),<br> |
---|
476 | ('dwAvailPhys', DWORD),<br> |
---|
477 | ('dwTotalPageFile', DWORD),<br> |
---|
478 | ('dwAvailPageFile', DWORD),<br> |
---|
479 | ('dwTotalVirtual', DWORD),<br> |
---|
480 | ('dwAvailVirtual', DWORD),<br> |
---|
481 | ]<br> |
---|
482 | def winmem():<br> |
---|
483 | m = MEMORYSTATUS()<br> |
---|
484 | windll.kernel32.GlobalMemoryStatus(byref(m))<br> |
---|
485 | return m<br> |
---|
486 | m = winmem()<br> |
---|
487 | print '%d MB physical RAM left.' % (m.dwAvailPhys/1024**2)</blockquote><br> |
---|
488 | <br> |
---|
489 | But I don't know how to monitor CPU realtime usage, please help me.<br> |
---|
490 | <br> |
---|
491 | And how to monitor CPU and RAM used by one program?</div> |
---|
492 | </div> |
---|
493 | </div> |
---|
494 | </td></tr></tbody></table><br> |
---|
495 | <br> |
---|
496 | <br> |
---|
497 | while i am not much into ctypes, there's another way, using WMI<br> |
---|
498 | check <a href="http://msdn.microsoft.com/library/e...i_reference.asp" rel="nofollow" target="_blank">MSDN</a> and <a href="http://tgolden.sc.sabren.com/python/wmi.html" rel="nofollow" target="_blank">here</a> for more.<br> |
---|
499 | <br> |
---|
500 | one example :<br> |
---|
501 | <!-- CODE --> |
---|
502 | <div class="smallfont" style="margin-bottom: 2px;">Code: ( text )</div> |
---|
503 | <div class="text" style="margin: 0px; padding: 2px; background: rgb(252, 252, 252) none repeat scroll 0%; color: rgb(34, 34, 34); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><ol><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;">>>> import wmi</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;">>>> wm = wmi.WMI()</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;">>>> for j in wm.Win32_PerfFormattedData_PerfOS_Memory(): print j</div></li></ol></div> |
---|
504 | <br> |
---|
505 | <br> |
---|
506 | another eg:<br> |
---|
507 | <!-- CODE --> |
---|
508 | <div class="smallfont" style="margin-bottom: 2px;">Code: ( text )</div> |
---|
509 | <div class="text" style="margin: 0px; padding: 2px; background: rgb(252, 252, 252) none repeat scroll 0%; color: rgb(34, 34, 34); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><ol><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;">>>> import wmi</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;">>>> wm = wmi.WMI ()</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;">>>> for j in wm.Win32_Processor (): print j</div></li></ol></div> |
---|
510 | </div> |
---|
511 | <!-- / message --> |
---|
512 | |
---|
513 | |
---|
514 | |
---|
515 | |
---|
516 | <hr style="color: rgb(238, 238, 238); padding-top: 3px;" size="1"> |
---|
517 | |
---|
518 | |
---|
519 | <div class="post_buttons" align="right"> |
---|
520 | <!-- controls --> |
---|
521 | |
---|
522 | |
---|
523 | |
---|
524 | |
---|
525 | |
---|
526 | |
---|
527 | |
---|
528 | <a href="http://www.thescripts.com/forum/newreply.php?do=newreply&p=2485954">Reply</a> |
---|
529 | |
---|
530 | |
---|
531 | <!-- / controls --> |
---|
532 | </div> |
---|
533 | <!-- message, attachments, sig --> |
---|
534 | </div> |
---|
535 | </div> |
---|
536 | |
---|
537 | <!-- / post #2485954 --> |
---|
538 | |
---|
539 | <!-- post #2486324 --> |
---|
540 | |
---|
541 | <div id="post_box"> |
---|
542 | <div class="alt2 post_box_top"> |
---|
543 | <!-- user info --> |
---|
544 | <table border="0" cellpadding="3" cellspacing="0" width="100%"> |
---|
545 | <tbody><tr> |
---|
546 | <td valign="top" width="30"> |
---|
547 | |
---|
548 | |
---|
549 | |
---|
550 | <a href="http://www.thescripts.com/forum/member.php?u=97821"><img title="soulofstar's Avatar" class="avtr" src="thread628262_files/noavatar.gif" alt="soulofstar's Avatar" border="0" height="30" width="30"></a> |
---|
551 | |
---|
552 | |
---|
553 | |
---|
554 | |
---|
555 | </td> |
---|
556 | <td id="post_box_clear" width="50%"> |
---|
557 | <div id="postmenu_2486324" class="post_auth"> |
---|
558 | |
---|
559 | <a href="http://www.thescripts.com/forum/member.php?u=97821">soulofstar</a> |
---|
560 | <script type="text/javascript"> vbmenu_register("postmenu_2486324", true); </script> |
---|
561 | |
---|
562 | |
---|
563 | <div class="smallfont">Newbie</div> |
---|
564 | <div class="smallfont"> |
---|
565 | 3 Posts |
---|
566 | </div> |
---|
567 | </div> |
---|
568 | </td> |
---|
569 | <td id="post_box_clear" class="post_auth" align="right" valign="bottom"> |
---|
570 | <div class="smallfont"> |
---|
571 | |
---|
572 | April 5th, 2007<br>07:04 AM |
---|
573 | <br> |
---|
574 | #<a href="http://www.thescripts.com/forum/post2486324-3.html" target="new" class="smallfont"><strong>3</strong></a> |
---|
575 | |
---|
576 | </div> |
---|
577 | </td> |
---|
578 | </tr> |
---|
579 | </tbody></table> |
---|
580 | <!-- / user info --> |
---|
581 | </div> |
---|
582 | <div class="alt1 post_box_bottom"> |
---|
583 | <!-- message, attachments, sig --> |
---|
584 | <!-- message --> |
---|
585 | <br> |
---|
586 | |
---|
587 | <strong>Re: How to monitor CPU and RAM usage using Python</strong> |
---|
588 | |
---|
589 | <hr style="color: rgb(238, 238, 238); padding-top: 3px;" size="1"> |
---|
590 | <div class="post_message">Now I knew how to monitor CPU and Memory usage via win32pdh, while I don't know how to monitor memory usage of one application.<br> |
---|
591 | <br> |
---|
592 | snippet of code:<br> |
---|
593 | <!-- CODE --> |
---|
594 | <div class="smallfont" style="margin-bottom: 2px;">Code: ( text )</div> |
---|
595 | <div class="text" style="margin: 0px; padding: 2px; background: rgb(252, 252, 252) none repeat scroll 0%; color: rgb(34, 34, 34); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><ol><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;">mempath = win32pdh.MakeCounterPath((None, "Memory", None, \</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"> |
---|
596 | |
---|
597 | |
---|
598 | None, -1, "Available MBytes"))</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;">query = win32pdh.OpenQuery(None, 0)</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;">counter = win32pdh.AddCounter(query, mempath, 0)</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"> </div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;">win32pdh.CollectQueryData(query)</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;">status, value = win32pdh.GetFormattedCounterValue(counter,</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;"> win32pdh.PDH_FMT_LONG)</div></li></ol></div> |
---|
599 | <br> |
---|
600 | These code only can monitor the whole availabe memory, I do not know |
---|
601 | how to change the CounterPath to monitor one certain application's |
---|
602 | memory usage.<br> |
---|
603 | <br> |
---|
604 | anyone can help me, thanks for your reply</div> |
---|
605 | <!-- / message --> |
---|
606 | |
---|
607 | |
---|
608 | |
---|
609 | |
---|
610 | <hr style="color: rgb(238, 238, 238); padding-top: 3px;" size="1"> |
---|
611 | |
---|
612 | <!-- edit note --> |
---|
613 | <div class="smallfont"> <em> |
---|
614 | Last edited by bartonc : April 5th, 2007 at <span class="time">07:07 AM</span>. |
---|
615 | Reason: added [code][/code] tags |
---|
616 | </em> |
---|
617 | </div> |
---|
618 | <!-- / edit note --> |
---|
619 | |
---|
620 | |
---|
621 | <div class="post_buttons" align="right"> |
---|
622 | <!-- controls --> |
---|
623 | |
---|
624 | |
---|
625 | |
---|
626 | |
---|
627 | |
---|
628 | |
---|
629 | |
---|
630 | <a href="http://www.thescripts.com/forum/newreply.php?do=newreply&p=2486324">Reply</a> |
---|
631 | |
---|
632 | |
---|
633 | <!-- / controls --> |
---|
634 | </div> |
---|
635 | <!-- message, attachments, sig --> |
---|
636 | </div> |
---|
637 | </div> |
---|
638 | |
---|
639 | <!-- / post #2486324 --> |
---|
640 | |
---|
641 | <!-- post #2486345 --> |
---|
642 | |
---|
643 | <div id="post_box"> |
---|
644 | <div class="alt2 post_box_top"> |
---|
645 | <!-- user info --> |
---|
646 | <table border="0" cellpadding="3" cellspacing="0" width="100%"> |
---|
647 | <tbody><tr> |
---|
648 | <td valign="top" width="30"> |
---|
649 | |
---|
650 | |
---|
651 | <a href="http://www.thescripts.com/forum/member.php?u=38214"><img title="bartonc's Avatar" class="avtr" src="thread628262_files/avatar38214_3.gif" alt="bartonc's Avatar" border="0" height="30" width="30"></a> |
---|
652 | |
---|
653 | |
---|
654 | |
---|
655 | </td> |
---|
656 | <td id="post_box_clear" width="50%"> |
---|
657 | <div id="postmenu_2486345" class="post_auth"> |
---|
658 | |
---|
659 | <a href="http://www.thescripts.com/forum/member.php?u=38214">bartonc</a> |
---|
660 | <script type="text/javascript"> vbmenu_register("postmenu_2486345", true); </script> |
---|
661 | |
---|
662 | |
---|
663 | <div class="smallfont"><span style="color: rgb(32, 144, 0);">Moderator</span></div> |
---|
664 | <div class="smallfont"> |
---|
665 | 3,601 Posts |
---|
666 | </div> |
---|
667 | </div> |
---|
668 | </td> |
---|
669 | <td id="post_box_clear" class="post_auth" align="right" valign="bottom"> |
---|
670 | <div class="smallfont"> |
---|
671 | |
---|
672 | April 5th, 2007<br>07:19 AM |
---|
673 | <br> |
---|
674 | #<a href="http://www.thescripts.com/forum/post2486345-4.html" target="new" class="smallfont"><strong>4</strong></a> |
---|
675 | |
---|
676 | </div> |
---|
677 | </td> |
---|
678 | </tr> |
---|
679 | </tbody></table> |
---|
680 | <!-- / user info --> |
---|
681 | </div> |
---|
682 | <div class="alt1 post_box_bottom"> |
---|
683 | <!-- message, attachments, sig --> |
---|
684 | <!-- message --> |
---|
685 | <br> |
---|
686 | |
---|
687 | <strong>Re: How to monitor CPU and RAM usage using Python</strong> |
---|
688 | |
---|
689 | <hr style="color: rgb(238, 238, 238); padding-top: 3px;" size="1"> |
---|
690 | <div class="post_message"><!-- Quote --> |
---|
691 | <table width="500"><tbody><tr><td> |
---|
692 | <div style="margin: 5px;"> |
---|
693 | <div class="smallfont" style="margin-bottom: 2px;">Quote:</div> |
---|
694 | <div class="alt2 smallcode" style="border: 1px inset ; margin: 0px; padding: 6px; width: 500px;"> |
---|
695 | <div>Originally Posted by <strong>ghostdog74</strong></div> |
---|
696 | <div style="font-style: italic;">while i am not much into ctypes, there's another way, using WMI<br> |
---|
697 | check <a href="http://msdn.microsoft.com/library/e...i_reference.asp" rel="nofollow" target="_blank">MSDN</a> and <a href="http://tgolden.sc.sabren.com/python/wmi.html" rel="nofollow" target="_blank">here</a> for more.<br> |
---|
698 | <br> |
---|
699 | one example :<br> |
---|
700 | <!-- CODE --> |
---|
701 | <div class="smallfont" style="margin-bottom: 2px;">Code: ( text )</div> |
---|
702 | <div class="text" style="margin: 0px; padding: 2px; background: rgb(252, 252, 252) none repeat scroll 0%; color: rgb(34, 34, 34); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><ol><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;">>>> import wmi</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;">>>> wm = wmi.WMI()</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;">>>> for j in wm.Win32_PerfFormattedData_PerfOS_Memory(): print j</div></li></ol></div> |
---|
703 | <br> |
---|
704 | <br> |
---|
705 | another eg:<br> |
---|
706 | <!-- CODE --> |
---|
707 | <div class="smallfont" style="margin-bottom: 2px;">Code: ( text )</div> |
---|
708 | <div class="text" style="margin: 0px; padding: 2px; background: rgb(252, 252, 252) none repeat scroll 0%; color: rgb(34, 34, 34); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><ol><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;">>>> import wmi</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;">>>> wm = wmi.WMI ()</div></li><li style="background: rgb(252, 252, 252) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 8pt;"><div style="font-family: 'Courier New',Courier,monospace; font-weight: normal;">>>> for j in wm.Win32_Processor (): print j</div></li></ol></div></div> |
---|
709 | </div> |
---|
710 | </div> |
---|
711 | </td></tr></tbody></table><br> |
---|
712 | Great link GD! Would you consider doing an article or code post for one |
---|
713 | of the sub forums. This is something that I had not heard of. Thanks |
---|
714 | for the info.</div> |
---|
715 | <!-- / message --> |
---|
716 | |
---|
717 | |
---|
718 | |
---|
719 | |
---|
720 | <hr style="color: rgb(238, 238, 238); padding-top: 3px;" size="1"> |
---|
721 | |
---|
722 | |
---|
723 | <div class="post_buttons" align="right"> |
---|
724 | <!-- controls --> |
---|
725 | |
---|
726 | |
---|
727 | |
---|
728 | |
---|
729 | |
---|
730 | |
---|
731 | |
---|
732 | <a href="http://www.thescripts.com/forum/newreply.php?do=newreply&p=2486345">Reply</a> |
---|
733 | |
---|
734 | |
---|
735 | <!-- / controls --> |
---|
736 | </div> |
---|
737 | <!-- message, attachments, sig --> |
---|
738 | </div> |
---|
739 | </div> |
---|
740 | |
---|
741 | <!-- / post #2486345 --> |
---|
742 | |
---|
743 | |
---|
744 | |
---|
745 | |
---|
746 | <!-- start content table --> |
---|
747 | |
---|
748 | <!-- / start content table --> |
---|
749 | |
---|
750 | <!-- controls below postbits --> |
---|
751 | <table style="margin-bottom: 3px; margin-top: 5px;" border="0" cellpadding="0" cellspacing="0" width="100%"> |
---|
752 | <tbody><tr valign="bottom"> |
---|
753 | |
---|
754 | |
---|
755 | <td class="smallfont" align="right"><a href="http://www.thescripts.com/forum/newreply.php?do=newreply&noquote=1&p=2485887"><img title="Reply" src="thread628262_files/reply.gif" alt="Reply" border="0"></a></td> |
---|
756 | |
---|
757 | |
---|
758 | </tr> |
---|
759 | </tbody></table> |
---|
760 | <!-- / controls below postbits --> |
---|
761 | |
---|
762 | <br> |
---|
763 | |
---|
764 | |
---|
765 | <!-- Quick Reply --> |
---|
766 | |
---|
767 | <!-- Quick Reply End --> |
---|
768 | |
---|
769 | |
---|
770 | <!-- forum rules and admin links --> |
---|
771 | <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%"> |
---|
772 | <tbody><tr valign="bottom"> |
---|
773 | <td class="smallfont" align="right"> |
---|
774 | <table border="0" cellpadding="0" cellspacing="0"> |
---|
775 | |
---|
776 | <tbody><tr> |
---|
777 | <td> |
---|
778 | |
---|
779 | </td> |
---|
780 | </tr> |
---|
781 | </tbody></table> |
---|
782 | </td> |
---|
783 | </tr> |
---|
784 | </tbody></table> |
---|
785 | <!-- /forum rules and admin links --> |
---|
786 | |
---|
787 | |
---|
788 | <!-- /content area table --> |
---|
789 | |
---|
790 | |
---|
791 | |
---|
792 | <script type="text/javascript"> |
---|
793 | <!-- |
---|
794 | // Main vBulletin Javascript Initialization |
---|
795 | vBulletin_init(); |
---|
796 | |
---|
797 | // Initialize 'Active' Table Cells |
---|
798 | //activecells_init(); |
---|
799 | //--> |
---|
800 | </script> |
---|
801 | |
---|
802 | |
---|
803 | </td> |
---|
804 | </tr> |
---|
805 | </tbody></table></td> |
---|
806 | |
---|
807 | <td class="spacer" width="12"></td> |
---|
808 | |
---|
809 | |
---|
810 | <td height="1000" valign="top" width="300"> |
---|
811 | |
---|
812 | <!-- ACTIVE MEMBER BOX --> |
---|
813 | <div class="leftcol top_yellow spacer"></div> |
---|
814 | <div class="leftcol content_grad"> <div class="leftcol_title">TOP CONTRIBUTORS</div> |
---|
815 | |
---|
816 | <table><tbody><tr><td width="50%"> |
---|
817 | <div id="top_members"> |
---|
818 | <ul> |
---|
819 | <li><div><img src="thread628262_files/avatar29327_28.gif" height="30" width="30"></div><a href="http://www.thescripts.com/forum/member.php?u=29327">mmccarthy</a> <br>(7143 posts)</li> |
---|
820 | <li><div><img src="thread628262_files/avatar51203_5.gif" height="30" width="30"></div><a href="http://www.thescripts.com/forum/member.php?u=51203">NeoPa</a> <br>(5244 posts)</li> |
---|
821 | <li><div><img src="thread628262_files/noavatar.gif" height="30" width="30"></div><a href="http://www.thescripts.com/forum/member.php?u=40677">r035198x</a> <br>(4736 posts)</li> |
---|
822 | <li><div><img src="thread628262_files/avatar47723_6.gif" height="30" width="30"></div><a href="http://www.thescripts.com/forum/member.php?u=47723">Killer42</a> <br>(3710 posts)</li> |
---|
823 | <li><div><img src="thread628262_files/avatar38214_3.gif" height="30" width="30"></div><a href="http://www.thescripts.com/forum/member.php?u=38214">bartonc</a> <br>(3601 posts)</li> |
---|
824 | </ul> |
---|
825 | </div> |
---|
826 | </td> |
---|
827 | <td width="50%"> |
---|
828 | <div id="top_members"> |
---|
829 | <ul> |
---|
830 | <li><div><img src="thread628262_files/avatar2021_6.gif" height="30" width="30"></div><a href="http://www.thescripts.com/forum/member.php?u=2021">Banfa</a> <br>(3349 posts)</li> |
---|
831 | <li><div><img src="thread628262_files/avatar10289_14.gif" height="30" width="30"></div><a href="http://www.thescripts.com/forum/member.php?u=10289">ronverdonk</a> <br>(2460 posts)</li> |
---|
832 | <li><div><img src="thread628262_files/avatar62844_1.gif" height="30" width="30"></div><a href="http://www.thescripts.com/forum/member.php?u=62844">acoder</a> <br>(2312 posts)</li> |
---|
833 | <li><div><img src="thread628262_files/avatar52644_6.gif" height="30" width="30"></div><a href="http://www.thescripts.com/forum/member.php?u=52644">Ganon11</a> <br>(2077 posts)</li> |
---|
834 | <li><div><img src="thread628262_files/avatar78758_1.gif" height="30" width="30"></div><a href="http://www.thescripts.com/forum/member.php?u=78758">Rabbit</a> <br>(1889 posts)</li> |
---|
835 | </ul> |
---|
836 | </div> |
---|
837 | </td></tr></tbody></table> |
---|
838 | </div> |
---|
839 | <div class="leftcol bottom_white spacer"></div> |
---|
840 | |
---|
841 | <!-- footer submenu --> |
---|
842 | |
---|
843 | <!-- footer submenu --> |
---|
844 | |
---|
845 | <div style="padding-bottom: 15px;"> |
---|
846 | |
---|
847 | <!-- begin ad tag (programming/python) --> |
---|
848 | <script language="JavaScript" type="text/javascript"> |
---|
849 | document.write('<script language="JavaScript" src="http://ad.doubleclick.net/adj/ttm.thescripts/programming/python;cmy=programming;zn=python;sz=300x250;tile=2;ord=778852147?" type="text/javascript"></scr' + 'ipt>'); |
---|
850 | </script><script language="JavaScript" src="thread628262_files/python_002" type="text/javascript"></script> |
---|
851 | |
---|
852 | <!-- |
---|
853 | /* |
---|
854 | |
---|
855 | * The JavaScript returned from the following page uses |
---|
856 | * the parameter values assigned above to populate an array |
---|
857 | * of ad objects. Once that array has been populated, |
---|
858 | * the JavaScript will call the google_ad_request_done |
---|
859 | * function to display the ads. |
---|
860 | */ |
---|
861 | |
---|
862 | --> |
---|
863 | |
---|
864 | <script language="JavaScript" src="thread628262_files/show_ads.js"></script><script language="JavaScript1.1" src="thread628262_files/ads"></script><div id="rightads"><div class="gcolad"><a href="http://pagead2.googlesyndication.com/pagead/iclk?sa=l&ai=BA8ugFmJbRujYM47i4gLkssXJB4W9-heBl7XZAsCNtwGAph0QARgBIJi2iwIoBDgAUJ_ss8H4_____wFgyd6Oh8yjwBeYAbP1qBCgAaOS3foDqgEKMDUwNDg2NTk1MrIBEnd3dy50aGVzY3JpcHRzLmNvbboBCjMwMHgzNjBfanPIAQHaATFodHRwOi8vd3d3LnRoZXNjcmlwdHMuY29tL2ZvcnVtL3RocmVhZDYyODI2Mi5odG1sgAIBqQK1TfmmKxCvPqgDAegDrwLoAx_oA9sF6AMF9QMAAQAA&num=1&ggladgrp=321602077&gglcreat=637415557&adurl=http://xwires.com/split/%3Faid%3D5914%26s%3D385&client=ca-pub-3431100313772407" onmouseout="window.status=''" onmouseover="window.status='go to www.PCTuneUpTips.com/VirtualMemory'">Fix Low Virtual Memory<div class="desc">Expert Low Virtual Memory Tweaks To Banish Virtual Memory Errors</div><div class="lnk">www.PCTuneUpTips.com/VirtualMemory</div></a></div><div class="gcolad"><a href="http://pagead2.googlesyndication.com/pagead/iclk?sa=l&ai=BP-1xFmJbRujYM47i4gLkssXJB_zrtRj00I2yAsCNtwGg0RkQAhgCIJi2iwIoBDgAUI3Nq537_____wFgyd6Oh8yjwBeYAbP1qBCgAcD88foDqgEKMDUwNDg2NTk1MrIBEnd3dy50aGVzY3JpcHRzLmNvbboBCjMwMHgzNjBfanPIAQHaATFodHRwOi8vd3d3LnRoZXNjcmlwdHMuY29tL2ZvcnVtL3RocmVhZDYyODI2Mi5odG1sgAIBqQK1TfmmKxCvPqgDAegDrwLoAx_oA9sF6AMF9QMAAQAA&num=2&ggladgrp=298852780&gglcreat=551115340&adurl=http://www.faster-pc.net/process/%3Fid%3DU4AnImxEjwvys4nUL60QBPH9_vdvWqh4siorNhWbasA-sKUn3LsHFX8jUS-ZqWlW&client=ca-pub-3431100313772407" onmouseout="window.status=''" onmouseover="window.status='go to www.Faster-PC.net'">Fix Virtual Memory<div class="desc">Repair Virtual Memory in 2 mins. Free Download. 100% Guaranteed.</div><div class="lnk">www.Faster-PC.net</div></a></div><div class="gcolad"><a href="http://pagead2.googlesyndication.com/pagead/iclk?sa=l&ai=BD_hWFmJbRujYM47i4gLkssXJB4jfvxXo4OzYAsCNtwGgnVQQAxgDIJi2iwIoBDgAUMGqyO8FYMnejofMo8AXmAGz9agQoAG5p7T_A6oBCjA1MDQ4NjU5NTKyARJ3d3cudGhlc2NyaXB0cy5jb226AQozMDB4MzYwX2pzyAEB2gExaHR0cDovL3d3dy50aGVzY3JpcHRzLmNvbS9mb3J1bS90aHJlYWQ2MjgyNjIuaHRtbIACAagDAegDrwLoAx_oA9sF6AMF9QMAAQAA&num=3&adurl=http://manageengine.adventnet.com/products/opmanager/server-monitoring.html&client=ca-pub-3431100313772407" onmouseout="window.status=''" onmouseover="window.status='go to www.OpManager.com'">Free Server Monitor Tool<div class="desc">CPU, Memory, Disk Monitoring Manage Windows, Linux servers</div><div class="lnk">www.OpManager.com</div></a></div><div class="gcolad"><a href="http://pagead2.googlesyndication.com/pagead/iclk?sa=l&ai=B396FFmJbRujYM47i4gLkssXJB-WAhQmH3pyfAcCNtwHg6yUQBBgEIJi2iwIoBDgAULyN8P79_____wFgyd6Oh8yjwBeYAbP1qBCgAbPxsv8DqgEKMDUwNDg2NTk1MrIBEnd3dy50aGVzY3JpcHRzLmNvbboBCjMwMHgzNjBfanPIAQHaATFodHRwOi8vd3d3LnRoZXNjcmlwdHMuY29tL2ZvcnVtL3RocmVhZDYyODI2Mi5odG1sqQIi0eahv6PAPqgDAegDrwLoAx_oA9sF6AMF9QMAAQAA&num=4&adurl=http://www.appsense.com&client=ca-pub-3431100313772407" onmouseout="window.status=''" onmouseover="window.status='go to www.appsense.com'">CPU Thread Throttling<div class="desc">Missing link in real performance, proven to boost capacity by 94%</div><div class="lnk">www.appsense.com</div></a></div><div class="gcoladby"><a href="http://services.google.com/feedback/abg?url=http://www.thescripts.com/forum/thread628262.html&hl=en&client=ca-pub-3431100313772407&adU=www.PCTuneUpTips.com/VirtualMemory&adT=Fix+Low+Virtual+Memory&adU=www.Faster-PC.net&adT=Fix+Virtual+Memory&adU=www.OpManager.com&adT=Free+Server+Monitor+Tool&adU=www.appsense.com&adT=CPU+Thread+Throttling&done=1">Ads by Google</a></div></div><noscript> |
---|
865 | <a |
---|
866 | href="http://ad.doubleclick.net/jump/ttm.thescripts/programming/python;cmy=programming;zn=python;ord=778852147?" |
---|
867 | target="_blank"><img |
---|
868 | src="http://ad.doubleclick.net/ad/ttm.thescripts/programming/python;cmy=programming;zn=python;ord=778852147?" |
---|
869 | width="300" height="250" border="0" alt="sponsor content">sponsor |
---|
870 | content</a></noscript> |
---|
871 | <!-- End ad tag --> |
---|
872 | |
---|
873 | </div> |
---|
874 | |
---|
875 | |
---|
876 | </td> |
---|
877 | |
---|
878 | </tr> |
---|
879 | </tbody></table> |
---|
880 | <div class="adtable"> |
---|
881 | |
---|
882 | <!-- begin ad tag (programming/python) --> |
---|
883 | <script language="JavaScript" type="text/javascript"> |
---|
884 | document.write('<script language="JavaScript" src="http://ad.doubleclick.net/adj/ttm.thescripts/programming/python;cmy=programming;zn=python;sz=600x200;tile=3;ord=778852147?" type="text/javascript"></scr' + 'ipt>'); |
---|
885 | </script><script language="JavaScript" src="thread628262_files/python" type="text/javascript"></script> |
---|
886 | |
---|
887 | <!-- |
---|
888 | /* |
---|
889 | |
---|
890 | * The JavaScript returned from the following page uses |
---|
891 | * the parameter values assigned above to populate an array |
---|
892 | * of ad objects. Once that array has been populated, |
---|
893 | * the JavaScript will call the google_ad_request_done |
---|
894 | * function to display the ads. |
---|
895 | */ |
---|
896 | |
---|
897 | --> |
---|
898 | |
---|
899 | <script language="JavaScript" src="thread628262_files/show_ads.js"></script><script language="JavaScript1.1" src="thread628262_files/ads_003"></script><div id="footerads"><div class="gftrad"><a href="http://pagead2.googlesyndication.com/pagead/iclk?sa=l&ai=BrFmNF2JbRo2IGoH24QKi-73xBoW9-heBl7XZAsCNtwGAph0QARgBIJi2iwIoAzgAUJ_ss8H4_____wFgyd6Oh8yjwBeYAcvwqBCgAaOS3foDqgEKNDg1MjcyMTY1N7IBEnd3dy50aGVzY3JpcHRzLmNvbboBCTk1MHg5MF9qc8gBAdoBMWh0dHA6Ly93d3cudGhlc2NyaXB0cy5jb20vZm9ydW0vdGhyZWFkNjI4MjYyLmh0bWyAAgGpAiL6bDVvD68-qAMB6AOvAugDH-gD2wXoAwX1AwABAAA&num=1&ggladgrp=321602077&gglcreat=637415557&adurl=http://xwires.com/split/%3Faid%3D5914%26s%3D385&client=ca-pub-3431100313772407" onmouseout="window.status=''" onmouseover="window.status='go to www.PCTuneUpTips.com/VirtualMemory'">Fix Low Virtual Memory<div class="desc">Expert Low Virtual Memory Tweaks To Banish Virtual Memory Errors . . . www.PCTuneUpTips.com/VirtualMemory</div></a></div><div class="gftrad"><a href="http://pagead2.googlesyndication.com/pagead/iclk?sa=l&ai=BvpEKF2JbRo2IGoH24QKi-73xBvzrtRj00I2yAsCNtwGg0RkQAhgCIJi2iwIoAzgAUI3Nq537_____wFgyd6Oh8yjwBeYAcvwqBCgAcD88foDqgEKNDg1MjcyMTY1N7IBEnd3dy50aGVzY3JpcHRzLmNvbboBCTk1MHg5MF9qc8gBAdoBMWh0dHA6Ly93d3cudGhlc2NyaXB0cy5jb20vZm9ydW0vdGhyZWFkNjI4MjYyLmh0bWyAAgGpAiL6bDVvD68-qAMB6AOvAugDH-gD2wXoAwX1AwABAAA&num=2&ggladgrp=298852780&gglcreat=551115340&adurl=http://www.faster-pc.net/process/%3Fid%3DU4AnImxEjwvys4nUL60QBPH9_vdvWqh4siorNhWbasA-sKUn3LsHFX8jUS-ZqWlW&client=ca-pub-3431100313772407" onmouseout="window.status=''" onmouseover="window.status='go to www.Faster-PC.net'">Fix Virtual Memory<div class="desc">Repair Virtual Memory in 2 mins. Free Download. 100% Guaranteed. . . . www.Faster-PC.net</div></a></div><div class="gftrad"><a href="http://pagead2.googlesyndication.com/pagead/iclk?sa=l&ai=BDxGGF2JbRo2IGoH24QKi-73xBojfvxWkrvHXAsCNtwGgnVQQAxgDIJi2iwIoAzgAUMGqyO8FYMnejofMo8AXmAHL8KgQoAG5p7T_A6oBCjQ4NTI3MjE2NTeyARJ3d3cudGhlc2NyaXB0cy5jb226AQk5NTB4OTBfanPIAQHaATFodHRwOi8vd3d3LnRoZXNjcmlwdHMuY29tL2ZvcnVtL3RocmVhZDYyODI2Mi5odG1sgAIBqAMB6AOvAugDH-gD2wXoAwX1AwABAAA&num=3&adurl=http://manageengine.adventnet.com/products/opmanager/server-monitoring.html&client=ca-pub-3431100313772407" onmouseout="window.status=''" onmouseover="window.status='go to www.OpManager.com'">Server Monitoring Tool<div class="desc">Manage Windows, Linux servers Monitor CPU, Memory, Disk & More . . . www.OpManager.com</div></a></div><div class="gftradby"><a href="http://services.google.com/feedback/abg?url=http://www.thescripts.com/forum/thread628262.html&hl=en&client=ca-pub-3431100313772407&adU=www.PCTuneUpTips.com/VirtualMemory&adT=Fix+Low+Virtual+Memory&adU=www.Faster-PC.net&adT=Fix+Virtual+Memory&adU=www.OpManager.com&adT=Server+Monitoring+Tool&done=1">Ads by Google</a></div></div><noscript> |
---|
900 | <a |
---|
901 | href="http://ad.doubleclick.net/jump/ttm.thescripts/programming/python;cmy=programming;zn=python;ord=778852147?" |
---|
902 | target="_blank"><img |
---|
903 | src="http://ad.doubleclick.net/ad/ttm.thescripts/programming/python;cmy=programming;zn=python;ord=778852147?" |
---|
904 | width="600" height="200" border="0" alt="sponsor content">sponsor |
---|
905 | content</a></noscript> |
---|
906 | <!-- End ad tag --> |
---|
907 | |
---|
908 | </div> |
---|
909 | <table class="maintable footer"> |
---|
910 | <tbody><tr> |
---|
911 | <td> |
---|
912 | <div> |
---|
913 | |
---|
914 | <strong>Quick Browse:</strong><br> |
---|
915 | <a href="http://www.thescripts.com/forum/archive/index.php/f-65.html">Programming Help</a> | |
---|
916 | <a href="http://www.thescripts.com/forum/archive/index.php/f-125.html">System Admin</a> | |
---|
917 | <a href="http://www.thescripts.com/forum/archive/index.php/f-67.html">Database Help</a> | |
---|
918 | <a href="http://www.thescripts.com/forum/archive/index.php/f-66.html">Web Design</a> |
---|
919 | <br> |
---|
920 | <a href="http://www.thescripts.com/forum/archive/index.php/f-57.html">XML</a> / <a href="http://www.thescripts.com/forum/archive/index.php/f-64.html">CSS</a> | |
---|
921 | <a href="http://www.thescripts.com/forum/archive/index.php/f-62.html">HTML</a> | |
---|
922 | <a href="http://www.thescripts.com/forum/archive/index.php/f-63.html">Javascript</a> | |
---|
923 | <a href="http://www.thescripts.com/forum/archive/index.php/f-49.html">PHP</a> | |
---|
924 | <a href="http://www.thescripts.com/forum/archive/index.php/f-50.html">Perl</a> | |
---|
925 | <a href="http://www.thescripts.com/forum/archive/index.php/f-54.html">Visual Basic</a> | |
---|
926 | <a href="http://www.thescripts.com/forum/archive/index.php/f-53.html">Python</a> | |
---|
927 | <a href="http://www.thescripts.com/forum/archive/index.php/f-51.html">C++</a> / <a href="http://www.thescripts.com/forum/archive/index.php/f-122.html">C</a> | |
---|
928 | <a href="http://www.thescripts.com/forum/archive/index.php/f-52.html">Java</a> | |
---|
929 | <a href="http://www.thescripts.com/forum/archive/index.php/f-55.html">.NET</a> / |
---|
930 | <a href="http://www.thescripts.com/forum/archive/index.php/f-115.html">C#</a> / |
---|
931 | <a href="http://www.thescripts.com/forum/archive/index.php/f-117.html">VB</a> / |
---|
932 | <a href="http://www.thescripts.com/forum/archive/index.php/f-114.html">XML</a> / |
---|
933 | <a href="http://www.thescripts.com/forum/archive/index.php/f-116.html">ASP.net</a> | |
---|
934 | <a href="http://www.thescripts.com/forum/archive/index.php/f-56.html">ASP</a> |
---|
935 | <br> |
---|
936 | <a href="http://www.thescripts.com/forum/archive/index.php/f-59.html">PostgreSQL</a> | |
---|
937 | <a href="http://www.thescripts.com/forum/archive/index.php/f-61.html">MS SQL</a> | |
---|
938 | <a href="http://www.thescripts.com/forum/archive/index.php/f-60.html">Oracle</a> | |
---|
939 | <a href="http://www.thescripts.com/forum/archive/index.php/f-120.html">IBM DB2</a> | |
---|
940 | <a href="http://www.thescripts.com/forum/archive/index.php/f-121.html">MS Access</a> | |
---|
941 | <a href="http://www.thescripts.com/forum/archive/index.php/f-58.html">MySQL</a> |
---|
942 | </div> |
---|
943 | <br> |
---|
944 | <a href="http://www.thescripts.com/mediakit.html">Advertise</a> | |
---|
945 | <a href="http://www.thescripts.com/forum/sendmessage.php">Contact Us</a> | |
---|
946 | |
---|
947 | |
---|
948 | <a href="http://www.thescripts.com/forum/archive/index.php">Archive</a> | |
---|
949 | <a href="http://www.thescripts.com/sitemap.html">Sitemap</a> | <a href="http://www.thescripts.com/privacy.html">Privacy Policy</a> | <a href="http://www.thescripts.com/terms.html">Terms of Use</a> |
---|
950 | <br> |
---|
951 | Copyright 1995-2005 MINDSEED INC. All rights Reserved <br> |
---|
952 | |
---|
953 | <!-- Do not remove or your scheduled tasks will cease to function --> |
---|
954 | |
---|
955 | <!-- Do not remove or your scheduled tasks will cease to function --> |
---|
956 | </td> |
---|
957 | </tr> |
---|
958 | </tbody></table> |
---|
959 | |
---|
960 | </body></html> |
---|