Enqueuing users requests

2007-11-19 Thread Stéphane Hanser
Hi everybody,

 

I’m managing a web application written with Spring. I’m using Apache 2 ->
mod_jk as a load balancer -> Tomcat 5.5

I noticed that users are able to click several times at times and their
actions are queued. But I’d prefer if the server drops any new request if
the first one is not completed. Do you know if it is possible to configure
the system to behave this way ?

 

Thanks in advance,

 

Stéphane Hanser



RE: Maven And Load Balancing deployment

2007-10-22 Thread Stéphane Hanser
Thanks a lot, I used the jkstatus and added url calls in my deployment
process. Everything works fine, my app is now available even while I'm
redeploying it

Stéphane

-Message d'origine-
De : Rainer Jung [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 22 octobre 2007 17:16
À : Tomcat Users List
Objet : Re: Maven And Load Balancing deployment

You can tell the mod_jk load balancer to disable or stop workers 
temporarily via a status worker. There is a docs page for the status 
worker, which also describes the URL structure.

We also have an ant task "jkstatus", that can be used to combine ant 
with the mod_jk status worker. There might be small functional gaps 
between the status worker and the jkstatus ant task, because the status 
worker had some big improvements a while ago, and jkstatus is in the 
process of catching up.

Regards,

Rainer

Stéphane Hanser wrote:
> Hello everybody,
> 
>  
> 
> I’m currently working on a webapp using tomcat as application server. As
we
> got a lot of users and the server was not able to handle them all alone,
we
> run 2 instances of tomcat and we use load balancing through a
> workers.properties file in apache2 directory.
> 
>  
> 
> I need to redeploy my application often and I would like to make it
without
> cutting the access to users. In order to do that, I use maven to redeploy
> the application on each instance, one after the other.
> 
>  
> 
> This works fine but the load balancer doesn’t detect that an instance is
> being unavailable and still tries to redirect to it (and it displays a
blank
> page).
> 
>  
> 
> So here is my question: is there a way for the load balancer to detect
that
> it should not use one instance the time it’s being redeployed?
> 
>  
> 
> Thanks in advance,
> 
>  
> 
> Stéphane

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Maven And Load Balancing deployment

2007-10-22 Thread Stéphane Hanser
Hello everybody,

 

I’m currently working on a webapp using tomcat as application server. As we
got a lot of users and the server was not able to handle them all alone, we
run 2 instances of tomcat and we use load balancing through a
workers.properties file in apache2 directory.

 

I need to redeploy my application often and I would like to make it without
cutting the access to users. In order to do that, I use maven to redeploy
the application on each instance, one after the other.

 

This works fine but the load balancer doesn’t detect that an instance is
being unavailable and still tries to redirect to it (and it displays a blank
page).

 

So here is my question: is there a way for the load balancer to detect that
it should not use one instance the time it’s being redeployed?

 

Thanks in advance,

 

Stéphane



RE: A lot of CPU used

2007-07-18 Thread Stéphane Hanser
In fact I found why I don't have any catalina.out file. In my install, all
the logs go in /var/log/syslog 

With the logs, I was able to find a non ending loop. I just need to try it
now ;)

Thanks all

Stéphane

-Message d'origine-
De : Leon Rosenberg [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 18 juillet 2007 10:23
À : Tomcat Users List
Objet : Re: A lot of CPU used

well, again, go to
http://tomcat.apache.org/download-55.cgi
and download a working binary copy :-)

regards
Leon

On 7/18/07, Stéphane Hanser <[EMAIL PROTECTED]> wrote:
> Thanks for your link but it deals about webapp deployment. I do not have
any
> deployment problem. It's about catalina.out.
>
> Stéphane
>
> P.S. Leon, Sorry I didn't see your PS. Thanks for your proposal but I'm
not
> able to give the access of our server.
>
> -Message d'origine-
> De: Timothy Wonil Lee [mailto:[EMAIL PROTECTED]
> Envoyé: mercredi 18 juillet 2007 00:13
> À: 'Tomcat Users List'
> Objet: RE: A lot of CPU used
>
> If you are symlinking them, maybe this will help?
> http://marc.info/?l=tomcat-user&m=105159411609623&w=2
>
>
> Timothy Wonil Lee
> -Original Message-
> From: Stéphane Hanser [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 18 July 2007 12:42 AM
> To: 'Tomcat Users List'
> Subject: RE: A lot of CPU used
>
> When I type "echo $CATALINA_BASE" nothing appears but in
> /etc/default/tomcat5.5 it reads
>
> CATALINA_BASE=/var/lib/tomcat5.5
>
> I did check and =/var/lib/tomcat5.5/logs is pointing to my
> /var/log/tomcat5.5 directory
>
> -Message d'origine-
> De: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> Envoyé: mardi 17 juillet 2007 16:27
> À: Tomcat Users List
> Objet: Re: A lot of CPU used
>
> have you checked where the $CATALINA_BASE is pointing to?
> regards
> Leon
>
> P.S. you can contact me off-list if you want me to login to your box
> and play on it a bit :-)
>
> On 7/17/07, Stéphane Hanser <[EMAIL PROTECTED]> wrote:
> > I did check. It seems good to me:
> >
> > elif [ "$1" = "start" ] ; then
> >
> >   shift
> >   touch "$CATALINA_BASE"/logs/catalina.out
> >   if [ "$1" = "-security" ] ; then
> > if [ "$gcj" = "yes" ]; then
> >   echo "The java-gcj-compat-dev environment currently doesn't
support"
> >   echo "a security manager. Please check the TOMCAT5_SECURITY
> variable"
> >   echo "in /etc/default/tomcat5.5."
> >   exit 1
> > fi
> > echo "Using Security Manager"
> > shift
> > "$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
> >   -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH"
\
> >   -Djava.security.manager \
> >   -Djava.security.policy=="$CATALINA_BASE"/conf/catalina.policy \
> >   -Dcatalina.base="$CATALINA_BASE" \
> >   -Dcatalina.home="$CATALINA_HOME" \
> >   -Djava.io.tmpdir="$CATALINA_TMPDIR" \
> >   org.apache.catalina.startup.Bootstrap "$@" start \
> >   >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
> >
> >   if [ ! -z "$CATALINA_PID" ]; then
> > echo $! > $CATALINA_PID
> >   fi
> >   else
> > "$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
> >   -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH"
\
> >   -Dcatalina.base="$CATALINA_BASE" \
> >   -Dcatalina.home="$CATALINA_HOME" \
> >   -Djava.io.tmpdir="$CATALINA_TMPDIR" \
> >   org.apache.catalina.startup.Bootstrap "$@" start \
> >   >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
> >
> >   if [ ! -z "$CATALINA_PID" ]; then
> > echo $! > $CATALINA_PID
> >   fi
> >   fi
> >
> >
> >
> > -Message d'origine-
> > De: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> > Envoyé: mardi 17 juillet 2007 15:37
> > À: Tomcat Users List
> > Objet: Re: A lot of CPU used
> >
> > you may want to check your catalina.sh (i hope you have one) where the
> > output goes.
> >
> > On 7/17/07, Stéphane Hanser <[EMAIL PROTECTED]> wrote:
> > > Lol. No I typed the right word. There is no file ended by .out on the
> > > machine.
> > >
> > > -Message d'origine-
> > > De: Leon Rosenber

RE: A lot of CPU used

2007-07-18 Thread Stéphane Hanser
Thanks for your link but it deals about webapp deployment. I do not have any
deployment problem. It's about catalina.out.

Stéphane

P.S. Leon, Sorry I didn't see your PS. Thanks for your proposal but I'm not
able to give the access of our server.

-Message d'origine-
De : Timothy Wonil Lee [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 18 juillet 2007 00:13
À : 'Tomcat Users List'
Objet : RE: A lot of CPU used

If you are symlinking them, maybe this will help?
http://marc.info/?l=tomcat-user&m=105159411609623&w=2


Timothy Wonil Lee
-----Original Message-
From: Stéphane Hanser [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 18 July 2007 12:42 AM
To: 'Tomcat Users List'
Subject: RE: A lot of CPU used

When I type "echo $CATALINA_BASE" nothing appears but in
/etc/default/tomcat5.5 it reads

CATALINA_BASE=/var/lib/tomcat5.5

I did check and =/var/lib/tomcat5.5/logs is pointing to my
/var/log/tomcat5.5 directory

-Message d'origine-
De : Leon Rosenberg [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 17 juillet 2007 16:27
À : Tomcat Users List
Objet : Re: A lot of CPU used

have you checked where the $CATALINA_BASE is pointing to?
regards
Leon

P.S. you can contact me off-list if you want me to login to your box
and play on it a bit :-)

On 7/17/07, Stéphane Hanser <[EMAIL PROTECTED]> wrote:
> I did check. It seems good to me:
>
> elif [ "$1" = "start" ] ; then
>
>   shift
>   touch "$CATALINA_BASE"/logs/catalina.out
>   if [ "$1" = "-security" ] ; then
> if [ "$gcj" = "yes" ]; then
>   echo "The java-gcj-compat-dev environment currently doesn't support"
>   echo "a security manager. Please check the TOMCAT5_SECURITY
variable"
>   echo "in /etc/default/tomcat5.5."
>   exit 1
> fi
> echo "Using Security Manager"
> shift
> "$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
>   -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
>   -Djava.security.manager \
>   -Djava.security.policy=="$CATALINA_BASE"/conf/catalina.policy \
>   -Dcatalina.base="$CATALINA_BASE" \
>   -Dcatalina.home="$CATALINA_HOME" \
>   -Djava.io.tmpdir="$CATALINA_TMPDIR" \
>   org.apache.catalina.startup.Bootstrap "$@" start \
>   >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
>
>   if [ ! -z "$CATALINA_PID" ]; then
> echo $! > $CATALINA_PID
>   fi
>   else
> "$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
>   -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
>   -Dcatalina.base="$CATALINA_BASE" \
>   -Dcatalina.home="$CATALINA_HOME" \
>   -Djava.io.tmpdir="$CATALINA_TMPDIR" \
>   org.apache.catalina.startup.Bootstrap "$@" start \
>   >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
>
>   if [ ! -z "$CATALINA_PID" ]; then
> echo $! > $CATALINA_PID
>   fi
>   fi
>
>
>
> -Message d'origine-
> De: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> Envoyé: mardi 17 juillet 2007 15:37
> À: Tomcat Users List
> Objet: Re: A lot of CPU used
>
> you may want to check your catalina.sh (i hope you have one) where the
> output goes.
>
> On 7/17/07, Stéphane Hanser <[EMAIL PROTECTED]> wrote:
> > Lol. No I typed the right word. There is no file ended by .out on the
> > machine.
> >
> > -Message d'origine-
> > De: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> > Envoyé: mardi 17 juillet 2007 15:10
> > À: Tomcat Users List
> > Objet: Re: A lot of CPU used
> >
> > maybe because it is called catalina.out?
> > :-)
> >
> > On 7/17/07, Stéphane Hanser <[EMAIL PROTECTED]> wrote:
> > > I didn't install it myself. We hired a system admin for one day to set
> up
> > > our server. But I'm quite positive that it was installed from the
debian
> > > package. It isn't one the server: when I "locate Catalina.out" I don't
> get
> > > any result.
> > >
> > > -Message d'origine-
> > > De: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> > > Envoyé: mardi 17 juillet 2007 15:04
> > > À: Tomcat Users List
> > > Objet: Re: A lot of CPU used
> > >
> > > have you installed tomcat from debian package or from the binary
> > > distribution from tomcat.apache.org
> > >
> > > if f

RE: A lot of CPU used

2007-07-17 Thread Stéphane Hanser
When I type "echo $CATALINA_BASE" nothing appears but in
/etc/default/tomcat5.5 it reads

CATALINA_BASE=/var/lib/tomcat5.5

I did check and =/var/lib/tomcat5.5/logs is pointing to my
/var/log/tomcat5.5 directory

-Message d'origine-
De : Leon Rosenberg [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 17 juillet 2007 16:27
À : Tomcat Users List
Objet : Re: A lot of CPU used

have you checked where the $CATALINA_BASE is pointing to?
regards
Leon

P.S. you can contact me off-list if you want me to login to your box
and play on it a bit :-)

On 7/17/07, Stéphane Hanser <[EMAIL PROTECTED]> wrote:
> I did check. It seems good to me:
>
> elif [ "$1" = "start" ] ; then
>
>   shift
>   touch "$CATALINA_BASE"/logs/catalina.out
>   if [ "$1" = "-security" ] ; then
> if [ "$gcj" = "yes" ]; then
>   echo "The java-gcj-compat-dev environment currently doesn't support"
>   echo "a security manager. Please check the TOMCAT5_SECURITY
variable"
>   echo "in /etc/default/tomcat5.5."
>   exit 1
> fi
> echo "Using Security Manager"
> shift
> "$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
>   -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
>   -Djava.security.manager \
>   -Djava.security.policy=="$CATALINA_BASE"/conf/catalina.policy \
>   -Dcatalina.base="$CATALINA_BASE" \
>   -Dcatalina.home="$CATALINA_HOME" \
>   -Djava.io.tmpdir="$CATALINA_TMPDIR" \
>   org.apache.catalina.startup.Bootstrap "$@" start \
>   >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
>
>   if [ ! -z "$CATALINA_PID" ]; then
> echo $! > $CATALINA_PID
>   fi
>   else
> "$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
>   -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
>   -Dcatalina.base="$CATALINA_BASE" \
>   -Dcatalina.home="$CATALINA_HOME" \
>   -Djava.io.tmpdir="$CATALINA_TMPDIR" \
>   org.apache.catalina.startup.Bootstrap "$@" start \
>       >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
>
>   if [ ! -z "$CATALINA_PID" ]; then
> echo $! > $CATALINA_PID
>   fi
>   fi
>
>
>
> -Message d'origine-
> De: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> Envoyé: mardi 17 juillet 2007 15:37
> À: Tomcat Users List
> Objet: Re: A lot of CPU used
>
> you may want to check your catalina.sh (i hope you have one) where the
> output goes.
>
> On 7/17/07, Stéphane Hanser <[EMAIL PROTECTED]> wrote:
> > Lol. No I typed the right word. There is no file ended by .out on the
> > machine.
> >
> > -Message d'origine-
> > De: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> > Envoyé: mardi 17 juillet 2007 15:10
> > À: Tomcat Users List
> > Objet: Re: A lot of CPU used
> >
> > maybe because it is called catalina.out?
> > :-)
> >
> > On 7/17/07, Stéphane Hanser <[EMAIL PROTECTED]> wrote:
> > > I didn't install it myself. We hired a system admin for one day to set
> up
> > > our server. But I'm quite positive that it was installed from the
debian
> > > package. It isn't one the server: when I "locate Catalina.out" I don't
> get
> > > any result.
> > >
> > > -Message d'origine-
> > > De: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> > > Envoyé: mardi 17 juillet 2007 15:04
> > > À: Tomcat Users List
> > > Objet: Re: A lot of CPU used
> > >
> > > have you installed tomcat from debian package or from the binary
> > > distribution from tomcat.apache.org
> > >
> > > if first is the case your log file is probably somewhere under
/var/log.
> > >
> > > regards
> > > Leon
> > >
> > >
> > > P.S. take the distribution from tomcat.apache.org for safety.
> > >
> > > On 7/17/07, Stéphane Hanser <[EMAIL PROTECTED]> wrote:
> > > > Thanks, that seemes great. However I don't know why but there is no
> > > > catalina.out on my server. How should I configure tomcat in order to
> log
> > > in
> > > > this file?
> > > >
> > > > Stéphane
> > > >
> > > > -Message d'ori

RE: A lot of CPU used

2007-07-17 Thread Stéphane Hanser
I did check. It seems good to me:

elif [ "$1" = "start" ] ; then

  shift
  touch "$CATALINA_BASE"/logs/catalina.out
  if [ "$1" = "-security" ] ; then
if [ "$gcj" = "yes" ]; then
  echo "The java-gcj-compat-dev environment currently doesn't support"
  echo "a security manager. Please check the TOMCAT5_SECURITY variable"
  echo "in /etc/default/tomcat5.5."
  exit 1
fi
echo "Using Security Manager"
shift
"$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
  -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
  -Djava.security.manager \
  -Djava.security.policy=="$CATALINA_BASE"/conf/catalina.policy \
  -Dcatalina.base="$CATALINA_BASE" \
  -Dcatalina.home="$CATALINA_HOME" \
  -Djava.io.tmpdir="$CATALINA_TMPDIR" \
  org.apache.catalina.startup.Bootstrap "$@" start \
  >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &

  if [ ! -z "$CATALINA_PID" ]; then
echo $! > $CATALINA_PID
  fi
  else
"$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
  -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
  -Dcatalina.base="$CATALINA_BASE" \
  -Dcatalina.home="$CATALINA_HOME" \
  -Djava.io.tmpdir="$CATALINA_TMPDIR" \
  org.apache.catalina.startup.Bootstrap "$@" start \
  >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &

  if [ ! -z "$CATALINA_PID" ]; then
echo $! > $CATALINA_PID
  fi
  fi



-Message d'origine-
De : Leon Rosenberg [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 17 juillet 2007 15:37
À : Tomcat Users List
Objet : Re: A lot of CPU used

you may want to check your catalina.sh (i hope you have one) where the
output goes.

On 7/17/07, Stéphane Hanser <[EMAIL PROTECTED]> wrote:
> Lol. No I typed the right word. There is no file ended by .out on the
> machine.
>
> -Message d'origine-
> De: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> Envoyé: mardi 17 juillet 2007 15:10
> À: Tomcat Users List
> Objet: Re: A lot of CPU used
>
> maybe because it is called catalina.out?
> :-)
>
> On 7/17/07, Stéphane Hanser <[EMAIL PROTECTED]> wrote:
> > I didn't install it myself. We hired a system admin for one day to set
up
> > our server. But I'm quite positive that it was installed from the debian
> > package. It isn't one the server: when I "locate Catalina.out" I don't
get
> > any result.
> >
> > -Message d'origine-
> > De: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> > Envoyé: mardi 17 juillet 2007 15:04
> > À: Tomcat Users List
> > Objet: Re: A lot of CPU used
> >
> > have you installed tomcat from debian package or from the binary
> > distribution from tomcat.apache.org
> >
> > if first is the case your log file is probably somewhere under /var/log.
> >
> > regards
> > Leon
> >
> >
> > P.S. take the distribution from tomcat.apache.org for safety.
> >
> > On 7/17/07, Stéphane Hanser <[EMAIL PROTECTED]> wrote:
> > > Thanks, that seemes great. However I don't know why but there is no
> > > catalina.out on my server. How should I configure tomcat in order to
log
> > in
> > > this file?
> > >
> > > Stéphane
> > >
> > > -Message d'origine-
> > > De: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> > > Envoyé: mardi 17 juillet 2007 14:12
> > > À: Tomcat Users List
> > > Objet: Re: A lot of CPU used
> > >
> > > thread dump:
> > > kill -QUIT tomcat_pid
> > >
> > > regards
> > > Leon
> > >
> > > On 7/17/07, Stéphane Hanser <[EMAIL PROTECTED]> wrote:
> > > > Hello all,
> > > >
> > > >
> > > >
> > > > I'm running a web application on a tomcat 5.5 server (jvm 1.5,
debian
> 4)
> > > and
> > > > it uses a lot of CPU resources. It seems that the charge keeps
> growing,
> > > > regardless the number of users. So I suspect a non-ending routing
> > running
> > > > but I don't know how to locate it. So here is my question: is tomcat
> > able
> > > to
> > > > tell me which instructions are running? Otherwise, how may I find
the
> > > reason
> > > > of this charge?
> > > >
> > > >
> > > >
> > > > Thanks
> > 

RE: A lot of CPU used

2007-07-17 Thread Stéphane Hanser
Lol. No I typed the right word. There is no file ended by .out on the
machine.

-Message d'origine-
De : Leon Rosenberg [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 17 juillet 2007 15:10
À : Tomcat Users List
Objet : Re: A lot of CPU used

maybe because it is called catalina.out?
:-)

On 7/17/07, Stéphane Hanser <[EMAIL PROTECTED]> wrote:
> I didn't install it myself. We hired a system admin for one day to set up
> our server. But I'm quite positive that it was installed from the debian
> package. It isn't one the server: when I "locate Catalina.out" I don't get
> any result.
>
> -Message d'origine-
> De: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> Envoyé: mardi 17 juillet 2007 15:04
> À: Tomcat Users List
> Objet: Re: A lot of CPU used
>
> have you installed tomcat from debian package or from the binary
> distribution from tomcat.apache.org
>
> if first is the case your log file is probably somewhere under /var/log.
>
> regards
> Leon
>
>
> P.S. take the distribution from tomcat.apache.org for safety.
>
> On 7/17/07, Stéphane Hanser <[EMAIL PROTECTED]> wrote:
> > Thanks, that seemes great. However I don't know why but there is no
> > catalina.out on my server. How should I configure tomcat in order to log
> in
> > this file?
> >
> > Stéphane
> >
> > -Message d'origine-
> > De: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> > Envoyé: mardi 17 juillet 2007 14:12
> > À: Tomcat Users List
> > Objet: Re: A lot of CPU used
> >
> > thread dump:
> > kill -QUIT tomcat_pid
> >
> > regards
> > Leon
> >
> > On 7/17/07, Stéphane Hanser <[EMAIL PROTECTED]> wrote:
> > > Hello all,
> > >
> > >
> > >
> > > I'm running a web application on a tomcat 5.5 server (jvm 1.5, debian
4)
> > and
> > > it uses a lot of CPU resources. It seems that the charge keeps
growing,
> > > regardless the number of users. So I suspect a non-ending routing
> running
> > > but I don't know how to locate it. So here is my question: is tomcat
> able
> > to
> > > tell me which instructions are running? Otherwise, how may I find the
> > reason
> > > of this charge?
> > >
> > >
> > >
> > > Thanks
> > >
> > >
> > >
> > > S. Hanser
> > >
> > >
> >
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: A lot of CPU used

2007-07-17 Thread Stéphane Hanser
I didn't install it myself. We hired a system admin for one day to set up
our server. But I'm quite positive that it was installed from the debian
package. It isn't one the server: when I "locate Catalina.out" I don't get
any result.

-Message d'origine-
De : Leon Rosenberg [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 17 juillet 2007 15:04
À : Tomcat Users List
Objet : Re: A lot of CPU used

have you installed tomcat from debian package or from the binary
distribution from tomcat.apache.org

if first is the case your log file is probably somewhere under /var/log.

regards
Leon


P.S. take the distribution from tomcat.apache.org for safety.

On 7/17/07, Stéphane Hanser <[EMAIL PROTECTED]> wrote:
> Thanks, that seemes great. However I don't know why but there is no
> catalina.out on my server. How should I configure tomcat in order to log
in
> this file?
>
> Stéphane
>
> -Message d'origine-
> De: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> Envoyé: mardi 17 juillet 2007 14:12
> À: Tomcat Users List
> Objet: Re: A lot of CPU used
>
> thread dump:
> kill -QUIT tomcat_pid
>
> regards
> Leon
>
> On 7/17/07, Stéphane Hanser <[EMAIL PROTECTED]> wrote:
> > Hello all,
> >
> >
> >
> > I'm running a web application on a tomcat 5.5 server (jvm 1.5, debian 4)
> and
> > it uses a lot of CPU resources. It seems that the charge keeps growing,
> > regardless the number of users. So I suspect a non-ending routing
running
> > but I don't know how to locate it. So here is my question: is tomcat
able
> to
> > tell me which instructions are running? Otherwise, how may I find the
> reason
> > of this charge?
> >
> >
> >
> > Thanks
> >
> >
> >
> > S. Hanser
> >
> >
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: A lot of CPU used

2007-07-17 Thread Stéphane Hanser
Thanks, that seemes great. However I don't know why but there is no
catalina.out on my server. How should I configure tomcat in order to log in
this file?

Stéphane

-Message d'origine-
De : Leon Rosenberg [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 17 juillet 2007 14:12
À : Tomcat Users List
Objet : Re: A lot of CPU used

thread dump:
kill -QUIT tomcat_pid

regards
Leon

On 7/17/07, Stéphane Hanser <[EMAIL PROTECTED]> wrote:
> Hello all,
>
>
>
> I'm running a web application on a tomcat 5.5 server (jvm 1.5, debian 4)
and
> it uses a lot of CPU resources. It seems that the charge keeps growing,
> regardless the number of users. So I suspect a non-ending routing running
> but I don't know how to locate it. So here is my question: is tomcat able
to
> tell me which instructions are running? Otherwise, how may I find the
reason
> of this charge?
>
>
>
> Thanks
>
>
>
> S. Hanser
>
>

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



A lot of CPU used

2007-07-17 Thread Stéphane Hanser
Hello all,

 

I’m running a web application on a tomcat 5.5 server (jvm 1.5, debian 4) and
it uses a lot of CPU resources. It seems that the charge keeps growing,
regardless the number of users. So I suspect a non-ending routing running
but I don’t know how to locate it. So here is my question: is tomcat able to
tell me which instructions are running? Otherwise, how may I find the reason
of this charge?

 

Thanks

 

S. Hanser



RE: WebApp really slow, Where do I start looking?

2007-06-01 Thread Stéphane Hanser
You are right about synchronized blocks. I removed every synchronized
instruction for tests purposes and it "unleashed the cpu" ;)

It may be a problem with memory too. By disabling the cache of iBatis I
noticed an overloading of the CPU, which is understandable considering the
circumstance.

However, removing some synchronized blocks will cause concurrent access
issues when a user "mass clicks". Is it possible to configure tomcat to
queue one's requests instead of executing the in parallel ?

Thanks,

Stéphane H.

PS: thanks for the jmeter tip ;)


-Message d'origine-
De : David Delbecq [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 1 juin 2007 10:59
À : Tomcat Users List
Objet : Re: WebApp really slow, Where do I start looking?

Considering CPU usage, it is not
1) a java memory problem, if java memory was full, garbage collector
would start using lots of cpu
2) a time consuming java code.

It might be one of following
1) synchronized blocks in your code, that would prevent 2 simultaneoous
users from doing some operations.
2) use of SingleThreadModel, which has same effect as above
3) Network congestion, you server simply can't send the response to
client due to a too small network pipe (80 requests / second resulting
each in an about 20k response need a bandwidth of more than 12Mbits)
4) A too small physical memory on system. Eg you configure tomcat to use
1G memory but your server has only 512M available, resulting in memory
pagination (swap) and sleeping of java process during pagination process
(typically, on unix server, you will see a high % of CPU dedicated to
system instead of idle when this happen)


One way to test your server performance during heavy is to use apache
jmeter.


En l'instant précis du 01/06/07 10:48, Stéphane Hanser s'exprimait en
ces termes:
> Hello,
>
> I've been working on my project for months now, it is my first WebApp
> project. Yesterday, I deployed the project on my dedicated server and
> a soon as I reached about 80 users, the webapp became really slow.
> However, the cpu usage of the server was very low (never more than
> 15-20%). I have no idea of what is the cause of this slowness (server
> config, bad programming..).
>
> Can someone help me to diagnostic the problem? Where shoul I start
> looking?
>
> thanks in advance,
>
> Stéphane H.
>
>
>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



WebApp really slow, Where do I start looking?

2007-06-01 Thread Stéphane Hanser

Hello,

I've been working on my project for months now, it is my first WebApp 
project. Yesterday, I deployed the project on my dedicated server and a 
soon as I reached about 80 users, the webapp became really slow. 
However, the cpu usage of the server was very low (never more than 
15-20%). I have no idea of what is the cause of this slowness (server 
config, bad programming..).


Can someone help me to diagnostic the problem? Where shoul I start looking?

thanks in advance,

Stéphane H.





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]