|
I have written a program that uses the following API's: QtocLstNetCnn, QUSCRTUS, QUSDLTUS, QUSPTRUS, inet_addr, inet_ntoa the code can be found here http://home.columbus.rr.com/jbmmdietz/iseries.html Look for the NSTAT utility.
How/what do I look for in my program to see if there is a memory leak, and where it is coming from. I am assuming that I have coded one the API's wrong, could that cause it? If you look at the code please be nice, I am not a programmer by trade, I program for my own education.
I am not sure if I should use the PEX tools or some other means.
What I am seeing is the following: Before:
System ASP . . . . . . . : 12.58 G % system ASP used . . . : 49.6778 Total aux stg . . . . . : 14.55 G Current unprotect used . : 699 M Maximum unprotect . . . : 709 M
After 5000 runs of the program (I deleted the spool file after each iteration):
System ASP . . . . . . . : 12.58 G % system ASP used . . . : 53.2132 Total aux stg . . . . . : 14.55 G Current unprotect used . : 1134 M Maximum unprotect . . . : 1135 M
This was the only job doing anything on the system.
The jobs Temp storage went from 1 to 4 meg.
------------------------- Bryan Dietz 3X Corporation 614-410-9205
_______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.