|
From: Reuben G. <reu...@ay...> - 2005-08-04 01:44:27
|
Garbage collection happens automatically. The only time you really want to call the garbage collector yourself is if you just freed up an enormous amount of space and then need to allocate more space afterwards: int[] numbers = new int[ 10e20]; . . . numbers = null; System.gc(); doube[] moreNumbers = new double[10e20]; Otherwise, things should be fine. Is there a place, Max, perhaps where you are making a a new data structure where a new can be used? Why would the memory requirements go up after each time step? -Reuben -- Reuben Grinberg reu...@ay... (609)233-9891 "And wow! Hey! What's this thing coming towards me very fast? Very very fast. So big and flat and round, it needs a big wide sounding word like... ow... ound... round... ground! That's it! That's a good name - ground! I wonder if it will be friends with me?" -The Hitchiker's Guide to the Galaxy On Aug 3, 2005, at 8:45 PM, max...@ya... wrote: > Agreed. After a certain point, there is just nothing more to see in > these simmulations. That being said, do you think that garbage > collecting every, say 500 steps, would help for future simulations? > > -Max > > Quoting Reuben Grinberg <reu...@ay...>: > > >> Hey Peter, >> >> I'm thinking that it is just a matter of capping the run time. >> >> -Reuben >> -- >> Reuben Grinberg >> reu...@ay... >> (609)233-9891 >> >> "Arthur blinked at the screens and felt he was missing something >> >> important. Suddenly he realized what it was. >> 'Is there any tea on this spaceship?' he asked." >> >> He had found a Nutri-Matic machine which had provided him with a >> >> plastic cup filled with a liquid that was almost, but not quite, >> entirely unlike tea. >> -- The Hitchiker's Guide to the Galaxy >> >> >> On Aug 3, 2005, at 6:10 PM, pc...@MI... wrote: >> >> >>> Hey, >>> >>> Do any of you have any ideas as to why this is happening? Is it >>> >> >> >>> just because >>> the simulation was left running for so long that it got too big and >>> >> >> >>> took over >>> all the memory? Is this just a matter of putting a cap on how long >>> >> >> >>> the >>> tutorials can run? Do some tutorials grow in size much more >>> rapidly than >>> others? >>> >>> When I mentioned on Sunday that the Society window was getting >>> relocated all the >>> time, it actually isn't, it is only relocated and reset in size for >>> >> >> >>> a call to >>> play. >>> >>> I'll see if I can recreate the same problem. >>> >>> -Peter >>> >>> Quoting "Marshall W. Van Alstyne" <mar...@MI...>: >>> >>> >>> >>>> Hey guys, I was running tutorials for Cisco today when I >>>> inadvertently left some running during the call. My machine >>>> ground to a total halt. It didn't hang in the usual sense but it >>>> >> >> >>>> started paging like crazy, ran the disk constantly, and accepted >>>> >> >> >>>> almost no input from the keyboard. It got unbelievably slow. I'm >>>> >> >> >>>> using the version on my machine loaded from last Fri. >>>> >>>> Can you pls check it for runtime memory consumption, disk usage, >>>> >> >> >>>> or other faults that could lead to this behavior? >>>> >>>> Cisco didn't seem to have experienced this behavior yet but I'd >>>> >> >> >>>> like to head it off before they do, if possible. Otherwise, the >>>> >> >> >>>> breadth and quality of the demos went quite well. They should get >>>> >> >> >>>> us feedback soon. >>>> >>>> MVA >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>> ------------------------------------------------------- >>> SF.Net email is Sponsored by the Better Software Conference & >>> >> EXPO >> >>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle >>> >> >> >>> Practices >>> Agile & Plan-Driven Development * Managing Projects & Teams * >>> Testing & QA >>> Security * Process Improvement & Measurement * http://www.sqe.com/ >>> >> >> >>> bsce5sf >>> _______________________________________________ >>> Indigosim-developer mailing list >>> Ind...@li... >>> https://lists.sourceforge.net/lists/listinfo/indigosim-developer >>> >>> >> >> >> >> ------------------------------------------------------- >> SF.Net email is Sponsored by the Better Software Conference & EXPO >> September 19-22, 2005 * San Francisco, CA * Development Lifecycle >> Practices >> Agile & Plan-Driven Development * Managing Projects & Teams * Testing >> & QA >> Security * Process Improvement & Measurement * >> http://www.sqe.com/bsce5sf >> _______________________________________________ >> Indigosim-developer mailing list >> Ind...@li... >> https://lists.sourceforge.net/lists/listinfo/indigosim-developer >> >> > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/ > bsce5sf > _______________________________________________ > Indigosim-developer mailing list > Ind...@li... > https://lists.sourceforge.net/lists/listinfo/indigosim-developer > |