Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find which script causes memory leaks

Status
Not open for further replies.

dompaq

Programmer
Dec 2, 2002
2
CA
Hi everybody, I am having a problem with a script, it seems to be a memory leak or something. When I look in task manager, I see that perl.exe is taking 1,7G of memory. My problem is that I dont know which script perl.exe is executing. I was wondering if there was a way for me to find out which script perl.exe is executing so that I can debug the script.
Thanks in advance
Dominic
 
One possible solution would be to create a bat file called perl.bat which records the time and any arguments to a log file. It can then call perl.exe, passing the arguments along to it. Put the bat file in a location in the path where it will be found before perl.exe.

This isn't foolproof but it might help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top