Search code examples
glassfish-3

Glassfish admin console slow loading


Today I stopped/started my GlassfishV3 instance and now I cannot access the addmin console located at http://servername:4848/. The screen says: "The admin console is loading..." This is going on forever now.

I have tried as follows:

  • I have tried adding the following entry to my domain.xml located at /glassfishv3/glassfish/domains/domain1/config as suggested in another Stack Overflow Q&A but after restarting the server still no luck.

    <java-options>-Dcom.sun.enterprise.tools.admingui.NO_NETWORK=true</java-options>

  • I have also installed glassfishv3 on my local machine and cannot recreate the problem.I can go to http://localhost:4848 without any problem.

  • I have also looked at the server.log and jvm.log files located under the /glassfishv3/glassfish/domains/domain1/logs and nothing there that shed some light.

Any help would be very much appreciated


Solution

  • I found a solution to my problem. Setting the java-option to NO_NETWORK to true did not work so I upgraded from 3.0.1 to 3.1 and it got fixed. Not immediately though, I had to stop/start the Glassfish server a couple of times before I got into the admin console without any really long delays.

    Solution

    The solution was to upgrade from the command line using the pkg utility.

    You can find the steps in this link: http://download.oracle.com/docs/cd/E18930_01/html/821-2437/gkthu.html#gktjf

    Or do as follows:

    1. Go to as-install-parent/bin
    2. ./pkg image-update
    3. as-install-parent/glassfish/bin/asadmin start-domain --upgrade domain-name
    4. as-install-parent/glassfish/bin/asadmin start-domain domain-name

    UPDATE I had peformance issues again and I found this other solution in Joshi's tech blog: http://joshitech.blogspot.com/2009/09/glassfish-application-server.html

    Basically add the following jvm options in the domain.xml. It should increase Glassfish boot up and deployment performance:

    <jvm-options>-server</jvm-options>
    <jvm-options>-Xms3000m</jvm-options>
    <jvm-options>-Xmx3000m</jvm-options>
    <jvm-options>-XX:MaxPermSize=192m</jvm-options> 
    <jvm-options>-XX:NewRatio=2</jvm-options> 
    <jvm-options>-XX:+AggressiveHeap</jvm-options>
    <jvm-options>-XX:+AggressiveOpts</jvm-options>
    <jvm-options>-XX:+UseParallelGC</jvm-options>
    <jvm-options>-XX:+UseParallelOldGC</jvm-options>
    <jvm-options>-XX:ParallelGCThreads=5</jvm-options>