gooker Posted April 16, 2009 Posted April 16, 2009 the last number is my func's Virtual Memory == (324236K),now up to 400MB i use "empty.exe" to reduce memory, one tool of MS RunWait(@ComSpec & " /c " & "empty.exe" & Chr(32) & $Pid, "", @SW_HIDE) my function is to monitor a webpage and click some button (about 1-3 click every secound), for about 30 minutes, it's Virtual Memory up to 300MB, at last my computer show a warning of less Virtual Memory. do you have any function to reduce "Virtual Memory"?
rajeshontheweb Posted April 16, 2009 Posted April 16, 2009 it says it empties working set. u can check wOuters _ReduceMemory function which empties workingset. Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet
PsaltyDS Posted April 16, 2009 Posted April 16, 2009 the last number is my func's Virtual Memory == (324236K),now up to 400MB i use "empty.exe" to reduce memory, one tool of MS RunWait(@ComSpec & " /c " & "empty.exe" & Chr(32) & $Pid, "", @SW_HIDE) my function is to monitor a webpage and click some button (about 1-3 click every secound), for about 30 minutes, it's Virtual Memory up to 300MB, at last my computer show a warning of less Virtual Memory. do you have any function to reduce "Virtual Memory"? You might also want to determine where the memory leak is coming from in the first place. Fixing your script rather than just working around the flaw would be better. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
rajeshontheweb Posted April 18, 2009 Posted April 18, 2009 btw, i'm also looking for way to sort of check if i can reduce virtual memory in anyway other than deleting the pagefile! Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet
rajeshontheweb Posted April 21, 2009 Posted April 21, 2009 (edited) hey there, just stumbled on one part of what we are looking for :1) Detect virtual memory status - GlobalMemoryStatus - WinAPI Function.. <edit> working on threads i found here (the basic first step for noob!2) try to sort out the issue ! Yahoooooo (sorry Goooogle) - Found the right direction Managing Virtual memory with API Function Calls - of course this topic is way beyond my current knowledge of api calls - i am an absolute beginner with api calls, Need the experts out there to sort out the WinAPI call for us to find out next how to sort out low virtual memory... Edited April 21, 2009 by rajeshontheweb Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet
jvanegmond Posted April 21, 2009 Posted April 21, 2009 You're probably constantly creating new IE windows and forget to close the old one. github.com/jvanegmond
rajeshontheweb Posted April 21, 2009 Posted April 21, 2009 (edited) hmm, not my case, though. i always use IE (of course, as the last option) - Got a page that detects IE engine, i employ IETab in Firefox, coz firefox is my favourite (if chrome had native pluginsupport i wud 've gone for it.) enough of off topic explanations , my situation is a couple of users i have in my office / home neighbourhood, they have autocad and similar applicaitons which really EAT UP UR RAM AND PAGE FILE BOTH TOGETHER so at that time i need to use FreeRAM XP Pro or smilar apps and wait some time for processes to respond :-( Phase 1 :<this does work !!> $SIZE_T = "int" $struct = DLLStructCreate("dword;dword;"&$SIZE_T&";"&$SIZE_T&";"&$SIZE_T&";"&$SIZE_T&";"&$SIZE_T&";"&$SIZE_T) DLLCall("Kernel32.dll", "none", "GlobalMemoryStatus", "ptr", DllStructGetPtr($struct)) $MemoryLoad = DllStructGetData($struct, 2) $TotalPhys = DllStructGetData($struct, 3) $AvaliablePhys = DllStructGetData($struct, 4) ConsoleWrite($MemoryLoad & @LF) ConsoleWrite($TotalPhys & @LF) ConsoleWrite($AvaliablePhys & @LF) Edited April 21, 2009 by rajeshontheweb Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet
jvanegmond Posted April 21, 2009 Posted April 21, 2009 There's a reason those big programs take a lot of RAM. Freeing it for no reason at all is just stupid. github.com/jvanegmond
rajeshontheweb Posted April 21, 2009 Posted April 21, 2009 sorry this might seem to be dragging it too long, but as far as i understand AutoCAD , as i have seen it, keeps a lot of stuff in your RAM and hence any memory freeing operation after working for a while does help a lot because it removes a lot of unused information from cache, which doesnt harm a user if cad had to bring it up from disk to cache again. this is just a primitive understanding which has worked for me. i am not very sure about the concept of freeing virtual memory but 100% sure, i am gonna get an application scripted for monitoring low virtual memory and freeing up empty working set to benefit the user. because with 512 ram and CAD eating up 80% of it does let the user see an alert saying windows virtual memory is too low and windows is trying to free up somememory space to prevent.blablabla this happens , its not just assumption i am talking about here. sorry if this is harsh. Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now