Saturday, November 14, 2009

Back to cricket ground


Played a cricket match after three years today. We defeated Hitachi by six wickets in a local IT cup played at Khadki Cantt ground. I took to the ground like duck takes to water :D and affected one run-out, one caught behind and quite a few close stumping calls. The affect of keeping behind the stumps for 25 overs will be known only by night... need to stock ample Paracetamol at home .

Friday, November 06, 2009

Eclipse, Ant and java.lang.OutOfMemoryError

Launching Ant builds from Eclipse sometimes gives following error

[javac] Compiling 941 source files to C:\xxx
[javac] The system is out of resources.
[javac] Consult the following stack trace for details.
[javac] java.lang.OutOfMemoryError: Java heap space
...

After a bit of Google and experimentation, this is what works for me. Basically changed the JRE settings to use a bigger chunk of memory (Go to Window ->Preferences ->Installed JREs -> Default JRE -> Edit) for heap and stack like

-Xms256m -Xmx512m -Xss1m -XX:MaxPermSize=128m