2014-07-16 16:31 GMT+04:00 Daniel Mikusa <dmik...@gopivotal.com>:
> On Wed, Jul 16, 2014 at 8:00 AM, Brandon M. Wagner <bran...@tripletech.net>
> wrote:
>
>> I'm having an issue with Tomcat 7.0.54 on a Windows Server 2008 machine
>> (8GB of RAM, Dual AMD Opteron 8 core CPUs 2.0Ghz) where the .WAR file is
>> taking 45 minutes to an hour to unpack and deploy. I can unpack the same
>> .WAR file on my development machine (Windows 7, 16GB of RAM, Intel i7 870
>> 2.93Ghz) in less than 2 minutes.
>>
>> Something troubling I'm noticing on the production machine is that the CPU
>> usage will hover at around 13%. I've tried setting affinity and priority,
>> but still Tomcat is only using the 13% of the CPU.
>>
>> Some more information about the production machine:
>>     -It is disconnected from internet (only intranet access)
>>     -It has been rebuilt because of the slow deployment issue (was on
>> physical box with server 2003 same specs, now on VMWare instance with 2008)
>>
>> Information about the .WAR file:
>>     - .WAR is about 28MB
>>     - expands to 260MB
>>
>>
> A couple suggestions...
>
> 1.) While you're waiting for the app to deploy take some thread dumps.  I'd
> take several groups of two or three thread dumps, with 10 - 15 seconds
> between each thread dump and maybe 5 minutes between each group.  This
> should give you an idea as to what happening on the server at various
> points in time.  Look for long running threads, which could indicate a
> problem.  More info here.
>
>
> http://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_running_webapp_.3F
>    http://wiki.apache.org/tomcat/HowTo#How_do_I_read_a_Java_thread_dump_.3F
>

+1

How do you measure the timing?

Do you have antivirus scanner on that machine? (They love to inspect
zip files, and for a big file that may take notable time).

Also,
http://wiki.apache.org/tomcat/HowTo/FasterStartUp

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to