users@glassfish.java.net

Re: Very slow deployment on Glassfish

From: <glassfish_at_javadesktop.org>
Date: Thu, 04 Sep 2008 00:47:26 PDT

Hi Vbkraemer,

Hope this helps:

[i]What platform are you running on? (OS, Hardware, Memory)[/i]
Windows XP SP3, AMD Athlon 64 X2 4400+, 3GB RAM


[i]What JDK are you using?[/i]
Sun Java v1.6.0_04


[i]Which build of GlassFish are you using?[/i]
V2UR2 (lastest stable)


[i]What directory is GF installed in?[/i]
C:\Workspace\Glassfish


[i]How big is the ear file?[/i]
9.22 MB


[i]How long does deployment take if you use 'asadmin deploy' instead of the ant task?[/i]
Just over a minute if not in debug mode, just under a minute with dropandcreatetables set to false and about a minute and a half if I'm in debug mode.


[i]What messages do you see in the server log file when you deploy?[/i]
I noticed the deploy message here, and it takes about 20 seconds before the next message is displayed:

[i][#|2008-09-04T09:16:05.540+0200|INFO|sun-appserver9.1|javax.enterprise.system.tools.admin|_ThreadID=16;_ThreadName=httpWorkerThread-4848-0;C:\Documents and Settings\jacolists\Local Settings\Temp\s1astempdomain1server256455392\Application.ear;|ADM1006:Uploading the file to:[C:\Documents and Settings\jacolists\Local Settings\Temp\s1astempdomain1server256455392\Application.ear]|#][/i]

I then see a LOT of these:

[i][#|2008-09-04T09:16:25.462+0200|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=24;_ThreadName=Thread-546;_RequestID=8c5fa923-2445-425c-aa7c-c6fca0de542e;|
Visiting non-standard Signature object|#][/i]

In a period of 10 seconds I get about a 2000 of those?!?!?!
I receive a bunch of JPA and hibernate stuff, which take about 8 seconds.
I then run into some JSF and A4J output which take about 5 seconds.

My first log entry on deploying is:

[i][#|2008-09-04T09:16:06.587+0200|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=20;_ThreadName=httpWorkerThread-4848-4;_RequestID=7f9851f3-b176-4235-9784-0977699675ad;|
[INFO] SessionFactoryImpl - closing|#][/i]

And my last log entry is:

[i][#|2008-09-04T09:17:08.212+0200|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=18;_ThreadName=httpWorkerThread-4848-3;_RequestID=14fc0ebe-b030-46d5-bd39-78da915e160a;|
[INFO] LRUMapCacheFactory - Creating LRUMap cache instance of default capacity|#][/i]


[i]If you have other ear files, do they also deploy slowly? Or is it just this one?[/i]
I don't really have any other EARs to test with. Could you please supply a link to one I can test with? Preferably one that includes EJB3, JPA and JSF (which is what mine includes).

Thanks a lot!
Jaco
[Message sent by forum member 'jacolists' (jacolists)]

http://forums.java.net/jive/thread.jspa?messageID=297108