users@glassfish.java.net

Dire performace getting initial context from web start app.

From: <glassfish_at_javadesktop.org>
Date: Sun, 11 Feb 2007 14:54:48 PST

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!
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