dev@glassfish.java.net

Re: -Xdebug -Xrunjdwp vs. agentlib:jdwp for GF application debugging

From: Byron Nevins <byron.nevins_at_oracle.com>
Date: Wed, 03 Aug 2011 10:15:55 -0700

Sounds like a great idea. Please file an issue?

On 8/2/2011 8:48 PM, Koper, Dies wrote:
> GF 3.1.1's domain.xml has debug-options="-Xdebug -Xrunjdwp:..." while
> the JDK
> documentation page says that "the newer -agentlib:jdwp option is
> preferable".
>
> http://download.oracle.com/javase/6/docs/technotes/guides/jpda/conninv.h
> tml#Invocation
>
> Should we replace the debug options with -agentlib:jdwp in domain.xml
> from GF 3.2 up?
>
> I don't know the visible benefits and impact of using -agentlib instead,
> especially when using other JDKs (OpenJDK, AIX?).
> Is this something that has been looked at?
>
> If not, I'd say GF should "lead by example" or "eat our own dog food"
> and follow the Java documentation's advice? :)
>
> Regards,
> Dies
>

-- 
Oracle <http://www.oracle.com>
Byron Nevins | Principal MTS
Phone: +1 6503958992 <tel:+1%206503958992>
Green Oracle <http://www.oracle.com/commitment> Oracle is committed to 
developing practices and products that help protect the environment