Can I add a jvm.opts property to the top level pom, like the one in GeoTools? This will allow local command line tweaking such as configuring 64-bit builds to run unit tests with options like:
-XX:+UseCompressedOops -XX:+TieredCompilation
--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineering Team Leader
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre
On Wed, Jun 22, 2011 at 7:34 AM, Ben Caradoc-Davies Ben.Caradoc-Davies@anonymised.com wrote:
Can I add a jvm.opts property to the top level pom, like the one in
GeoTools? This will allow local command line tweaking such as
configuring 64-bit builds to run unit tests with options like:
-XX:+UseCompressedOops -XX:+TieredCompilation
Will the first option just be ignored on a non 64bit vm, or will it result in a failure
to start it up?
As far as I can see the GeoTools build only has -X params, which are standardized:
-Xmx${test.maxHeapSize} ${jvm.opts} -Dorg.geotools.test.extensive=${extensive.tests} -Dorg.geotools.test.interactive=${interactive.tests} -Dorg.geotools.image.test.interactive=${interactive.image} -Djava.awt.headless=${java.awt.headless} -Djava.io.tmpdir=${java.io.tmpdir}
Cheers
Andrea
–
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
On 22/06/11 16:09, Andrea Aime wrote:
Will the first option just be ignored on a non 64bit vm, or will it result in a failure
to start it up?
Any unrecognised option causes JVM startup failure, hence wanting to not put these options in the pom.
$ java -XX:-DoesNotExist -version
Unrecognized VM option '-DoesNotExist'
Could not create the Java virtual machine.
As far as I can see the GeoTools build only has -X params, which are standardized:
Adding jvm.opts in the pom and then -Djvm.opts at the maven command line allow users to add options appropriate to their JVM.
I noticed that tiered compilation makes builds faster. (And needs more permgen.)
--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineering Team Leader
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre
On Wed, Jun 22, 2011 at 7:34 AM, Ben Caradoc-Davies Ben.Caradoc-Davies@anonymised.com wrote:
Can I add a jvm.opts property to the top level pom, like the one in
GeoTools? This will allow local command line tweaking such as
configuring 64-bit builds to run unit tests with options like:
-XX:+UseCompressedOops -XX:+TieredCompilation
Sorry, misread your mail. Yeah, adding a property is not an issue
/me goes get another coffee
Cheers
Andrea
–
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
On 22/06/11 16:17, Ben Caradoc-Davies wrote:
I noticed that tiered compilation makes builds faster. (And needs more
permgen.)
But 64-bit is still slower than 32-bit. :-/
--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineering Team Leader
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre