A note about SSL debugging on glassfish v2.x, if you enable the JVM option:
-Djavax.net.debug=all JVM
It logs one byte per line in the server log which is entirely unreadable but for a few entries. I did not find it helpful. This seems to be a mismatch between what the SSL code thinks the logger will do, and what the glassfish logger does (aka not buffer).
[Message sent by forum member 'suggarglider' (suggarglider)]
http://forums.java.net/jive/thread.jspa?messageID=359789