Re: Over 70 instances of Tomcat after startup

2007-10-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ray, Ray Statham wrote: > procid=`ps ax | grep " -Dcatalina.base=${appname} " | grep -v grep | awk > '{print $1}'` Are you sure this is line 36? It seems like this wouldn't be the one failing, but one where you were trying to use the value of $proci

Re: Over 70 instances of Tomcat after startup

2007-10-08 Thread Konstantin Kolinko
It looks like "ps ax | grep ..." lists several processes for the same JVM, due to threads behavior is Linux, (see 1. http://tomcat.apache.org/faq/unix.html#ps 2. http://java.sun.com/developer/technicalArticles/Programming/linux/index.html (scroll down to "About Linux Threads") 3. http://publib.bou

Re: Over 70 instances of Tomcat after startup

2007-10-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ray, Ray Statham wrote: > I have an unusual problem with my previously stable container which now > generates over 70 instance on startup. What has changed? > This container has been working > correctly > for over 12 months, and I am assured by our

Re: Over 70 instances of Tomcat after startup

2007-10-08 Thread Ray Statham
Hi Ben, thanks for your very speedy reply. Please find the full file listing below: - #!/bin/bash APPS_BASE=/rel/apps OLD_PWD=`pwd` case "$1" in "") echo "$0 [all | app1 [app2]..[appN] ]"; exit 0; ;; all) echo "Starting all." for i in ${APPS_BASE}/[-A-Za-z0-9_]*

Re: Over 70 instances of Tomcat after startup

2007-10-08 Thread ben short
Probably worth posting the /rel/tomcat/bin/start_apps.sh script as it sounds like it could be suspect. On 10/8/07, Ray Statham <[EMAIL PROTECTED]> wrote: > Afternoon, > > This is my first posting to this list and after breifly checking the > archives I hope this question is not a duplicate: - > >

Over 70 instances of Tomcat after startup

2007-10-08 Thread Ray Statham
Afternoon, This is my first posting to this list and after breifly checking the archives I hope this question is not a duplicate: - I have an unusual problem with my previously stable container which now generates over 70 instance on startup. This container has been working correctly for ove