users@glassfish.java.net

Re: Dire performace getting initial context from web start app.

From: Binod <Binod.Pg_at_Sun.COM>
Date: Mon, 12 Feb 2007 08:51:05 +0530

glassfish_at_javadesktop.org wrote:

>I've run into what can only be described as a dire performance problem.
>
>The setup
>A web start loaded stand alone client application.
>(Note: I am not using the built in web start client container! it has too many issues, looks like a demo, that was never finished, Sorry Tim).
>
>The client app works with poor performance from the debugger (About 2 seconds).
>Yet when loaded with Web Start, this bit of code
>
>[code]
> System.setProperty("org.omg.CORBA.ORBInitialHost", "starjar-partech");
> initial = new InitialContext();
>[/code]
>
>Takes over 17 seconds!
>
>
Is that only when you first run your application? Or Does this happen
each time your run the webstart app?

- Binod

>With the local cpu flat out, NO network io, and no disk io.
>
>One has to wonder WTF is InitialContext doing?
>
>
>Tested with jars from Glassfish v2 b35 and v2 b25 all running Java 6
>
>
>
>The web start app Is signed with full access.
>Also I have to nuke the security manager to preven orb puking on it's feet.
>[code]
> System.setSecurityManager(null);
>[/code]
>
>
>
>I'll put together a test set tomorrow, which reproduces the problem. Althought I suspect it will be a waste of time and fall on dead ears.
>
>
>
>Peter Henderson
>[Message sent by forum member 'phenderson' (phenderson)]
>
>http://forums.java.net/jive/thread.jspa?messageID=203281
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>