any suggestion ?

On Tue, Jan 5, 2010 at 1:54 PM, assan alhamoud <hamoudas...@gmail.com>wrote:

> Hello ,
>
> *In Server.xml for Tomcat I have the following values*
>
> <!-- A HTTP/1.1 Connector on port 8080  -->
>       <Connector port="42591" address="${jboss.bind.address}"
>          maxThreads="750" minSpareThreads="50" maxSpareThreads="150"
>          enableLookups="false" redirectPort="8443"
>          connectionTimeout="20000" disableUploadTimeout="true"
>          useBodyEncodingForURI="true"/>
>
>       <!-- A AJP 1.3 Connector on port 8009 -->
>       <Connector port="42510" address="${jboss.bind.address}"
>  minSpareThreads="50" maxSpareThreads="150"
>          enableLookups="false" redirectPort="8443" debug="0"
> minThreads="40" minProcessors="40" maxProcessors="500"
>          protocol="AJP/1.3" acceptCount="100"
>          useBodyEncodingForURI="true" connectionTimeout="7000"
> maxThreads="750"/>
>
>
> *and in workers.properties I have the following values*
> *
> *
> worker.server1.port=42510
> worker.server1.host=X.X.X.X
> worker.server1.type=ajp13
> worker.server1.lbfactor=1
> worker.server1.connect_timeout=10000
> worker.server1.prepost_timeout=2000
> worker.server1.socket_keepalive=True
>
> *and I am going to add the following *
> reply_timeout
> max_reply_timeouts
> retries =1
> retry_interval
> recovery_options=1
> socket_timeout
> connection_pool_size
> connection_pool_timeout
>
> Do you suggest values for them ? and do you recommend adding
> other parameters  ?
>
> Notes :
> 1- I upgraded  mod_jk
> 2- upgrade tomcat is not easy to do , I have some questions about this ,
> but now I am concentrating on tuning the parameters first.
> 3- I have long garbage collection pauses  GC 2993642K->1550690K (3145728K),
> 5590.496 ms
>
>
>
> On Mon, Jan 4, 2010 at 12:54 PM, Bob Hall <rfha...@yahoo.com> wrote:
>
>>
>>
>> --- On Mon, 1/4/10 at 1:34 AM, Mark Thomas <ma...@apache.org> wrote:
>>
>> > On 03/01/2010 11:09, assan alhamoud
>> > wrote:
>> > > Happy new year to all ,
>> > >
>> > > I am using tomcat and JBoss.
>> >
>> > You'll need to explain that further. Why would you use
>> > Tomcat and JBoss
>> > for the same app. I would expect one or the other.
>> >
>> > > Tomcat/5.0.26
>> >
>> > That is very, very old and has many known bugs and a number
>> > of security
>> > vulnerabilities. I'd strongly suggest moving to 5.5.28.
>>
>> JBoss 3.2.5 has Tomcat 5.0 embedded (both very old versions)
>>
>> JBoss 4.0.3 has Tomcat 5.5 embedded (both old versions)
>>
>> Current version of JBoss is 6.0 not sure what version of Tomcat is
>> embedded,
>> http://community.jboss.org isn't responding...
>>
>> - Bob
>>
>> >
>> > > mod_jk/1.2.26
>> >
>> > Also worth upgrading to the latest version
>> >
>> >
>> > To get back to your original question, it looks like your
>> > app could
>> > benefit from some tuning. The hanging is likely to be
>> > caused by long
>> > running requests using up all the connections between httpd
>> > and Tomcat
>> > and/or poor mod_jk / AJP connector configuration. Since you
>> > haven't
>> > shown us this configuration it is hard to provide specific
>> > advice but
>> > generally I would suggest:
>> > - use JkOptions +DisableReuse (or sort out your timeouts
>> > but my
>> > experience has been disable reuse is simpler to configure
>> > and has
>> > similar performance)
>> > - turn on access logging for Tomcat
>> > - check any timeouts are consistent with your longest
>> > running requests
>> > - ensure the following are compatible
>> >   - httpd processes/threads
>> >   - Tomcat AJP connector threads
>> >   - mod_jk connection pooling
>> >
>> > Mark
>> >
>> > >
>> > > Regards,
>> > >
>> > > 2009/12/29 Mark Thomas <ma...@apache.org>
>> > >
>> > >> On 29/12/2009 16:17, assan alhamoud wrote:
>> > >>> Hello Mark  ,
>> > >>>
>> > >>> we are using apache  Server version:
>> > Apache/2.2.11 (Unix)
>> > >>> we use  mod_jk.so module
>> > >>> jboss-3.2.5
>> > >>> Tomcat5
>> > >>> and jrockit-jdk1.4.2_19
>> > >>>
>> > >>> at your disposal if you need more information
>> > >>
>> > >> Are you using Tomcat or JBoss?
>> > >> Tomcat version?
>> > >> mod_jk version?
>> > >>
>> > >> Mark
>> > >>
>> > >>>
>> > >>> Regards,
>> > >>> Ghassan
>> > >>>
>> > >>> 2009/12/29 Mark Thomas <ma...@apache.org>
>> > >>>
>> > >>>> On 29/12/2009 15:21, assan alhamoud
>> > wrote:
>> > >>>>> Hello All
>> > >>>>>
>> > >>>>>  I have some questions and I hope
>> > to find answers about Load balancing
>> > >> .
>> > >>>>>
>> > >>>>> 1- The first question , our DBA says
>> > that it not normal and no logic
>> > >>  to
>> > >>>>> have several instances of tomcat
>> > server on the same machine   with the
>> > >>>> same
>> > >>>>>  configuration , is this correct
>> > ?
>> > >>>> No. Your DBA is wrong.
>> > >>>>
>> > >>>>> 2- Each tomcat instance here can serve
>> > about 125 user , and I have more
>> > >>>> than
>> > >>>>> this number on the server I got alot
>> > of problems and usually  the
>> > >>>> instance
>> > >>>>> hang , is there anyway to get better
>> > performance from tomcat.
>> > >>>> That isn't a Tomcat problem, that is an
>> > application problem. The
>> > >>>> solution is to fix/tune your application.
>> > >>>>
>> > >>>>>    I am using now 3G memory
>> > for each instance and 120 for max_pool_size
>> > >>>> and
>> > >>>>> 750 maxThread
>> > >>>> It isn't clear what the 125 users refers
>> > to. Is it concurrent requests,
>> > >>>> is it concurrent sessions, is it
>> > concurrent users (assuming 1 concurrent
>> > >>>> user == more than 1 concurrent request).
>> > From these numbers the
>> > >>>> application seems very resource intensive.
>> > It does appear that it would
>> > >>>> benefit from some tuning.
>> > >>>>
>> > >>>>> 3- The most critical issue I had
>> > , when one instance hangs , apache
>> > >>>> hangs
>> > >>>>> and then all the application hangs
>> > because apache keep trying to
>> > >> connect
>> > >>>> to
>> > >>>>> the hanged instance , Is there any way
>> > to force apache to bypass the
>> > >>>> hanged
>> > >>>>> instance.
>> > >>>> Yes. But since you haven't told us the
>> > Tomcat version, httpd version nor
>> > >>>> how you are connecting httpd to Tomcat we
>> > can't tell you how to fix it.
>> > >>>>
>> > >>>>> 4- When instance of tomcat hangs , i
>> > forced to restart this instance (
>> > >>>>> tomcat server )  the problem is
>> > GC can not free memory anymore
>> > >>>>>     Is there
>> > anyway to solve the problem instead of restarting the
>> > >>>> server.
>> > >>>> Yes. Work out if you have a memory leak or
>> > need more memory than is
>> > >>>> available. If it is a memory leak, fix it.
>> > If you need more memory
>> > >>>> either allocate it or tune your app so it
>> > uses less.
>> > >>>>
>> > >>>>> 5- at last sometimes I found that the
>> > same action repeated many times
>> > >>>> which
>> > >>>>> means that apache sends the request
>> > more than one time to tomcat server
>> > >>>>> ,could I have control over this
>> > behavior.
>> > >>>> Maybe, maybe not. If this behaviour is
>> > initiated by the user agent you
>> > >>>> need to manage this in your app. It could
>> > also be caused by the
>> > >>>> fail-over mechanism, in which case I refer
>> > you to my answer to point 3
>> > >>>> above.
>> > >>>>
>> > >>>> Mark
>> > >>>>
>> > >>>>
>> > >>>>
>> > >>>>
>> > ---------------------------------------------------------------------
>> > >>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> > >>>> For additional commands, e-mail: users-h...@tomcat.apache.org
>> > >>>>
>> > >>>>
>> > >>>
>> > >>>
>> > >>
>> > >>
>> > >>
>> > >>
>> > >>
>> > ---------------------------------------------------------------------
>> > >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> > >> For additional commands, e-mail: users-h...@tomcat.apache.org
>> > >>
>> > >>
>> > >
>> > >
>> >
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> > For additional commands, e-mail: users-h...@tomcat.apache.org
>> >
>> >
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>
>
> --
> وداعاً ميخائيل
>



-- 
وداعاً ميخائيل

Reply via email to