When measuring performance for secure web requests (HTTPS), we are seeing performance degradation ranging from -6% to -20% on various platforms.
Atleast a part of the degradation is coming from following method call in Glassfish 4.0:
org.glassfish.grizzly.ssl.SSLEncoderTransformer.wrapAll – total time 32.76s
The equivalent call in Glassfish 3.1.2 takes 40% less time:
com.sun.grizzly.util.SSLUtils.wrap – total time 19.66s
The wrapAll method in Glassfish 4.0 calls SSLEngine.wrap in a loop and looks more heavy weight than the wrap method call in Glassfish 3.1.2 .