2014-07-19 21:26 GMT+04:00 George Sexton <geor...@mhsoftware.com>:
>
> On 7/18/2014 11:02 PM, Violeta Georgieva wrote:
>>
>> Hi,
>>
>> I suppose I'm trying to understand how the impact of this so dramatically
>> outweighs my app's startup, which includes loading the jar, initializing a
>> lot of classes, connecting to the database, starting background threads,
>> etc. It just seems really odd.
>>>
>>> Can anyone help me understand this?
>>
>> Read this http://wiki.apache.org/tomcat/HowTo/FasterStartUp
>
>
>
> I read that, and it told me how to make it go faster, which I did. What I'm
> trying to understand is what it is that makes that single thing add so much
> overhead. As I mentioned in my original post, it just seems
> counter-intuitive that the work required would exceed loading my app,
> initializing the classes, connecting to the database, starting threads, etc.

Starting the webapp loads only those classes that are actually used.
Scanning for annotations has to unzip and parse every *.class file in
all of your libraries.

To get what actually happens, take several thread dumps while the
application is being deployed.

I improved some wording on that Wiki page a bit.

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