|
From: Krause K. <Kar...@wi...> - 2006-04-18 17:09:38
|
Hi, I just like to ask why definig vm parameter is such complicated. I mean having that numbered properties wrapper.java.additional.<n> where no number may miss. I would like to dynamically put different files together and do only = know at runtime the sequence of those files. I implemented a start script for JBoss where you can specify by means of = different options that you want to enable garbage collection logging and/or remote debugging for remote debugging I include a file debug.properties (that looks like = this) wrapper.java.additional.1=3D-Xdebug wrapper.java.additional.2=3D-Xrunjdwp:transport=3Ddt_socket,server=3Dy,su= spend=3D%EPLATFORM_SUSPEND_FLAG%,address=3D%EPLATFORM_DEBUG_PORT% wrapper.java.additional.3=3D-Djava.compiler=3DNONE for garbage collection logging I include a file gc.properties (that = looks like this) wrapper.java.additional.4=3D-XX:+PrintGCTimeStamps wrapper.java.additional.5=3D-verbose:gc wrapper.java.additional.6=3D-Xloggc:%RUNTIME_VAR_DIR%/log/gc.log As it should be also possible to have just garbage collection (without = remote debugging) I need another file that looks like this wrapper.java.additional.1=3D wrapper.java.additional.2=3D wrapper.java.additional.3=3D wrapper.java.additional.4=3D-XX:+PrintGCTimeStamps wrapper.java.additional.5=3D-verbose:gc wrapper.java.additional.6=3D-Xloggc:%RUNTIME_VAR_DIR%/log/gc.log This is only for the sake of this example (in real life I have not only = to enable remote debugging and garbage collection logging, but also a profiler and a performance monitor, you can imagine that it = becomes quite nasty to combine all those files). Or is there another possibility to do this more dynamically. Why do we need those numbers. Would it not be easier to have those = wrapper.java.additional parameters without any numbering at all and just reading what comes first and then set it. Regards Karin |