[Pogamut-list] Bots standing around doing nothing

jakub.gemrot pogamut-forum at diana.ms.mff.cuni.cz
Mon Nov 22 08:04:57 CET 2010


Re: Bots standing around doing nothing

Author: jakub.gemrot

Hi!

1)

You might want to try/catch bot.stop() and on exception call bot.kill() anyway ... the behavior of the stop is that it won't kill() the agent on its own if some exception happens during stopping (probably weird behavior... I'm not sure about that.)

2) 

No other clue though :-( 

-----------------------

Things you might try to check:

a) whenever bots start taking turns, check whether there are more than one ucc.exe process running in your OS

b) how much CPU power is used by the ucc.exe when the problem occurs? does it consumes whole cpu-core? (ut2004 is single-threaded)

c.i) what about JVM - does it have enough heap? You might want to profile your JVM (NetBeans profiles should suffice) to check whether JVM heap has not been totally consumed (in such case, the gc() would take the most of JVM CPU time resulting in bad performance of any code you have) 

c.ii) or just try to give JVM more heap straight away and check whether it won't give you more time before bots start to lag
http://javahowto.blogspot.com/2006/06/6-common-errors-in-setting-java-heap.html

Best,
Jimmy

-- 
Reply Link: <http://diana.ms.mff.cuni.cz/main/tiki-view_forum_thread.php?forumId=4&comments_reply_threadId=4&comments_parentId=404&post_reply=1#form>





More information about the Pogamut-list mailing list