layer 2 Posted January 3, 2005 (edited) just made a little memory logger to see how your memory is: unhealthy or healthy... it checks every 15 minutes... it is very simple script but who cares... While 1 $getmem= MemGetStats () Sleep (60*15*1000) FileWriteLine ("MemUsageLog.txt", "") FileWriteLine ("MemUsageLog.txt", "Date= " & @MON & "/" & @MDAY & "/" & @YEAR & " -- " & "Time= " & @Hour & ":" & @Min & ":" & @Sec & ": " & "Memory percentage being used: " & $getmem[0] & "%") FileWriteLine ("MemUsageLog.txt", "") FileWriteLine ("MemUsageLog.txt", "Date= " & @MON & "/" & @MDAY & "/" & @YEAR & " -- " & "Time= " & @Hour & ":" & @Min & ":" & @Sec & ": " & "Total amount of RAM: " & $getmem[1] & " Kilobytes") FileWriteLine ("MemUsageLog.txt", "") FileWriteLine ("MemUsageLog.txt", "Date= " & @MON & "/" & @MDAY & "/" & @YEAR & " -- " & "Time= " & @Hour & ":" & @Min & ":" & @Sec & ": " & "Unused RAM: " & $getmem[2] & " Kilobytes") FileWriteLine ("MemUsageLog.txt", "") FileWriteLine ("MemUsageLog.txt", "Date= " & @MON & "/" & @MDAY & "/" & @YEAR & " -- " & "Time= " & @Hour & ":" & @Min & ":" & @Sec & ": " & "Total amount of PageFile: " & $getmem[3] & " Kilobytes") FileWriteLine ("MemUsageLog.txt", "") FileWriteLine ("MemUsageLog.txt", "Date= " & @MON & "/" & @MDAY & "/" & @YEAR & " -- " & "Time= " & @Hour & ":" & @Min & ":" & @Sec & ": " & "Unused PageFile: " & $getmem[4] & " Kilobytes") FileWriteLine ("MemUsageLog.txt", "") FileWriteLine ("MemUsageLog.txt", "Date= " & @MON & "/" & @MDAY & "/" & @YEAR & " -- " & "Time= " & @Hour & ":" & @Min & ":" & @Sec & ": " & "Total amount of Virtual Memory: " & $getmem[5] & " Kilobytes") FileWriteLine ("MemUsageLog.txt", "") FileWriteLine ("MemUsageLog.txt", "Date= " & @MON & "/" & @MDAY & "/" & @YEAR & " -- " & "Time= " & @Hour & ":" & @Min & ":" & @Sec & ": " & "Unused virtual memory: " & $getmem[6] & " Kilobytes") FileWriteLine ("MemUsageLog.txt", "") FileWriteLine ("MemUsageLog.txt", "") FileWriteLine ("MemUsageLog.txt", "") FileWriteLine ("MemUsageLog.txt", "") FileWriteLine ("MemUsageLog.txt", "") WEnd enjoy EDIT: fixed the sleep to 15 minutes EDIT: added some more line breaks in log so you can see when 15 minutes passed... Edited January 3, 2005 by layer FootbaG Share this post Link to post Share on other sites
Valik 478 Posted January 3, 2005 15000 = 15 seconds. 15 minutes = 60*15*1000. Share this post Link to post Share on other sites
layer 2 Posted January 3, 2005 thanks Valik FootbaG Share this post Link to post Share on other sites
DirtyBanditos 0 Posted January 3, 2005 thanks Valik <{POST_SNAPBACK}> H layer great script thx to share it Share this post Link to post Share on other sites
Insolence 2 Posted January 3, 2005 FileWriteLine ("MemUsageLog.txt", "") FileWriteLine ("MemUsageLog.txt", "") FileWriteLine ("MemUsageLog.txt", "") FileWriteLine ("MemUsageLog.txt", "") FileWriteLine ("MemUsageLog.txt", "") What's that about? Do you want 5 blank lines? FileWriteLine ("MemUsageLog.txt", @LF & @LF & @LF & @LF & @LF) "I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar. Share this post Link to post Share on other sites
layer 2 Posted January 3, 2005 thats what you see right, because @LF doesnt work... it returns little rectangles... FootbaG Share this post Link to post Share on other sites
Valik 478 Posted January 3, 2005 So use @CRLF instead. Share this post Link to post Share on other sites