Wednesday, March 25, 2009

Changing GlassFish Java JDK version

Following the previous post, if one wants to update GlassFish JDK's version has to do the following:

Goto the config folder, edit the asenv.bat file and change the following to the desired version:

set AS_JAVA=D:\java\jdk1.6.0_11\jre/..

VisualVM installation problem

VisualVM is a visual tool integrating several commandline JDK tools and lightweight profiling capabilities. Designed for both production and development time use, it further enhances the capability of monitoring and performance analysis for the Java SE platform.
One can download it here

One can use it to monitor glassfish. Here is a good blog how to configure the glassfish plugin.

I had an issue with the installation. The issue was that I was running JDK6.12
Switching to JDK6.11 solved the problem.

Monday, March 9, 2009

Enabling GZIP on GlassFish on v2

I had problems enabling GZIP on GlassFish on V2. For later version there are new settings like
compression = force

But the following settings worked for me at least.
One can configure GZIP from the GUI for the http-listener nodes as follows:






Using FireBug (or Fiddler) one can verify that the request is GZIPped as the following diagram shows.