Hi, i'm using ant in my production system. Ant is a core part of the system and its codebase is svn synchronized on every full rebuild (so is more or less up to date).
While profiling my application and i've found out some somewhat surprising results (jdk 1.5.0-b09 32/64 bit, but the same with 1.6.0-rc). The application is more bound on cpu than i/o and executes in parallel, various tasks, including generating and manipulating xml files via saxon. I hope someone help me explain the results i've found. More precisely: cerberus [01:19pm] (0.20) /metatype/work/metatype> ant --noconfig -version Apache Ant version 1.7.0Beta3 compiled on November 4 2006 1) JDK 1.5 - server vm, 32 bit cerberus [01:00pm] (0.36) /metatype/work/metatype> java -version java version "1.5.0_09" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03) Java HotSpot(TM) Server VM (build 1.5.0_09-b03, mixed mode) cerberus [01:00pm] (0.33) /metatype/work/metatype> time ./export &>/dev/null real 0m13.284s user 0m37.072s sys 0m1.373s Memory consumption sometimes goes up to 1 gb and i see 3 processors actually working at full speed on multithreaded tasks. 2) jdk 1.5 - client vm, 32 bit cerberus [01:07pm] (0.08) /metatype/work/metatype> java -version java version "1.5.0_09" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03) Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode, sharing) cerberus [01:09pm] (0.31) /metatype/work/metatype> time ./export &>/dev/null real 0m12.161s user 0m8.506s sys 0m4.444s Memory consumption is near 80 Mb and i see only 1 cpu crunching on tasks (as you can see from the time output). The same is true for latest 1.6 jdk. This behavior is confirmed using another benchmark with ant 1.6.2 (in both cpu usage and timings): http://www.jole.fi/JavaPerformanceTest/ Few system specs: Dual intel 5130 centos 4.4 x86_64 - 2.6.9-42.0.3.ELsmp Thanks in advance for any hint, -m --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
