RE: Barracuda: BTemplate Question (related to memory leak)
Vas Skrypnyk <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <20996239.1039588053584.JavaMail.root@babel> |
Attached is the Sizeof code. Just do Sizeof.main(null) when you want the heap size printed out. Hope it helps. --Bill. Original Message: ----------------------------------------- >> dumps right after. It's not very sophisticated but it did the >> job. If you are interested I can post it here. > >please do! > >---------------------------------------------- >Christian Cryder [christianc@atmreports. >com] >Internet Architect, ATMReports.com >Barracuda - http://barracuda.enhydra.org >---------------------------------------------- >"Coffee? I could quit anytime, just not today" > > >> -----Original >Message----- >> From: [email protected] [mailto:[email protected]]On >> Behalf Of Vas Skrypnyk >> Sent: Tuesday, December 10, 2002 9:52 PM >> To: [email protected] >> Subject: >Re: Barracuda: BTemplate Question (related to memory leak) >> >> >> Sorry, Christian, I haven't used BlockIterateHandler. >> >> What helped me find the leak in my code was a little Sizeof class > >> that figures out the java heap size at a given point in time. I >> wrapped the suspect code in a loop to simulate usage and did heap >> dumps right after. It's not very sophisticated but it did the > >> job. If you are interested I can post it here. >> >> --Bill. >> >> >> Original Message: >> ----------------------------------------- >> >> >Hey folks...I'm working on the memory leak issue. I'm >just >> wondering if any >> >of you who have experienced this problem are using the >> BlockIterateHandler. >> >Bill? Anyone else? If anyone else is using this >> >class, please let me know... >> > > >> >Christian >> > >> >(fyi - just in case you're wondering what this class is for, >> >BlockIterateHandler is designed to render very large DOMs - like >> multipaged >> >reports - in pieces, >> >rather >than all at once in memory, thereby keeping the >> >memory footprint much smaller) >> >---------------------------------------------- >> >Christian Cryder [[email protected]] >> >Internet Architect, > >> >ATMReports.com >> >Barracuda - http://barracuda.enhydra.org >> >---------------------------------------------- >> >"Coffee? I could quit anytime, just not today" >> > >> >_______________________________________________ > >> > >> >Barracuda mailing list >> >[email protected] >> >http://www.enhydra.org/mailman/listinfo.cgi/barracuda >> >FAQ - http://www.jguru.com/faq/Barracuda >> > >> _______________________________________________ > >> Barracuda mailing list >> [email protected] >> http://www.enhydra.org/mailman/listinfo.cgi/barracuda >> FAQ - http://www.jguru.com/faq/Barracuda >_______________________________________________ > >Barracuda mailing list >[email protected] >http://www.enhydra.org/mailman/listinfo.cgi/barracuda >FAQ - http://www.jguru.com/faq/Barracuda >
Sizeof.java
(application/octet-stream, 1 KB) - not displayed