users@glassfish.java.net

Re: GlassFish v3 admin console very slow

From: Sam Crawford <samcrawford_at_gmail.com>
Date: Sun, 13 Dec 2009 21:54:48 +0000

Hi Anissa,

The two fixes you've suggested work perfectly. The console login
proceeds quickly now, and I see the Update Tool tab is gone. Hopefully
someone will post a blog entry about this (I'd do it myself if I had
one!).

Thanks for all your help. It really didn't take you long to provide
the information; I only mentioned it on Friday afternoon (GMT) and
it's now Sunday (so that's less than one working day for me!). That
seems good to me (especially as we don't have paid support for
GlassFish, but we do on other Sun products (e.g. OpenSSO, Sun Java
System Web Server, MySQL, etc).

I'm now going to start experimenting with GlassFishv3 properly :-)

Thanks again,

Sam


2009/12/13 Anissa Lam <Anissa.Lam_at_sun.com>:
>
> Hi Sam,
>
> First, sorry it takes several iteration to get all the information.   It
> really shouldn't be that complicated to avoid network access from the
> console as it sounds.
> Let me give a summary and the suggestion here.
>
> 1.   Stop admin console from making any network access.  This is resolved in
> issue# 11057 : Need a way to specify no network access in GUI
>       Adding
> <jvm-options>-Dcom.sun.enterprise.tools.admingui.NO_NETWORK=true</jvm-options>
> will result in:
>
> Regardless of registration state, there will be no popup reminder, no
> registration tree node, no Registartion in common task.
> GlassFish News will not be shown in the tree node nor the common task page
> The information frame under Common Task page will not be rendered.
>
>        All of the above is part of the 'core'  admin console application.
> This is working as expected and verified by you.
>
> 2.  UpdateTool functionality
>       As Admin Console moved to make use of the OSGi architecture,
> updatetool functionality is implemented as a plugin module.  The application
> (console) itself shouldn't know what needs to be done in any plugin.   So,
> all you need to do is remove the updatetool plugin module if you don't want
> any  updatetool feature in the console.     However,  this plugin module is
> part of the  "glassfish-gui" IPS package, and one cannot just remove this
> particular module.   I will file an RFE so that this updatetool plugin
> module resides in its own IPS package and can be add-on or un-installed
> easily.   As a workaround for now,  just remove
> console-updatecenter-plugin.jar.   You can do this:
>
> cd  glassfishv3/glassfish
> mv modules/console-updatecenter-plugin.jar
> modules/console-updatecenter-plugin.jar.ORIG   (or remove this jar)
> rm -r domains/domain1/osgi-cache
> rm -r domains/domain1/generated
> bin/asadmin start-domain
>
> The steps  should  make the console behaves as what you expect.
>
> I still think there is issue with the update tool itself.   The
> configuration file location and format should be made public so that user
> can modify it to set proxy infabove ormation.   As of now, as pointed out, there
> seems chicken and egg problem regarding having to start it up to set the
> proxy but updatetool cannot be start up due to network issue.
>
> I hope you can try one more time doing #1 and #2 as mentioned above and see
> that it fits your need.    Again, sorry to take that long for providing the
> above information.
>
> thanks
> Anissa.
>
>
>
> Sam Crawford wrote:
>
> Anissa,
>
> Okay, I've put it back to "true" and I do now see the News pane at the
> bottom of the console has gone.
>
> However, the console still takes over 3 minutes to login!
>
> I've attached my server.log so that you can see for yourself that the
> JVM parameter is properly set, and also the two lines near the bottom:
>
> [#|2009-12-13T11:06:42.992+0000|INFO|glassfishv3.0|org.glassfish.admingui|_ThreadID=25;_ThreadName=Thread-1;|admin
> console: initSessionAttributes()|#]
>
> [#|2009-12-13T11:09:52.732+0000|INFO|glassfishv3.0|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=25;_ThreadName=Thread-1;|Cannot
> refresh Catalog : Connection timed out|#]
>
> Note the 3+ minute difference between those two lines. The first is
> written when the login form is rendered; the second is written when
> the console actually starts to render. The "Connection timed out"
> message there strongly suggests that the NO_NETWORK option isn't
> preventing all network connectivity it should do...
>
> Also, I notice that the Update Tool link is still present in the
> console, and clicking on this has the same effect as before (the
> console locks up for many many minutes, and there's lots of Connection
> Timed Out entries in the server.log).
>
> At the moment, a 3+ minute login time to the console makes this unusable for
> us.
>
> Thanks,
>
> Sam
>
>
> On 12/12/2009, Anissa Lam <Anissa.Lam_at_sun.com> wrote:
>
>
> Hi Sam,
>
>
> Sam Crawford wrote:
>
>
> Hmmm, I've tried setting the
> com.sun.enterprise.tools.admingui.NO_NETWORK system property (by
> adding
> <jvm-options>-Dcom.sun.enterprise.tools.admingui.NO_NETWORK=1</jvm-options>
> in the domain.xml (I also tried the "true" value as well)). And I can
> see that the JVM has correctly started with this property set...
>
>
>
>
> You need to set that to "true".
> Add this line in domain.xml, within <java-config>
>
>
> <jvm-options>-Dcom.sun.enterprise.tools.admingui.NO_NETWORK=true</jvm-options>
>
>
>
> Yet the console still takes forever to start, and I can still see it
> trying to phone home to Sun.
>
>
>
>
> You mean you still see the extra image and information about getting
> product support in the bottom of the Common Task page ?
> I just tried again on v3 FCS. Once i add that option, I no longer
> see this lower frame.
>
> Do you see the "GlassFish News" tree node ?
> I don't see this tree node either with that option.
>
> Also try to "rm -rf glassfish/domains/doamin1/osgi-cache
> glassfish/domains/domain1/generated" before starting the server again
> after adding this option.
>
> thanks
> Anissa
>
>
>
> Am I setting this property incorrectly somehow?
>
> Thanks,
>
> Sam
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>
>
> ________________________________
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>