users@glassfish.java.net

weird problem while synchronizing large web application

From: <glassfish_at_javadesktop.org>
Date: Thu, 26 Feb 2009 08:52:00 PST

Hi there;

Using glassfish 9.1_01 (build b09d-fcs) on linux redhat, cluster profile.

I have a big .war file, 55mb, containing 958 files.
The deployment of the application to an empty stand-alone instance takes some seconds. Starting the standalone instance takes almost 15 minutes which is way too long. CPU is used at 100%. The standalone instance uses another configuration than the DAS.

Changed the option INSTANCE-SYNC-JVM-OPTIONS to use up to 256mb as described on http://docs.sun.com/app/docs/doc/820-4341/abdkk?a=view.
This had no effect.
        
Wanted to know what exactly happens while synchronizing. Set the Synchronization logger to level FINEST on the server and the target config. There was no additional output.

So I set all Logger to FINEST on the server and the target config. Surprise surprise: Now, the synchronization took about 1 minute! Switched back each Logger to INFO to see which one caused the difference: it was the Web Container Logger of the DAS (the last one I tried btw.. :D). If this Logger is in Level FINEST, FINER or FINE the synchronization takes about 1 minute, all other Levels of this Logger will cause the synchhronization to take about 15 Minutes.

Here is my worklog. The Steps were always:

1) undeploy existing application
2) stopping the stand alone instance
3) manually removed any content in <node-root>/<servername>/applications/j2ee-modules/<application>
4) Changing the log level
5) Deploy application (asadmin CLI)
6) starting stand alone instance (asadmin CLI)

Here is the output of server.log for the synchronization:

all log levels value DEFAULT (INFO)

Synchronization completed in 856.065 seconds.|#]
Synchronization completed in 857.611 seconds.|#]
Synchronization completed in 855.995 seconds.|#]


all log levels value FINEST (DAS and target config)

Synchronization completed in 57.783 seconds.|#]
Synchronization completed in 56.708 seconds.|#]
Synchronization completed in 55.648 seconds.|#]


log levels DAS: DEFAULT (INFO), log levels target config: FINEST

Synchronization completed in 857.901 seconds.|#]
Synchronization completed in 859.902 seconds.|#]
Synchronization completed in 856.213 seconds.|#


log levels DAS: FINEST, log levels target config: DEFAULT (INFO)

Synchronization completed in 59.926 seconds.|#]
Synchronization completed in 59.948 seconds.|#]
Synchronization completed in 59.197 seconds.|#


log levels DAS: All INFO except Web Container: FINEST

Synchronization completed in 53.598 seconds.|#]
Synchronization completed in 54.190 seconds.|#]
Synchronization completed in 53.857 seconds.|#]


log levels DAS: All INFO except Web Container: FINER

Synchronization completed in 55.508 seconds.|#]
Synchronization completed in 54.333 seconds.|#]
Synchronization completed in 54.134 seconds.|#]


log levels DAS: All INFO except Web Container: FINE

Synchronization completed in 57.326 seconds.|#]
Synchronization completed in 57.400 seconds.|#]
Synchronization completed in 55.706 seconds.|#]


log levels DAS: All INFO except Web Container: CONFIG

Synchronization completed in 898.078 seconds.|#]
Synchronization completed in 888.433 seconds.|#]
Synchronization completed in 892.493 seconds.|#]


log levels DAS: All INFO except Web Container: WARNING

Synchronization completed in 869.170 seconds.|#]
Synchronization completed in 864.190 seconds.|#]
Synchronization completed in 868.529 seconds.|#]


log levels DAS: All INFO except Web Container: SEVERE

Synchronization completed in 899.201 seconds.|#]
Synchronization completed in 894.154 seconds.|#]
Synchronization completed in 894.494 seconds.|#]


log levels DAS: All INFO except Web Container: OFF

Synchronization completed in 886.109 seconds.|#]
Synchronization completed in 884.403 seconds.|#]
Synchronization completed in 872.001 seconds.|#]


Can someone please help?

Thank you...

Ivo
[Message sent by forum member 'jdrive' (jdrive)]

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