Hello Mojarra Devs,
For the amount of value there is to be found by going through old mail,
I'm ashamed that I don't do it more frequently.
This old chestnut:
>>>>> On Wed, 3 Aug 2011 13:48:40 +1000, "Koper, Dies" said:
DK> GF 3.1.1's domain.xml has debug-options="-Xdebug -Xrunjdwp:..." while
DK> the JDK
DK> documentation page says that "the newer -agentlib:jdwp option is
DK> preferable".
DK>
http://download.oracle.com/javase/6/docs/technotes/guides/jpda/conninv.h
DK> tml#Invocation
DK> Should we replace the debug options with -agentlib:jdwp in domain.xml
DK> from GF 3.2 up?
DK> I don't know the visible benefits and impact of using -agentlib instead,
DK> especially when using other JDKs (OpenJDK, AIX?).
DK> Is this something that has been looked at?
DK> If not, I'd say GF should "lead by example" or "eat our own dog food"
DK> and follow the Java documentation's advice? :)
prompted me to update the build.properties.<container> files in all our
code lines. Here's the commit log, which will be sufficiently
explanatory for all Mojarra devs.
------------------------------------------------------------------------
r9652 | edburns | 2012-02-07 10:04:37 -0500 (Tue, 07 Feb 2012) | 28 lines
M build.properties.weblogic
M build.properties.glassfish
- While going through old mail, I saw a message from Dies Koper from
Fujitsu advising us of the correct way to declare debugger attach
options to the JVM. This change codifies that best practice.
This diff has all you need to know.
Index: build.properties.glassfish
===================================================================
--- build.properties.glassfish (revision 9651)
+++ build.properties.glassfish (working copy)
@@ -168,10 +168,10 @@
# --------------------------------------------------
# Unix
# --------------------------------------------------
-#debug.jvm.args = -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
+#debug.jvm.args = -agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n
# --------------------------------------------------
# Windows
## --------------------------------------------------
-#debug.jvm.args = -Xdebug -Xrunjdwp:transport=dt_shmem,address=jdbconn,server=y,suspend=n
+#debug.jvm.args = -agentlib:jdwp=transport=dt_shmem,address=jdbconn,server=y,suspend=n
--
| edward.burns_at_oracle.com | office: +1 407 458 0017
| homepage: | http://ridingthecrest.com/