+ Reply to Thread
Results 1 to 3 of 3

Need VBA to find out memory and virtual memory used by thread

  1. #1
    Registered User
    Join Date
    07-06-2011
    Location
    World
    MS-Off Ver
    Excel 2003
    Posts
    2

    Need VBA to find out memory and virtual memory used by thread

    How to do that?
    Pid is known, script needs to evaluate the amount of memory used by the process and decide if to terminate it or not based on the value. Pls help.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Need VBA to find out memory and virtual memory used by thread

    Hello Yozhik,

    I don't know exactly what information you need about the process and memory usage. This should be a good starting point. This macro will list all the processes on the local computer with the process name, processor time, process ID, working set set size, page file usage, and page faults.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    07-06-2011
    Location
    World
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Need VBA to find out memory and virtual memory used by thread

    That's exactly what I was looking for, and even above! So some other questions were also answered.
    Leith, thank you very much.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1