Re: Load balancing questions

2010-01-07 Thread assan alhamoud
The application  is not compatible with Jboss 5 ,so I could not make the
upgrade.
And I don't have the source.


On Wed, Jan 6, 2010 at 10:09 PM, Bob Hall rfha...@yahoo.com wrote:

 --- On Wed, 1/6/10 at 7:54 AM, assan alhamoud hamoudas...@gmail.com
 wrote:

  any suggestion ?
 

 Upgrade to a more recent version of JBoss/Tomcat, like JBoss 5.1.0.

 - Bob




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




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


RE: Load balancing questions

2010-01-07 Thread Caldarale, Charles R
 From: assan alhamoud [mailto:hamoudas...@gmail.com]
 Subject: Re: Load balancing questions
 
 The application  is not compatible with Jboss 5

That's difficult to believe.  We haven't found anything from JBoss 4.x that 
didn't work with 5.x.

Have you tried it?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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



Re: Load balancing questions

2010-01-07 Thread assan alhamoud
we are using jboss-3.2.5

On Thu, Jan 7, 2010 at 5:05 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: assan alhamoud [mailto:hamoudas...@gmail.com]
  Subject: Re: Load balancing questions
 
  The application  is not compatible with Jboss 5

 That's difficult to believe.  We haven't found anything from JBoss 4.x that
 didn't work with 5.x.

 Have you tried it?

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.


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




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


RE: Load balancing questions

2010-01-07 Thread Caldarale, Charles R
 From: assan alhamoud [mailto:hamoudas...@gmail.com]
 Subject: Re: Load balancing questions
 
 we are using jboss-3.2.5

That's 5.5 years old; you should try to keep up a bit more often than that.

Regardless, have you tried moving to Jboss 5.x?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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



Re: Load balancing questions

2010-01-07 Thread assan alhamoud
 Not yet , I am going to test although the company that made the product
says it is not possible .

Is there any link that help me in this upgrade ?

On Thu, Jan 7, 2010 at 5:18 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: assan alhamoud [mailto:hamoudas...@gmail.com]
  Subject: Re: Load balancing questions
 
  we are using jboss-3.2.5

 That's 5.5 years old; you should try to keep up a bit more often than that.

 Regardless, have you tried moving to Jboss 5.x?

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.


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




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


RE: Load balancing questions

2010-01-07 Thread Caldarale, Charles R
 From: assan alhamoud [mailto:hamoudas...@gmail.com]
 Subject: Re: Load balancing questions
 
 Is there any link that help me in this upgrade ?

I'd look at jboss.org and browse the community support area.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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



Re: Load balancing questions

2010-01-06 Thread assan alhamoud
any suggestion ?

On Tue, Jan 5, 2010 at 1:54 PM, assan alhamoud hamoudas...@gmail.comwrote:

 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=2 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=1
 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.

Re: Load balancing questions

2010-01-06 Thread Bob Hall
--- On Wed, 1/6/10 at 7:54 AM, assan alhamoud hamoudas...@gmail.com wrote:

 any suggestion ?


Upgrade to a more recent version of JBoss/Tomcat, like JBoss 5.1.0.

- Bob


  

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



Re: Load balancing questions

2010-01-05 Thread assan alhamoud
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=2 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=1
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 

Re: Load balancing questions

2010-01-04 Thread Mark Thomas
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.

 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



Re: Load balancing questions

2010-01-04 Thread Bob Hall


--- 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 

Re: Load balancing questions

2010-01-03 Thread assan alhamoud
Happy new year to all ,

I am using tomcat and JBoss.

Tomcat/5.0.26
mod_jk/1.2.26

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




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


Re: Load balancing questions

2009-12-29 Thread Mark Thomas
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



Re: Load balancing questions

2009-12-29 Thread assan alhamoud
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

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




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


RE: Load balancing questions

2009-12-29 Thread Gerhardus.Geldenhuis
Hi Ghassan,
It looks like you might be using a default/old version of modjk. I would
recommend as a start to either download the latest binary release or
compile a custom version for your distribution. It is really
straightforward to do the compile and everything you need to know is in
the documentation and readme files. You can download the latest version
here:
http://tomcat.apache.org/download-connectors.cgi

Regards

 -Original Message-
 From: assan alhamoud [mailto:hamoudas...@gmail.com]
 Sent: 29 December 2009 16:18
 To: Tomcat Users List
 Subject: Re: Load balancing questions
 
 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
 
 Regards,
 Ghassan

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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



Re: Load balancing questions

2009-12-29 Thread Mark Thomas
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