tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: parallel webapp initialization
Date Tue, 11 Oct 2011 13:42:55 GMT
On 11/10/2011 10:02, Felix Schumacher wrote:
> Hi Alexander,
> On Tue, 11 Oct 2011 09:20:29 +0200, Alexander Knöller wrote:
>> Hi Felix.
>>
>> Then you are already working on a patch?
>> I haven't done any tomcat development, yet.
>> And I am not familiar with the ettiquette for developing patches.
>> So if you are already working on it, I won't start doing the same, right?
>> Except cuncurrent development is favored?
> I attached a patch to
> https://issues.apache.org/bugzilla/show_bug.cgi?id=46264 the bug entry
> Mark pointed at. So you can have a look at it. Feedback is always
> welcome. Stopping contexts in parallel is completely missing at the
> moment for example.

I have added a patch based on the previous patches that adds:
- threaded start/stop for Contexts
- threaded start/stop for Hosts
- threaded deployment

Control over the number of threads is via server.xml and/or JMX. This
can be changed dynamically.

Review, feedback, testing etc. welcome.

With 4 threads rather than the current 1 (on a 8-core machine), I saw a
20-25% improvement in start time with a large number of Contexts that
all start quickly. I'd expect to see better results in situations where
1 few Contexts start slowly but most are quick.

Mark

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


Mime
View raw message