[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /feed.php on line 173: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /feed.php on line 174: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
AI Challenge Forums Falls 2011, sponsored by Google 2011-12-15T23:04:58+00:00 http://forums.aichallenge.org/feed.php?f=25&t=1763 2011-12-15T23:04:58+00:00 2011-12-15T23:04:58+00:00 http://forums.aichallenge.org/viewtopic.php?t=1763&p=13107#p13107 <![CDATA[Re: Java garbage collection settings]]>
It is poorly written and can allocate in one turn 300MB (and yes, I'm using default starter). Timeouts are very rarely and randomly. I tried even doing full GC every turn, but it doesn't help.

In comparison to C++, in Java you can't control GC and even some conditions to stop working when time is remaining will not help.

Statistics: Posted by djstrong — Thu Dec 15, 2011 11:04 pm


]]>
2011-12-14T10:06:34+00:00 2011-12-14T10:06:34+00:00 http://forums.aichallenge.org/viewtopic.php?t=1763&p=13029#p13029 <![CDATA[Re: Java garbage collection settings]]>
And remember that even people using C++ can have problems when allocating a big number of new objects every turn (it can take some time). And people with other tools/languages also have problems.

BTW: if you are using the starter package you should change a few things (ie. a parser creates many unneeded objects).

P.S. I have read your entry again, and I gree with you that it may be beneficial for us if we can at least set the distribution of memory pools.

Statistics: Posted by katebus — Wed Dec 14, 2011 10:06 am


]]>
2011-12-11T16:32:52+00:00 2011-12-11T16:32:52+00:00 http://forums.aichallenge.org/viewtopic.php?t=1763&p=12844#p12844 <![CDATA[Re: Java garbage collection settings]]> Statistics: Posted by djstrong — Sun Dec 11, 2011 4:32 pm


]]>
2011-11-03T23:20:01+00:00 2011-11-03T23:20:01+00:00 http://forums.aichallenge.org/viewtopic.php?t=1763&p=10685#p10685 <![CDATA[Java garbage collection settings]]>
BUT, during the turn, while the data is stil relevant, a minor collection can occur, which could result in the data being placed in the tenured gen. And, well, if that's the case, on the next turn, the app can easily run out of free memory, start full GC and time out. It still holds true for the CMS collector, as it may not have enough time to free enough memory in the tenured gen (since the new data is generated faster that the old data is collected).

So, it would be really great if the java contestants were allowed to specify SOME (not all, obviously) options to the garbage collector, especially the distribution of memory among memory pools. In my case, the issue is easily solved by reducing the size for the tenured gen in favor of the eden space and the survivor space.

Another option is to clear all the references to the old data at the end of the turn, explicitly call System.gc() and, hoping that it would help, wait until either the memory seems to be freed or the turn is about to end, and only then send the 'go' line.

Anyways, the situation is more sad than amusing, as this is a great example of the .

Statistics: Posted by gvsmirnov — Thu Nov 03, 2011 11:20 pm


]]>