views:

196

answers:

1

I have a python script that can approach the 2 GB process limit under Windows XP. On a machine with 2 GB physical memory, that can pretty much lock up the machine, even if the Python script is running at below normal priority.

Is there a way in Python to find out my own process size?

Thanks, Gerry

+2  A: 

try:

import win32process
print win32process.GetProcessMemoryInfo(win32process.GetCurrentProcess())
Igal Serban