Re: How to monitor performance of tomcat

2014-05-26 Thread Randhir Singh
Hi,

I increased the Heap & PermGen memory as per trail mail but the performance
seemed to deteriorate. On the day I increased the memory in the morning,
the system hung 3 times in the day whereas the maximum times it has got
hang before is 2 times in a day. I changed the memory settings for Heap &
PermGen back to before when it hung again the next day, I reverted to the
old memory values.

The catalina.out showed the entries like below when I monitored it twice
after the system hung with the new memory values:



[ 22-May-2014 03:15:40 ] [ TRACE ] [http-30080-56] [ CHECK SESSION ] :
Inside doInit Method
May 22, 2014 3:16:14 PM org.zkoss.zk.ui.impl.UiEngineImpl handleError:1351
SEVERE: >>org.zkoss.zk.ui.UiException:
org.jboss.remoting.InvocationFailureException: Socket timed out.  Waited
30 milliseconds for response while calling on InvokerLocator [socket://
bssossapp01.snl.com:4173/?invokerDestructionDelay=5000&timeout=30];
nested exception is:
java.net.SocketTimeoutException: Read timed out
>>org.jboss.remoting.InvocationFailureException: Socket timed out.  Waited
30 milliseconds for response while calling on InvokerLocator [socket://
bssossapp01.snl.com:4173/?invokerDestructionDelay=5000&timeout=30];
nested exception is:
java.net.SocketTimeoutException: Read timed out
>>java.net.SocketTimeoutException: Read timed out
>> at java.net.SocketInputStream.socketRead0(Native Method)



I would be eager to respond in case of any clarification.

Requesting a reply to resolve this as the attempt to resolve this by
increasing Heap & PermGen memory has failed. I have worked on this issue a
lot and have been trying to interact with the experts on the forum.

Regards


On Wed, May 21, 2014 at 6:01 PM, Randhir Singh
wrote:

> Hi,
>
> There is a correction as JAVA_OPTS variable is defined in catalina.sh
> under $CATALINA_HOME/bin and we use $CATALINA_HOME/bin/startup.sh to start
> tomcat. $CATALINA_HOME/bin/startup.sh has the code like below ,
>
>
> --
> PRGDIR=`dirname "$PRG"`
> EXECUTABLE=catalina.sh
>
> # Check that target executable exists
> if $os400; then
>   # -x will Only work on the os400 if the files are:
>   # 1. owned by the user
>   # 2. owned by the PRIMARY group of the user
>   # this will not work if the user belongs in secondary groups
>   eval
> else
>   if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
> echo "Cannot find $PRGDIR/$EXECUTABLE"
> echo "The file is absent or does not have execute permission"
> echo "This file is needed to run this program"
> exit 1
>   fi
> fi
>
> --
>
> I had changed catalina.sh in our development environment like a week back
> and want to implement it in the production environment but I got this
> doubt. I feel catalina.sh is invoked by startup.sh but am not sure. I have
> already taken downtime for production tomorrow but I got this doubt whether
> changing the
>
> JAVA_OPTS="$JAVA_OPTS -Xms1303m -Xmx1303m -XX:MaxPermSize=256m
> -Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399" to
>
> JAVA_OPTS="$JAVA_OPTS -Xms2048m -Xmx2048m
> -XX:MaxPermSize=512m -Dcwom.bl.ip=127.0.0.1  -Dcwom.bl.port=1399"
>
> in catalina.sh would have the affect of increasing the heap & Permgen
> memory in Tomcat.
>
> I hope my query is clear as am quite anxious as I have a downtime
> scheduled tomorrow.
>
> Requesting a reply on priority.
>
>
>  wrote:
>
>> Thanks a lot for your detailed reply.
>>
>> The JAVA_OPTS variable in $CATALINA_HOME/bin/startup.sh has the value as:
>>
>> JAVA_OPTS="$JAVA_OPTS -Xms1303m -Xmx1303m -XX:MaxPermSize=256m
>> -Dcwom.bl.ip=127.0.0.1
>>  -Dcwom.bl.port=1399"
>>
>> I checked for free space on the VM instance with Red Hat Linux as the OS
>> on
>> which the Tomcat is hosted with a total memory of 19 GB, I found that
>> there
>> is around 8 GB of free space in the server.
>>
>> As per your inputs, I am planning to increase the memory allocation for
>> Heap
>> size an

Re: How to monitor performance of tomcat

2014-05-21 Thread Randhir Singh
Thanks Ognjen for your reply. My reply was intended to 2 different people
hence it repeated but anyway I would try to take care on this.

So now it is clear from your answer that catalina.sh is called from
startup.sh in a default installation.

Regards


On Thu, May 22, 2014 at 3:59 AM, Ognjen Blagojevic <
ognjen.d.blagoje...@gmail.com> wrote:

> Randhir,
>
> On 21.5.2014 14:31, Randhir Singh wrote:
>
>> I had changed catalina.sh in our development environment like a week back
>> and want to implement it in the production environment but I got this
>> doubt. I feel catalina.sh is invoked by startup.sh but am not sure. I have
>> already taken downtime for production tomorrow but I got this doubt
>> whether
>> changing the
>>
>
> 1. Don't post the same message twice. It makes volunteers on the list
> waste their time.
>
> 2. Don't top post. Bottom posting is the standard on this list.
>
> 3. Don't "request"/ People are volunteering here.
>
> 4. In default Tomcat instalation, catalina.sh is called from startup.sh.
>
> 5. Regardless of do you call startup.sh or catalina.sh, environment
> variables have the same meaning: JAVA_OPTS is used on Tomcat startup and
> Tomcat shutdown, while CATALINA_OPTS is only used on Tomcat startup. If you
> place -Xms2048m in JAVA_OPTS it will reserve 2 GB on Tomcat startup, and
> another 2 GB when you invoke Tomcat shutdown. That is waste of memory. Use
> CATALINA_OPTS instead.
>
> 6. It is not recommended to modify startup.sh or catalina.sh ever. All
> environment variables should be set in the file bin/setenv.sh.
>
> 7. (5.) and (6.) were already pointed out by Chris. Please read answers on
> the list carefully to show that you respect resources volunteers are
> allocating for you for free.
>
> 8. You may invoke "ps -fHA | grep Bootstrap" after you start Tomcat, to
> see if your CATALINA_OPTS reached JVM call.
>
> -Ognjen
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

-- 

*STL Disclaimer:*
The content of this message may be legally privileged and confidential and 
are for the use of the intended recipient(s) only. It should not be read, 
copied and used by anyone other than the intended recipient(s). If you have 
received this message in error, please immediately notify the sender, 
preserve its confidentiality and delete it. Before opening any attachments 
please check them for viruses and defects. No employee or agent is 
authorised to conclude any binding agreement on behalf of Sterlite 
Technologies Limited with another party by email without express written 
confirmation by authorised person. Visit us at www.sterlitetechnologies.com 
 Please consider environment before printing this email !






Re: How to monitor performance of tomcat

2014-05-21 Thread Randhir Singh
Hi,

There is a correction as JAVA_OPTS variable is defined in catalina.sh under
$CATALINA_HOME/bin and we use $CATALINA_HOME/bin/startup.sh to start
tomcat. $CATALINA_HOME/bin/startup.sh has the code like below ,

--
PRGDIR=`dirname "$PRG"`
EXECUTABLE=catalina.sh

# Check that target executable exists
if $os400; then
  # -x will Only work on the os400 if the files are:
  # 1. owned by the user
  # 2. owned by the PRIMARY group of the user
  # this will not work if the user belongs in secondary groups
  eval
else
  if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
echo "Cannot find $PRGDIR/$EXECUTABLE"
echo "The file is absent or does not have execute permission"
echo "This file is needed to run this program"
exit 1
  fi
fi
--

I had changed catalina.sh in our development environment like a week back
and want to implement it in the production environment but I got this
doubt. I feel catalina.sh is invoked by startup.sh but am not sure. I have
already taken downtime for production tomorrow but I got this doubt whether
changing the

JAVA_OPTS="$JAVA_OPTS -Xms1303m -Xmx1303m -XX:MaxPermSize=256m
-Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399" to

JAVA_OPTS="$JAVA_OPTS -Xms2048m -Xmx2048m
-XX:MaxPermSize=512m -Dcwom.bl.ip=127.0.0.1  -Dcwom.bl.port=1399"

in catalina.sh would have the affect of increasing the heap & Permgen
memory in Tomcat.

I hope my query is clear as am quite anxious as I have a downtime scheduled
tomorrow.

Requesting a reply on priority.


On Mon, May 5, 2014 at 3:37 PM, Randhir Singh wrote:

> Thanks Chris for your answer.
>
> I researched a lot and want to try out an option for OOME:
>
> The JAVA_OPTS variable in $CATALINA_HOME/bin/startup.sh has the value as:
>
> JAVA_OPTS="$JAVA_OPTS -Xms1303m -Xmx1303m -XX:MaxPermSize=256m
> -Dcwom.bl.ip=127.0.0.1
>  -Dcwom.bl.port=1399"
>
> I checked for free space on the VM instance with Red Hat Linux as the OS on
> which the Tomcat is hosted with a total memory of 19 GB, I found that there
> is around 8 GB of free space in the server.
>
> I am planning to increase the memory allocation for Heap size and PermGen
> size to almost double as below:
>
> JAVA_OPTS="$JAVA_OPTS -Xms2048m -Xmx2048m -XX:MaxPermSize=512m
> -Dcwom.bl.ip=127.0.0.1
>  -Dcwom.bl.port=1399"
>
> I hope, this should avoid the hang-up issues where Tomcat does not seem to
> respond. I plan to implement this in the UAT environment at first and see
> how it goes.
>
> There is another thing I wanted to try. We have RHEL 5.8 Beta (Tikanga)
> version and lot of updates from Red Hat are pending which can update the
> version to RHEL 5.10 (Tikanga). Would this patching help as lot of updates
> are pending?
>
> Regards
>
> -Original Message-
> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> Sent: Monday, April 28, 2014 6:46 PM
> To: Tomcat Users List
> Subject: Re: How to monitor performance of tomcat
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Randir,
>
> On 4/28/14, 6:46 AM, Randhir Singh wrote:
> > Thanks for your valuable inputs. I am a bit of a novice to this.
> > When this problem happens, it is quite a loss of face in front of the
> > users who are widely spread geographically. I checked the catalina.out
> > logs on the 2 days that the problem happened on 23rd & 25th April, the
> > findings are as below:
> >
> > 23rd April '14:
> >
> > The catalina.out log showed the message like,
> > --
> > --
> > ---
> >
> >
> Caused by: org.jboss.remoting.InvocationFailureException: Socket timed out.
> > Waited 30 milliseconds for response while calling on
> > InvokerLocator [socket:// > machine>:4173/?invokerDestructionDelay=5000&timeout=30];
> > nested exception is: java.net.SocketTimeoutException: Read timed out
> > --
> > --
> > ---
> >
> >  3 times among other exceptions in a span of around 2 minutes.
> >
> > 25th April '14:
> >
> > The errors captured in the logs were like,
> > --
> > ---

Re: How to monitor performance of tomcat

2014-05-21 Thread Randhir Singh
Hi,

There is a correction as JAVA_OPTS variable is defined in catalina.sh under
$CATALINA_HOME/bin and we use $CATALINA_HOME/bin/startup.sh to start
tomcat. $CATALINA_HOME/bin/startup.sh has the code like below ,

--
PRGDIR=`dirname "$PRG"`
EXECUTABLE=catalina.sh

# Check that target executable exists
if $os400; then
  # -x will Only work on the os400 if the files are:
  # 1. owned by the user
  # 2. owned by the PRIMARY group of the user
  # this will not work if the user belongs in secondary groups
  eval
else
  if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
echo "Cannot find $PRGDIR/$EXECUTABLE"
echo "The file is absent or does not have execute permission"
echo "This file is needed to run this program"
exit 1
  fi
fi
--

I had changed catalina.sh in our development environment like a week back
and want to implement it in the production environment but I got this
doubt. I feel catalina.sh is invoked by startup.sh but am not sure. I have
already taken downtime for production tomorrow but I got this doubt whether
changing the

JAVA_OPTS="$JAVA_OPTS -Xms1303m -Xmx1303m -XX:MaxPermSize=256m
-Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399" to

JAVA_OPTS="$JAVA_OPTS -Xms2048m -Xmx2048m
-XX:MaxPermSize=512m -Dcwom.bl.ip=127.0.0.1  -Dcwom.bl.port=1399"

in catalina.sh would have the affect of increasing the heap & Permgen
memory in Tomcat.

I hope my query is clear as am quite anxious as I have a downtime scheduled
tomorrow.

Requesting a reply on priority.


 wrote:

> Thanks a lot for your detailed reply.
>
> The JAVA_OPTS variable in $CATALINA_HOME/bin/startup.sh has the value as:
>
> JAVA_OPTS="$JAVA_OPTS -Xms1303m -Xmx1303m -XX:MaxPermSize=256m
> -Dcwom.bl.ip=127.0.0.1
>  -Dcwom.bl.port=1399"
>
> I checked for free space on the VM instance with Red Hat Linux as the OS on
> which the Tomcat is hosted with a total memory of 19 GB, I found that there
> is around 8 GB of free space in the server.
>
> As per your inputs, I am planning to increase the memory allocation for
> Heap
> size and PermGen size to almost double as below:
>
> JAVA_OPTS="$JAVA_OPTS -Xms2048m -Xmx2048m -XX:MaxPermSize=512m
> -Dcwom.bl.ip=127.0.0.1
>  -Dcwom.bl.port=1399"
>
> I hope, this should avoid the hang-up issues where Tomcat does not seem to
> respond.
>
> I plan to implement this in the UAT environment at first and see how it
> goes.
>
> Regards
>
> -Original Message-
> From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com]
> Sent: Monday, April 28, 2014 7:39 PM
> To: 'Randhir Singh'
> Subject: RE: How to monitor performance of tomcat
>
> > -Original Message-
> > From: Randhir Singh [mailto:randhir.si...@sterlite.com]
> > Sent: Monday, April 28, 2014 5:47 AM
> > To: Jeffrey Janner; Tomcat Users List
> > Subject: RE: How to monitor performance of tomcat
> >
> > Thanks for your valuable inputs. I am a bit of a novice to this. When
> > this problem happens, it is quite a loss of face in front of the users
> > who are widely spread geographically. I checked the catalina.out logs
> > on the 2 days that the problem happened on 23rd & 25th April, the
> > findings are as below:
> >
> > 23rd April '14:
> >
> > The catalina.out log showed the message like,
> > --
> > -
> > --
> > -
> > -
> > Caused by: org.jboss.remoting.InvocationFailureException: Socket timed
> > out.
> > Waited 30 milliseconds for response while calling on
> > InvokerLocator [socket:// > machine>:4173/?invokerDestructionDelay=5000&timeout=30]; nested
> > exception is:
> >   java.net.SocketTimeoutException: Read timed out
> > --
> > -
> > --
> > -
> > -
> >
> > 3 times among other exceptions in a span of around 2 minutes.
> >
> > 25th April '14:
> >
> > The errors captured in the logs were like,
> > --
> > -
> > --
> > -
> > -
> > java.lang.OutOfMe

Re: How to monitor performance of tomcat

2014-05-20 Thread Randhir Singh
Hi,

I had another point to add in this other than the reply sent by me in the
earlier mail is that if the JVM crashes as pointed out by you, would a JVM
process get started when Tomcat is started.

Also, how to check if 2 processes are sharing a common JVM. The 2 processes
referred to with the context of our environment would be JBoss & Tomcat.

I hope my query is clear.

Requesting a reply.


On Mon, Apr 28, 2014 at 4:16 PM, Randhir Singh
wrote:

> Thanks for your valuable inputs. I am a bit of a novice to this. When this
> problem happens, it is quite a loss of face in front of the users who are
> widely spread geographically. I checked the catalina.out logs on the 2 days
> that the problem happened on 23rd & 25th April, the findings are as below:
>
> 23rd April '14:
>
> The catalina.out log showed the message like,
>
> ---
> Caused by: org.jboss.remoting.InvocationFailureException: Socket timed out.
> Waited 30 milliseconds for response while calling on InvokerLocator
> [socket:// machine>:4173/?invokerDestructionDelay=5000&timeout=30]; nested
> exception is:
> java.net.SocketTimeoutException: Read timed out
>
> ---
>
> 3 times among other exceptions in a span of around 2 minutes.
>
> 25th April '14:
>
> The errors captured in the logs were like,
>
> ---
> java.lang.OutOfMemoryError: GC overhead limit exceeded
>
> ---
>
> 4 times among other exceptions in a span of around 2 minutes.
>
> Requesting a reply on this.
>
> Regards
>
> -Original Message-
> From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com]
> Sent: Monday, April 21, 2014 7:26 PM
> To: 'Tomcat Users List'
> Subject: RE: How to monitor performance of tomcat
>
> > -Original Message-
> > From: Randhir Singh [mailto:randhir.si...@sterlite.com]
> > Sent: Monday, April 21, 2014 5:17 AM
> > To: Tomcat Users List
> > Subject: RE: How to monitor performance of tomcat
> >
> > Hi,
> >
> > I wanted input from the experts on my query below that the port 8891
> > does not respond when the command,
> >
> > jconsole 10.101.17.79:8891
> >
> > is issued when the application hangs and stops responding.
> >
> > Requesting inputs so that the root cause analysis of this issue can be
> > found out.
> >
> > Regards
> >
> Randhir -
> Your actual first request in this thread was apparently a request for
> opinions on monitoring tools.
> This problem of actual hangs wasn't brought up until a week later.
> Here is what I've usually found when Tomcat stops responding and even the
> monitoring port is unreachable via jconsole and other tools: Your JVM has
> crashed for some reason.
> At this point, you need to refer to the Tomcat logs, your application logs,
> etc. in order to find the root cause.  If the JVM is still "running", try
> taking a couple of thread dumps and review them to find your root cause.
> Jeff
>
> --
> T ususcib, -mil uer-ususcib@tmct.paheor
> oraditonl omans,e-ai: ses-el@tmct.paheor
>

-- 

*STL Disclaimer:*
The content of this message may be legally privileged and confidential and 
are for the use of the intended recipient(s) only. It should not be read, 
copied and used by anyone other than the intended recipient(s). If you have 
received this message in error, please immediately notify the sender, 
preserve its confidentiality and delete it. Before opening any attachments 
please check them for viruses and defects. No employee or agent is 
authorised to conclude any binding agreement on behalf of Sterlite 
Technologies Limited with another party by email without express written 
confirmation by authorised person. Visit us at www.sterlitetechnologies.com 
 Please consider environment before printing this email !






RE: Tomcat dependency on application server

2014-05-17 Thread Randhir Singh
I have 1 observation. In our developmental environment, I killed the Tomcat
process and started the Tomcat it worked. But in the production environment,
starting Tomcat was not enough and I had to restart JBoss & Tomcat in
sequence for Tomcat to be up. Could it mean that JVM is crashing or
something because of OOME in Tomcat.

I could try to increase the heap & Permgen memory in Tomcat, would that
help?

Requesting a reply.

Regards

-Original Message-
From: Randhir Singh [mailto:randhir.si...@sterlite.com]
Sent: Saturday, May 17, 2014 11:00 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat dependency on application server

Thanks Chris for your answer. There were separate PID's on Linux for JBoss &
Tomcat and I killed the Tomcat process. Would killing a Tomcat process also
kill the JVM process? I had another related question of how to know the
number of JVM's running, I mean the count of the number of JVM's.

I hope, my query has been put across correctly.

Requesting a reply.

Regards

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Sent: Saturday, May 17, 2014 1:59 AM
To: Tomcat Users List
Subject: Re: Tomcat dependency on application server

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Randhir,

On 5/15/14, 3:17 AM, Randhir Singh wrote:
> Hi,
>
> We have JBoss as the application server & Tomcat as the web server in
> our production & developmental setup which is on Red Hat Linux 5.X. We
> have tomcat 6.X. My query is that if I need to restart tomcat, do I
> need to restart JBoss & Tomcat both or just restarting Tomcat would be
> enough. I am asking this query because I had killed the tomcat process
> using kill -9 and while restarting tomcat it was not starting but when
> I killed JBoss & tomcat and then restarted, Tomcat was up.
>
> I hope my query is clear whether Tomcat is dependent on JBoss.

I'm fairly sure that there is only a single JVM for JBoss/Tomcat. If you
killed one, you've killed the other.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTdnUaAAoJEBzwKT+lPKRYnH8QALfeHn4XVXB6KANb0hmAPEL3
7pNRaUW0AypQQjujzr7X4DKv3MOnMwWfIaiVcazNbtC7j+W3Mi6khksZIq1cz0At
o9K0CDdJhAg5be9a68T7E5ko4mdy+rjX2ZsuX2LDdp5wyQaYWEXRWd3+hfBL2Gk7
D+225vxnMUeB9gHLaVUQ4k/3TOZvO/DYT9TCnxOlviP1+QEek5chN6a9XDJpQKpg
O/EVBudYmDMLu9QKbOJJ5jomKUUa/VPsjhwz4O32+2Zok5VWLIrct5joF3r2ej+p
5RfHLnijRcCX5QkZOAYM9mdvFuFb1+lNAUGKPJwZU47SI7delyJZwxqGJYmo495e
Q2nGMqepgXlQhOtwuTMdSh9gFV6LqJeaWcW6ZpyMNXbkNSSRSIy3hgcZqRycsSUa
dvBRg6j57MMhNiCDx9IVtxF+OqKbiiLNdb9tJRArSXdoSx3a1EYbRbmye3xWbrUv
SYadbr14KBqTXxaK2qJBb7E3j/fn1J5NKEARQbM/ML5Q/0TaNIRMlmjbOt2yccYG
pNRtC8FRkHWaN3eYtpM0vMNCZ/Cl/atzr3StoN/EX5bWjba6eaaXBaeKdG3FypyY
jL0nQu7P0Ir1ASrcxlQeN5snLmI2G4AoFjenOhEsCDDQKixSiryzZRR6ZVqCPZ/k
Bi3P3ZPYqngg8oU6s6b6
=bJS6
-END PGP SIGNATURE-

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

-- 

*STL Disclaimer:*
The content of this message may be legally privileged and confidential and 
are for the use of the intended recipient(s) only. It should not be read, 
copied and used by anyone other than the intended recipient(s). If you have 
received this message in error, please immediately notify the sender, 
preserve its confidentiality and delete it. Before opening any attachments 
please check them for viruses and defects. No employee or agent is 
authorised to conclude any binding agreement on behalf of Sterlite 
Technologies Limited with another party by email without express written 
confirmation by authorised person. Visit us at www.sterlitetechnologies.com 
 Please consider environment before printing this email !





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



RE: Tomcat dependency on application server

2014-05-16 Thread Randhir Singh
Thanks Chris for your answer. There were separate PID's on Linux for JBoss &
Tomcat and I killed the Tomcat process. Would killing a Tomcat process also
kill the JVM process? I had another related question of how to know the
number of JVM's running, I mean the count of the number of JVM's.

I hope, my query has been put across correctly.

Requesting a reply.

Regards

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Sent: Saturday, May 17, 2014 1:59 AM
To: Tomcat Users List
Subject: Re: Tomcat dependency on application server

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Randhir,

On 5/15/14, 3:17 AM, Randhir Singh wrote:
> Hi,
>
> We have JBoss as the application server & Tomcat as the web server in
> our production & developmental setup which is on Red Hat Linux 5.X. We
> have tomcat 6.X. My query is that if I need to restart tomcat, do I
> need to restart JBoss & Tomcat both or just restarting Tomcat would be
> enough. I am asking this query because I had killed the tomcat process
> using kill -9 and while restarting tomcat it was not starting but when
> I killed JBoss & tomcat and then restarted, Tomcat was up.
>
> I hope my query is clear whether Tomcat is dependent on JBoss.

I'm fairly sure that there is only a single JVM for JBoss/Tomcat. If you
killed one, you've killed the other.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTdnUaAAoJEBzwKT+lPKRYnH8QALfeHn4XVXB6KANb0hmAPEL3
7pNRaUW0AypQQjujzr7X4DKv3MOnMwWfIaiVcazNbtC7j+W3Mi6khksZIq1cz0At
o9K0CDdJhAg5be9a68T7E5ko4mdy+rjX2ZsuX2LDdp5wyQaYWEXRWd3+hfBL2Gk7
D+225vxnMUeB9gHLaVUQ4k/3TOZvO/DYT9TCnxOlviP1+QEek5chN6a9XDJpQKpg
O/EVBudYmDMLu9QKbOJJ5jomKUUa/VPsjhwz4O32+2Zok5VWLIrct5joF3r2ej+p
5RfHLnijRcCX5QkZOAYM9mdvFuFb1+lNAUGKPJwZU47SI7delyJZwxqGJYmo495e
Q2nGMqepgXlQhOtwuTMdSh9gFV6LqJeaWcW6ZpyMNXbkNSSRSIy3hgcZqRycsSUa
dvBRg6j57MMhNiCDx9IVtxF+OqKbiiLNdb9tJRArSXdoSx3a1EYbRbmye3xWbrUv
SYadbr14KBqTXxaK2qJBb7E3j/fn1J5NKEARQbM/ML5Q/0TaNIRMlmjbOt2yccYG
pNRtC8FRkHWaN3eYtpM0vMNCZ/Cl/atzr3StoN/EX5bWjba6eaaXBaeKdG3FypyY
jL0nQu7P0Ir1ASrcxlQeN5snLmI2G4AoFjenOhEsCDDQKixSiryzZRR6ZVqCPZ/k
Bi3P3ZPYqngg8oU6s6b6
=bJS6
-END PGP SIGNATURE-

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

-- 

*STL Disclaimer:*
The content of this message may be legally privileged and confidential and 
are for the use of the intended recipient(s) only. It should not be read, 
copied and used by anyone other than the intended recipient(s). If you have 
received this message in error, please immediately notify the sender, 
preserve its confidentiality and delete it. Before opening any attachments 
please check them for viruses and defects. No employee or agent is 
authorised to conclude any binding agreement on behalf of Sterlite 
Technologies Limited with another party by email without express written 
confirmation by authorised person. Visit us at www.sterlitetechnologies.com 
 Please consider environment before printing this email !





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



Tomcat dependency on application server

2014-05-16 Thread Randhir Singh
Hi,

We have JBoss as the application server & Tomcat as the web server in our
production & developmental setup which is on Red Hat Linux 5.X. We have
tomcat 6.X. My query is that if I need to restart tomcat, do I need to
restart JBoss & Tomcat both or just restarting Tomcat would be enough. I am
asking this query because I had killed the tomcat process using kill -9 and
while restarting tomcat it was not starting but when I killed JBoss &
tomcat and then restarted, Tomcat was up.

I hope my query is clear whether Tomcat is dependent on JBoss.

Regards

-- 

*STL Disclaimer:*
The content of this message may be legally privileged and confidential and 
are for the use of the intended recipient(s) only. It should not be read, 
copied and used by anyone other than the intended recipient(s). If you have 
received this message in error, please immediately notify the sender, 
preserve its confidentiality and delete it. Before opening any attachments 
please check them for viruses and defects. No employee or agent is 
authorised to conclude any binding agreement on behalf of Sterlite 
Technologies Limited with another party by email without express written 
confirmation by authorised person. Visit us at www.sterlitetechnologies.com 
 Please consider environment before printing this email !






RE: How to monitor performance of tomcat

2014-05-06 Thread Randhir Singh
Thanks Chris for your answer.

There is around 8 GB of free memory and not disk.

Hope, the change in the Xms, Xmx & XX:MaxPermSize helps.

Any further inputs would be appreciated.

Thanks

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Sent: Monday, May 05, 2014 9:33 PM
To: Tomcat Users List
Subject: Re: How to monitor performance of tomcat

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Randir,

On 5/5/14, 6:07 AM, Randhir Singh wrote:
> Thanks Chris for your answer.
>
> I researched a lot and want to try out an option for OOME:
>
> The JAVA_OPTS variable in $CATALINA_HOME/bin/startup.sh has the value
> as:

You should use CATALINA_OPTS. Read the comments at the top of
bin/catalina.sh to see what the difference is.

Also, you should set these environment variables in bin/setenv.sh (which you
may have to create) instead of modifying startup.sh directly. It will make
upgrades much easier.

> JAVA_OPTS="$JAVA_OPTS -Xms1303m -Xmx1303m -XX:MaxPermSize=256m
> -Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399"
>
> I checked for free space on the VM instance with Red Hat Linux as the
> OS on which the Tomcat is hosted with a total memory of 19 GB, I found
> that there is around 8 GB of free space in the server.

8GiB free memory or disk?

> I am planning to increase the memory allocation for Heap size and
> PermGen size to almost double as below:
>
> JAVA_OPTS="$JAVA_OPTS -Xms2048m -Xmx2048m -XX:MaxPermSize=512m
> -Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399"
>
> I hope, this should avoid the hang-up issues where Tomcat does not
> seem to respond. I plan to implement this in the UAT environment at
> first and see how it goes.

If the problem is GC-related, then the only conditions under which things
will improve by increasing memory are if you were running right under the
heap ceiling you had imposed upon yourself and GC had to run a lot in order
to keep up. Remember that GC-time is related to the number of useful
references in the heap, so if you have a large heap with lots of long-lived
objects, GC will work "harder" (to a point, with generational GC).

> There is another thing I wanted to try. We have RHEL 5.8 Beta
> (Tikanga) version and lot of updates from Red Hat are pending which
> can update the version to RHEL 5.10 (Tikanga). Would this patching
> help as lot of updates are pending?

I have no idea. I know virtually nothing about RHEL and what changes will be
coming.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTZ7YXAAoJEBzwKT+lPKRY0lEP/RZXARhKvU5dBelQYELwWHGh
TJnDgBIJTK/M7+OhheMqN14M+EXK0aodPNhC1aCTtotdey+2V1WcQoqitcMDjOKj
dyVE5jvwkoEFgWJ32MjpHflFufup4IzEpx+Q/sXLCqnBXwVdSSAOJiPTfdU9iO9c
i4W6i8twQXvbDn1GKNBDTwfKAZGAVakVV7JeH2ollQkUvyBkdEkKHmZKWmiFdNxK
rvZSe3mdHsmOmsenMzzlcAZh4JD9QKX/0TQPzpP8sKoxfpCS0rcQSoYvBWY2rYul
gwiYm2PlCRLw+wpPdSA13CAQLRio51LQA1VTVMhzOtGOUKWIvJEba94lEZ1IWIsL
zn1yn8CTN7czY7CoL0N/lsJBCg9Jnrut4W0e9Z8vhY1lz0pexGmwv58pdnAT69NC
5A45wOY5VxJVGfNRNbMh2sbdi0MloF6EsbdZipwMpyfBCf3ulL2c1Am/PmnoxSQn
lTnEeoiuJcaOJjBFU/KVl2I77Hn1/QuJEflCDm9fm85CMbIWHHJCmbR9yVdS/yPi
O6jjEaVGNPNI5pwtoEiNT+78G0UDyDIfbFjIuGS2Gz3cNH2WW6tiYw+Ivy5aciAg
iIpdxVFcdL6ZoXr6eJEkvfyUwv85z9DonK3SkoRtNVVKPXNHQNLlpl6WHfCcHd/1
Dc3HguzxCOYu2+2jsuZg
=tcDx
-END PGP SIGNATURE-

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

-- 

*STL Disclaimer:*
The content of this message may be legally privileged and confidential and 
are for the use of the intended recipient(s) only. It should not be read, 
copied and used by anyone other than the intended recipient(s). If you have 
received this message in error, please immediately notify the sender, 
preserve its confidentiality and delete it. Before opening any attachments 
please check them for viruses and defects. No employee or agent is 
authorised to conclude any binding agreement on behalf of Sterlite 
Technologies Limited with another party by email without express written 
confirmation by authorised person. Visit us at www.sterlitetechnologies.com 
 Please consider environment before printing this email !





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



RE: How to monitor performance of tomcat

2014-05-05 Thread Randhir Singh
Thanks Chris for your answer.

I researched a lot and want to try out an option for OOME:

The JAVA_OPTS variable in $CATALINA_HOME/bin/startup.sh has the value as:

JAVA_OPTS="$JAVA_OPTS -Xms1303m -Xmx1303m -XX:MaxPermSize=256m
-Dcwom.bl.ip=127.0.0.1
 -Dcwom.bl.port=1399"

I checked for free space on the VM instance with Red Hat Linux as the OS on
which the Tomcat is hosted with a total memory of 19 GB, I found that there
is around 8 GB of free space in the server.

I am planning to increase the memory allocation for Heap size and PermGen
size to almost double as below:

JAVA_OPTS="$JAVA_OPTS -Xms2048m -Xmx2048m -XX:MaxPermSize=512m
-Dcwom.bl.ip=127.0.0.1
 -Dcwom.bl.port=1399"

I hope, this should avoid the hang-up issues where Tomcat does not seem to
respond. I plan to implement this in the UAT environment at first and see
how it goes.

There is another thing I wanted to try. We have RHEL 5.8 Beta (Tikanga)
version and lot of updates from Red Hat are pending which can update the
version to RHEL 5.10 (Tikanga). Would this patching help as lot of updates
are pending?

Regards

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Sent: Monday, April 28, 2014 6:46 PM
To: Tomcat Users List
Subject: Re: How to monitor performance of tomcat

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Randir,

On 4/28/14, 6:46 AM, Randhir Singh wrote:
> Thanks for your valuable inputs. I am a bit of a novice to this.
> When this problem happens, it is quite a loss of face in front of the
> users who are widely spread geographically. I checked the catalina.out
> logs on the 2 days that the problem happened on 23rd & 25th April, the
> findings are as below:
>
> 23rd April '14:
>
> The catalina.out log showed the message like,
> --
> --
> ---
>
>
Caused by: org.jboss.remoting.InvocationFailureException: Socket timed out.
> Waited 30 milliseconds for response while calling on
> InvokerLocator [socket:// machine>:4173/?invokerDestructionDelay=5000&timeout=30];
> nested exception is: java.net.SocketTimeoutException: Read timed out
> --
> --
> ---
>
>  3 times among other exceptions in a span of around 2 minutes.
>
> 25th April '14:
>
> The errors captured in the logs were like,
> --
> --
> ---
>
>
java.lang.OutOfMemoryError: GC overhead limit exceeded
> --
> --
> ---
>
>  4 times among other exceptions in a span of around 2 minutes.
>
> Requesting a reply on this.

It sounds like you have all kinds of problems:

1. Bad performance under unspecified conditions 2. Application hang under
unspecified conditions 3. catalina.out file grows quickly, may fill
filesystem 4. Long timeouts on the server-side during some unspecified
operation (I don't know what an InvokerLocator is) 5. OOME

It seems to me that you should focus on one of these problems (probably the
OOME) and get that fixed, first. You may find it is the root of all other
problems.

This community can only help you so much with so little information.
You may have to hire someone to help you through this process.

- -chris

> -Original Message- From: Jeffrey Janner
> [mailto:jeffrey.jan...@polydyne.com] Sent: Monday, April 21, 2014
> 7:26 PM To: 'Tomcat Users List' Subject: RE: How to monitor
> performance of tomcat
>
>> -Original Message- From: Randhir Singh
>> [mailto:randhir.si...@sterlite.com] Sent: Monday, April 21, 2014
>> 5:17 AM To: Tomcat Users List Subject: RE: How to monitor performance
>> of tomcat
>>
>> Hi,
>>
>> I wanted input from the experts on my query below that the port
>> 8891 does not respond when the command,
>>
>> jconsole 10.101.17.79:8891
>>
>> is issued when the application hangs and stops responding.
>>
>> Requesting inputs so that the root cause analysis of this issue can
>> be found out.
>>
>> Regards
>>
> Randhir - Your actual first request in this thread was apparently a
> request for opinions on monitoring tools. This problem of actual hangs
> wasn't brought up until a week later. Here is what I've usually found
> when Tomcat stops responding and even the monitoring port

RE: How to monitor performance of tomcat

2014-05-03 Thread Randhir Singh
Thanks a lot for your detailed reply.

The JAVA_OPTS variable in $CATALINA_HOME/bin/startup.sh has the value as:

JAVA_OPTS="$JAVA_OPTS -Xms1303m -Xmx1303m -XX:MaxPermSize=256m
-Dcwom.bl.ip=127.0.0.1
 -Dcwom.bl.port=1399"

I checked for free space on the VM instance with Red Hat Linux as the OS on
which the Tomcat is hosted with a total memory of 19 GB, I found that there
is around 8 GB of free space in the server.

As per your inputs, I am planning to increase the memory allocation for Heap
size and PermGen size to almost double as below:

JAVA_OPTS="$JAVA_OPTS -Xms2048m -Xmx2048m -XX:MaxPermSize=512m
-Dcwom.bl.ip=127.0.0.1
 -Dcwom.bl.port=1399"

I hope, this should avoid the hang-up issues where Tomcat does not seem to
respond.

I plan to implement this in the UAT environment at first and see how it
goes.

Regards

-Original Message-
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com]
Sent: Monday, April 28, 2014 7:39 PM
To: 'Randhir Singh'
Subject: RE: How to monitor performance of tomcat

> -----Original Message-
> From: Randhir Singh [mailto:randhir.si...@sterlite.com]
> Sent: Monday, April 28, 2014 5:47 AM
> To: Jeffrey Janner; Tomcat Users List
> Subject: RE: How to monitor performance of tomcat
>
> Thanks for your valuable inputs. I am a bit of a novice to this. When
> this problem happens, it is quite a loss of face in front of the users
> who are widely spread geographically. I checked the catalina.out logs
> on the 2 days that the problem happened on 23rd & 25th April, the
> findings are as below:
>
> 23rd April '14:
>
> The catalina.out log showed the message like,
> --
> -
> --
> -
> -
> Caused by: org.jboss.remoting.InvocationFailureException: Socket timed
> out.
> Waited 30 milliseconds for response while calling on
> InvokerLocator [socket:// machine>:4173/?invokerDestructionDelay=5000&timeout=30]; nested
> exception is:
>   java.net.SocketTimeoutException: Read timed out
> --
> -
> --
> -
> -
>
> 3 times among other exceptions in a span of around 2 minutes.
>
> 25th April '14:
>
> The errors captured in the logs were like,
> --
> -
> --
> -
> -
> java.lang.OutOfMemoryError: GC overhead limit exceeded

This error specifically means that the JVM is basically spending all of its
time doing garbage collection and not really getting any significant amount
of memory back for its efforts.  The end user experiences this usually as a
hung system.  It might eventually come back or it might end up with a
different, more severe, OOM error.
There are lots of various causes for this: too small memory allocation; too
much load; an activity generating a lot of objects, most of which persist
for a long time; memory leaks; or a combination of the above.
How to address it?
a) Profile what parts of the app are being used with this occurs and have
the dev team look at what could be causing the problem.  There might be a
better way to perform the action requested.
b) Increase the available memory (double it or more).  This is only a
band-aid and you may still have the problem, but less often. Have the dev
team look for memory leaks.
c) Anyone else with ideas?
Jeff

> --
> -
> --
> -
> -
>
> 4 times among other exceptions in a span of around 2 minutes.
>
> Requesting a reply on this.
>
> Regards

__
Confidentiality Notice:  This Transmission (including any attachments) may
contain information that is privileged, confidential, and exempt from
disclosure under applicable law.  If the reader of this message is not the
intended recipient you are hereby notified that any dissemination,
distribution, or copying of this communication is strictly prohibited.

If you have received this transmission in error, please immediately reply to
the sender or telephone (512) 343-9100 and delete this transmission from
your system.

-- 

*STL Disclaimer:*
The content of this message may be legally privileged and confidential and 
are for the use of the intended recipient(s) only. It should not be read, 
copied and used by anyone other than the intended recipient(s). If you have 
received this message in error, please immediately notify the sender

RE: How to specify log rotation in Tomcat 6

2014-05-03 Thread Randhir Singh
Thanks for your answer.

I can try truncating Tomcat on our UAT environment and see if there are any
issues.

Regards

-Original Message-
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com]
Sent: Monday, April 28, 2014 7:02 PM
To: Tomcat Users List
Subject: Re: How to specify log rotation in Tomcat 6

2014-04-28 15:15 GMT+04:00 Randhir Singh :
> Thanks a lot Chris for your answer. I would stick to this subject line
> among the others. I have some important questions based on this:
>
> 1) Does Tomcat start giving problems if catalina.out becomes more than 2
> GB?

Tomcat - no.

There were reports of the file growing up to 50 Gb and more on some systems.

If it fills all available space on the hard drive, there may be problems
coming from OS that are likely to affect Tomcat.

> 2) Can this catalina.out file be truncated on the running Tomcat or
> should the Tomcat be stopped, the catalina.out truncated and then the
> Tomcat is started.

It can be.

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

-- 

*STL Disclaimer:*
The content of this message may be legally privileged and confidential and 
are for the use of the intended recipient(s) only. It should not be read, 
copied and used by anyone other than the intended recipient(s). If you have 
received this message in error, please immediately notify the sender, 
preserve its confidentiality and delete it. Before opening any attachments 
please check them for viruses and defects. No employee or agent is 
authorised to conclude any binding agreement on behalf of Sterlite 
Technologies Limited with another party by email without express written 
confirmation by authorised person. Visit us at www.sterlitetechnologies.com 
Please consider environment before printing this email !





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



RE: How to specify log rotation in Tomcat 6

2014-05-03 Thread Randhir Singh
Thanks Chris for your answer.

1) For the 1st point whether Tomcat starts giving problems if catalina.out
becomes more than 2GB, I had a apprehension about it and hence my query.
2) For the 2nd point, I can try truncating tomcat on our UAT environment and
see if there are any problems as it would be risky to try it on our
production.

Regards

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Sent: Monday, April 28, 2014 6:47 PM
To: Tomcat Users List
Subject: Re: How to specify log rotation in Tomcat 6

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Randir,

On 4/28/14, 7:15 AM, Randhir Singh wrote:
> Thanks a lot Chris for your answer. I would stick to this subject line
> among the others. I have some important questions based on
> this:
>
> 1) Does Tomcat start giving problems if catalina.out becomes more than
> 2 GB?

Are there any indications that there will be problems?

> 2) Can this catalina.out file be truncated on the running Tomcat or
> should the Tomcat be stopped, the catalina.out truncated and then the
> Tomcat is started.

Did you try it either way?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTXlTTAAoJEBzwKT+lPKRY57oP/RZLHRl1gKJcYX9aSX4Dd85a
O67AKSyapy6pYvHzGEooxSuA5XxY+3aZLZOQOb7wQ0sPPVIRMWwh/viu3+AT0gyn
dlp7rRkdFOLdFuQpoNS6PACQastNYwJIuBbwSuEMgmWOAZOcSZJSWcbkVr5ZQMzC
UHBczlDxxFIO6ORMf8yEqp6uh1f3+rbLeKT0GiVodKYZpOsEC2eAgcGXd5GHg7YX
n+LGhorrvRTsyo7knkLSXbkygIYjoitnMVLJM9yTCW9LRNlKKOxaDMuP3VzsE/NP
vHUnRUzZRI4LeBC51xfqBrXBcxzJm1ReEzz+wLJK/ssiPT6WwOy6mLAcaeRq/p0w
39TthboPtfbK5E8U3D1qg0QHE/bu/XXS63YVbvnGH4OhFNDmrXjJh/pte1xNyeRc
cIY+Nb20MHJErhHFuoLRnc+qO+UjTTzJBSQwu1pmJnIB6EUC/Lb3bnfWE6kEomfv
Ws8kNAplpKiN5kCJHJflg6Vu1jzLmw0C7/kI3dfS9kXaznMTGNz5FvoRs9GDbzcE
kYqDZlhaOTfaDBl0N9/A4f+qX92PS3w3Z0StShlonTx7bMegmXbeRmInSadWEZrA
kCLRA9V8jsILnkhh+qnWzXX6ovZXWNrdPA/8mfhxJaF2Y6RRyt43De6TJg2h8qc+
MTWw/e/r8uc7Kg06x7l2
=3rg8
-END PGP SIGNATURE-

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

-- 

*STL Disclaimer:*
The content of this message may be legally privileged and confidential and 
are for the use of the intended recipient(s) only. It should not be read, 
copied and used by anyone other than the intended recipient(s). If you have 
received this message in error, please immediately notify the sender, 
preserve its confidentiality and delete it. Before opening any attachments 
please check them for viruses and defects. No employee or agent is 
authorised to conclude any binding agreement on behalf of Sterlite 
Technologies Limited with another party by email without express written 
confirmation by authorised person. Visit us at www.sterlitetechnologies.com 
Please consider environment before printing this email !





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



RE: How to specify log rotation in Tomcat 6

2014-04-28 Thread Randhir Singh
Thanks a lot Chris for your answer. I would stick to this subject line among
the others. I have some important questions based on this:

1) Does Tomcat start giving problems if catalina.out becomes more than 2 GB?
2) Can this catalina.out file be truncated on the running Tomcat or should
the Tomcat be stopped, the catalina.out truncated and then the Tomcat is
started.

I hope, my queries are clear.

Requesting a reply on this.

Regards

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Sent: Tuesday, April 22, 2014 8:08 PM
To: Tomcat Users List
Subject: Re: How to specify log rotation in Tomcat 6

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Randhir,

On 4/22/14, 10:15 AM, Randhir Singh wrote:
> I want to know how to specify log rotation in Tomcat 6. I tried
> searching for information but I could not find anything substantial.
> The mount point on which Tomcat is placed is 99% and I wanted to
> understand the log rotation.

http://tomcat.apache.org/tomcat-6.0-doc/logging.html
??

> Humbly requesting a revert on this as it a immediate problem.

Revert what?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTVn7BAAoJEBzwKT+lPKRYjWgP/RYnZ4IVGy3FfenvMDRJCOsU
8trdUQyxw1qg8v1KIU49wFdq/C2+dtzYH/q2HHbtvAVKl6rVkjj4Kahba9TN76sS
NLS/aol2NHyk8TSN9pmoNyiCGsN/xi55OoM1y7MAYtWXtfzGEofV5HvqBUhbwUOr
q90+0FH5SuRWpLzjNtKegHWYc9ulguz20CvwQVn/lruwKU6pfM4e1bZbMkcIVRZC
XnqKgY9EzZ/LPPxpwNZbknx57hYtMgLIo+sQ5+slJ+OUloDoTWQVbbRToQu6MzFO
609zMS+YociuecUt9Ma5hwoW+F7/aCB8Vr9jvP3coVz2+qut/PzK4Zo7JzLXia9W
lTtQtA7hRknOBPMsn60fiqcvh1V5JnYRLE6YwlPKyDMIXq7StyplyW69OzniW32Y
b24aGMlzM4O5GrYrAKCJ+e18G41eLFtw17l7887Q7boyNnwNdUf+naUdsFNyQEHi
rcuADt8aBDj97F6dfVJYj7wzruSMQsiOV5GVoOVQlHmXboV/PUz0Rq+Vr++kr7VQ
ud+s0z3D3hc6+kBCIsERW69UBBPh6uyNO+/mPkFcWJ4f/4tx6GbfYvP8a/kVxnBK
r/GROPXeX/wbyLhGV1SgZXOZyNf8/3AgNqOojts/H3UVeiZFcb0YCmFzJ4DlAbQP
0VLRkQJagbn3w3/quKA5
=PMTj
-END PGP SIGNATURE-

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

-- 

*STL Disclaimer:*
The content of this message may be legally privileged and confidential and 
are for the use of the intended recipient(s) only. It should not be read, 
copied and used by anyone other than the intended recipient(s). If you have 
received this message in error, please immediately notify the sender, 
preserve its confidentiality and delete it. Before opening any attachments 
please check them for viruses and defects. No employee or agent is 
authorised to conclude any binding agreement on behalf of Sterlite 
Technologies Limited with another party by email without express written 
confirmation by authorised person. Visit us at www.sterlitetechnologies.com 
 Please consider environment before printing this email !





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



RE: How to monitor performance of tomcat

2014-04-28 Thread Randhir Singh
Thanks for your valuable inputs. I am a bit of a novice to this. When this
problem happens, it is quite a loss of face in front of the users who are
widely spread geographically. I checked the catalina.out logs on the 2 days
that the problem happened on 23rd & 25th April, the findings are as below:

23rd April '14:

The catalina.out log showed the message like,
---
Caused by: org.jboss.remoting.InvocationFailureException: Socket timed out.
Waited 30 milliseconds for response while calling on InvokerLocator
[socket://:4173/?invokerDestructionDelay=5000&timeout=30]; nested
exception is:
java.net.SocketTimeoutException: Read timed out
---

3 times among other exceptions in a span of around 2 minutes.

25th April '14:

The errors captured in the logs were like,
---
java.lang.OutOfMemoryError: GC overhead limit exceeded
---

4 times among other exceptions in a span of around 2 minutes.

Requesting a reply on this.

Regards

-Original Message-
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com]
Sent: Monday, April 21, 2014 7:26 PM
To: 'Tomcat Users List'
Subject: RE: How to monitor performance of tomcat

> -Original Message-
> From: Randhir Singh [mailto:randhir.si...@sterlite.com]
> Sent: Monday, April 21, 2014 5:17 AM
> To: Tomcat Users List
> Subject: RE: How to monitor performance of tomcat
>
> Hi,
>
> I wanted input from the experts on my query below that the port 8891
> does not respond when the command,
>
> jconsole 10.101.17.79:8891
>
> is issued when the application hangs and stops responding.
>
> Requesting inputs so that the root cause analysis of this issue can be
> found out.
>
> Regards
>
Randhir -
Your actual first request in this thread was apparently a request for
opinions on monitoring tools.
This problem of actual hangs wasn't brought up until a week later.
Here is what I've usually found when Tomcat stops responding and even the
monitoring port is unreachable via jconsole and other tools: Your JVM has
crashed for some reason.
At this point, you need to refer to the Tomcat logs, your application logs,
etc. in order to find the root cause.  If the JVM is still "running", try
taking a couple of thread dumps and review them to find your root cause.
Jeff

--
T ususcib, -mil uer-ususcib@tmct.paheor
oraditonl omans,e-ai: ses-el@tmct.paheor

-- 

*STL Disclaimer:*
The content of this message may be legally privileged and confidential and 
are for the use of the intended recipient(s) only. It should not be read, 
copied and used by anyone other than the intended recipient(s). If you have 
received this message in error, please immediately notify the sender, 
preserve its confidentiality and delete it. Before opening any attachments 
please check them for viruses and defects. No employee or agent is 
authorised to conclude any binding agreement on behalf of Sterlite 
Technologies Limited with another party by email without express written 
confirmation by authorised person. Visit us at www.sterlitetechnologies.com 
 Please consider environment before printing this email !





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



RE: How to monitor performance of tomcat

2014-04-22 Thread Randhir Singh
Thanks for your answer. The disk space is an issue as it is 99% right now.
The mountpoint /opt is 40G and catalina.out is occupying 13G.

We have log rotated files being made like catalina.2014-04-16.log,
host-manager.2014-04-14.log, localhost.2014-04-14.log.

I can reply to you immediately if you could specify what details you need
about the logging configuration, the text from the files you require.

Regards

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Sent: Tuesday, April 22, 2014 8:07 PM
To: Tomcat Users List
Subject: Re: How to monitor performance of tomcat

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Randhir,

On 4/22/14, 10:03 AM, Randhir Singh wrote:
> I have come across a point which could be a reason, the catalina.out
> file has become 13G which came to notice when we were analysing space
> crunch on the mount point in which tomcat is located.

Does low-disk-space cause performance problems for you?

> Further to this, there is some log rotation which is happening.
> But, what should be the steps to check or to introduce log rotation
> otherwise.

Tomcat will rotate logs as directed. You will need to tell us about your
logging if you want help with this.

> Request you to please revert as it is urgent. I would be waiting for a
> revert.

Revert what?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTVn6UAAoJEBzwKT+lPKRYFFoP/0BVzRhfpAf1gUyhKqq5jvIk
yp7n4a01EW+rUx9fIIKIIbe25Zwgz/WEpmDoNFWJX4/QdzadK8T37K1aipxu/ogT
kFQrlI20sV57ZX6t1aA/9upNgoyRCZe4NmABZczTY1I5fbxLzSH48h6oX74Nq3FZ
/PIqpzwPtRoZFy2iFb8v5t1KAf61sNwWowhjEa74yTRLWwAzQLC7rvsfzZpjdh12
qiL+MM2pVxwrjOS65TDVrRvjxCdV23RmSiHjXL6uT+JCDYO843sQsyBe/L9Cv+SH
89iYJwlDfBTnWBzqOLFmSaEwES0WXGVzBunoHJQkQGo64p7zqQZdy1s0I7E+3maq
Edafs50rA/2P+IZVidKq830royrFmvYDef0GPHQCkK4SJDF8MbFEN0irBnAUoilH
mrI9h6t3HFOVcR2cgNdnIeWADDLktAe+3c3XmLLUk1CQ79hBK+M1iG+cRRhIv2Q3
dxpm+nzTELlQapuZ8JfnY6Uod64G3NwHaxWf/iQrCINtcclH0xhm8ve+Bx8A1fW6
mhHYnycEaD5BKfrYrgFR6ZWyo4lQYaya4aZKBCt3EKsOzDpiOgUWCgxMZmbjtXUF
Chmej6H3hhBRKEOKySs6ot6B3HVvBqdc1aAb1aUq025Pv+0ybJ7q2pdAL2U20pcA
PSafYNhPnC3NlfjvDFNF
=ixaA
-END PGP SIGNATURE-

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

-- 

*STL Disclaimer:*
The content of this message may be legally privileged and confidential and 
are for the use of the intended recipient(s) only. It should not be read, 
copied and used by anyone other than the intended recipient(s). If you have 
received this message in error, please immediately notify the sender, 
preserve its confidentiality and delete it. Before opening any attachments 
please check them for viruses and defects. No employee or agent is 
authorised to conclude any binding agreement on behalf of Sterlite 
Technologies Limited with another party by email without express written 
confirmation by authorised person. Visit us at www.sterlitetechnologies.com 
 Please consider environment before printing this email !





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



RE: catalina.out is 13G

2014-04-22 Thread Randhir Singh
Thanks for your quick revert. Is it possible to rotate it without a log
rotation program like rotatelogs or cronolog? Also, how to check if
rotatelogs or cronolog is installed on the system or not.

I can revert with any details on the configuration if you need it.

Regards

-Original Message-
From: Filip Hanik [mailto:fi...@hanik.com]
Sent: Tuesday, April 22, 2014 7:52 PM
To: Tomcat Users List
Subject: Re: catalina.out is 13G

http://www.tomcatexpert.com/knowledge-base/rotating-catalinaout-log-files


On Tue, Apr 22, 2014 at 8:20 AM, Randhir Singh
wrote:

> Hi,
>
> I have a immediate concern as the mount point on which Tomcat is
> placed is 99% and on checking I found that catalina.out is 13GB. I
> wanted to implement a solution for this but am not sure, can I take a
> backup of catalina.out and truncate catalina.out on the running
> application?
>
> Humbly requesting a revert on an immediate basis on whether I can
> truncate catalina.out after taking a backup on a running tomcat
> application.
>
> Regards
>
> --
>
> *STL Disclaimer:*
> The content of this message may be legally privileged and confidential
> and are for the use of the intended recipient(s) only. It should not
> be read, copied and used by anyone other than the intended
> recipient(s). If you have received this message in error, please
> immediately notify the sender, preserve its confidentiality and delete
> it. Before opening any attachments please check them for viruses and
> defects. No employee or agent is authorised to conclude any binding
> agreement on behalf of Sterlite Technologies Limited with another
> party by email without express written confirmation by authorised
> person. Visit us at www.sterlitetechnologies.com  Please consider
> environment before printing this email !
>
>
>
>
>

-- 

*STL Disclaimer:*
The content of this message may be legally privileged and confidential and 
are for the use of the intended recipient(s) only. It should not be read, 
copied and used by anyone other than the intended recipient(s). If you have 
received this message in error, please immediately notify the sender, 
preserve its confidentiality and delete it. Before opening any attachments 
please check them for viruses and defects. No employee or agent is 
authorised to conclude any binding agreement on behalf of Sterlite 
Technologies Limited with another party by email without express written 
confirmation by authorised person. Visit us at www.sterlitetechnologies.com 
 Please consider environment before printing this email !





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



RE: catalina.out is 13G

2014-04-22 Thread Randhir Singh
Thanks for your answer Leon. The space should be freed immediately on the
system, can the catalina.out be truncated on an running system?

Regards

-Original Message-
From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com]
Sent: Tuesday, April 22, 2014 7:55 PM
To: Tomcat Users List
Subject: Re: catalina.out is 13G

Hello Randhir,

whatever revert means.
However, if you remove the file the place will be occupied on most *'nix
system until a process restart. You will probably have to restart your
server to free this mount point's storage anyway.

regards
Leon


On Tue, Apr 22, 2014 at 4:20 PM, Randhir Singh
wrote:

> Hi,
>
> I have a immediate concern as the mount point on which Tomcat is
> placed is 99% and on checking I found that catalina.out is 13GB. I
> wanted to implement a solution for this but am not sure, can I take a
> backup of catalina.out and truncate catalina.out on the running
> application?
>
> Humbly requesting a revert on an immediate basis on whether I can
> truncate catalina.out after taking a backup on a running tomcat
> application.
>
> Regards
>
> --
>
> *STL Disclaimer:*
> The content of this message may be legally privileged and confidential
> and are for the use of the intended recipient(s) only. It should not
> be read, copied and used by anyone other than the intended
> recipient(s). If you have received this message in error, please
> immediately notify the sender, preserve its confidentiality and delete
> it. Before opening any attachments please check them for viruses and
> defects. No employee or agent is authorised to conclude any binding
> agreement on behalf of Sterlite Technologies Limited with another
> party by email without express written confirmation by authorised
> person. Visit us at www.sterlitetechnologies.com  Please consider
> environment before printing this email !
>
>
>
>
>

-- 

*STL Disclaimer:*
The content of this message may be legally privileged and confidential and 
are for the use of the intended recipient(s) only. It should not be read, 
copied and used by anyone other than the intended recipient(s). If you have 
received this message in error, please immediately notify the sender, 
preserve its confidentiality and delete it. Before opening any attachments 
please check them for viruses and defects. No employee or agent is 
authorised to conclude any binding agreement on behalf of Sterlite 
Technologies Limited with another party by email without express written 
confirmation by authorised person. Visit us at www.sterlitetechnologies.com 
 Please consider environment before printing this email !





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



catalina.out is 13G

2014-04-22 Thread Randhir Singh
Hi,

I have a immediate concern as the mount point on which Tomcat is placed is
99% and on checking I found that catalina.out is 13GB. I wanted to
implement a solution for this but am not sure, can I take a backup of
catalina.out and truncate catalina.out on the running application?

Humbly requesting a revert on an immediate basis on whether I can truncate
catalina.out after taking a backup on a running tomcat application.

Regards

-- 

*STL Disclaimer:*
The content of this message may be legally privileged and confidential and 
are for the use of the intended recipient(s) only. It should not be read, 
copied and used by anyone other than the intended recipient(s). If you have 
received this message in error, please immediately notify the sender, 
preserve its confidentiality and delete it. Before opening any attachments 
please check them for viruses and defects. No employee or agent is 
authorised to conclude any binding agreement on behalf of Sterlite 
Technologies Limited with another party by email without express written 
confirmation by authorised person. Visit us at www.sterlitetechnologies.com 
 Please consider environment before printing this email !






How to specify log rotation in Tomcat 6

2014-04-22 Thread Randhir Singh
Hi,

I want to know how to specify log rotation in Tomcat 6. I tried searching
for information but I could not find anything substantial. The mount point
on which Tomcat is placed is 99% and I wanted to understand the log
rotation.

Humbly requesting a revert on this as it a immediate problem.

Regards

-- 

*STL Disclaimer:*
The content of this message may be legally privileged and confidential and 
are for the use of the intended recipient(s) only. It should not be read, 
copied and used by anyone other than the intended recipient(s). If you have 
received this message in error, please immediately notify the sender, 
preserve its confidentiality and delete it. Before opening any attachments 
please check them for viruses and defects. No employee or agent is 
authorised to conclude any binding agreement on behalf of Sterlite 
Technologies Limited with another party by email without express written 
confirmation by authorised person. Visit us at www.sterlitetechnologies.com 
 Please consider environment before printing this email !






Re: How to monitor performance of tomcat

2014-04-22 Thread Randhir Singh
Hi,

I have come across a point which could be a reason, the catalina.out file
has become 13G which came to notice when we were analysing space crunch on
the mount point in which tomcat is located.

Further to this, there is some log rotation which is happening. But, what
should be the steps to check or to introduce log rotation otherwise.

Request you to please revert as it is urgent. I would be waiting for a
revert.

Regards


On Mon, Apr 21, 2014 at 3:47 PM, Randhir Singh
wrote:

> Hi,
>
> I wanted input from the experts on my query below that the port 8891 does
> not respond when the command,
>
> jconsole 10.101.17.79:8891
>
> is issued when the application hangs and stops responding.
>
> Requesting inputs so that the root cause analysis of this issue can be
> found out.
>
> Regards
>
> -----Original Message-
> From: Randhir Singh [mailto:randhir.si...@sterlite.com]
> Sent: Tuesday, April 15, 2014 4:20 PM
> To: 'Tomcat Users List'
> Subject: RE: How to monitor performance of tomcat
>
> There is 1 finding. We normally monitor the tomcat port using jconsole as-
>
> jconsole 10.101.17.79:8891
>
> As per my initial query, our application hangs and we need to restart
> JBoss & Tomcat. I have observed that during this time the port 8891 does
> not respond as the command,
>
> jconsole 10.101.17.79:8891
>
> does not give any console for monitoring.
>
> Requesting an update so that the root cause analysis of this issue can be
> found out.
>
> Regards
>
> -Original Message-
> From: Shanti Suresh [mailto:sha...@umich.edu]
> Sent: Saturday, April 12, 2014 1:12 AM
> To: Tomcat Users List
> Subject: Re: How to monitor performance of tomcat
>
> On Fri, Apr 11, 2014 at 3:04 PM, André Warnier  wrote:
>
> > Shanti Suresh wrote:
> >
> >> Hi Chris,
> >>
> >> On Fri, Apr 11, 2014 at 12:17 PM, Christopher Schultz <
> >> ch...@christopherschultz.net> wrote:
> >>
> >>  -BEGIN PGP SIGNED MESSAGE-
> >>> Hash: SHA256
> >>>
> >>> Shanti,
> >>>
> >>> On 4/11/14, 9:01 AM, Shanti Suresh wrote:
> >>>
> >>>> Thank you!  Great presentation and most wonderful notes!  One
> >>>> question - on slide #48, where the notes say, "You can see here
> >>>> that the current usage is about 100MiB, less than the 115MiB
> >>>> threshold we set", where is the 100MB or thereabouts shown?  Is it
> >>>> the committed value?  I don't follow that statement.
> >>>>
> >>> The statement refers to the "used" value.
> >>>
> >>> - -chris
> >>>
> >>> Thank you!  I got it.
> >>>
> >>
> >> The "used" value says "used 114510568".  I was looking for a value
> >> closer to 100MiB.
> >>
> >
> >   114510568  (~ 109 MB)
> > - 104857600(100 MB)
> > ===
> > 9652968   (~  9 MB)
> >
> > How much closer were you looking for ?
>
>
> Well, I don't know, maybe 1 or 2 MiB over?  The threshold is 115 MiB, so
> if the notes had said "the current usage is less than the 115MiB threshold
> we set", I might not have had any doubt.
>
>
> >
> >
> >> So in the slide, you were making a point of the current usage being
> >> less than the threshold, basically, if I am not mistaken.
> >>
> >> Thanks,
> >>
> >>   -Shanti
> >>
> >>
> >
> Thanks,
>
>   -Shanti
>

-- 

*STL Disclaimer:*
The content of this message may be legally privileged and confidential and 
are for the use of the intended recipient(s) only. It should not be read, 
copied and used by anyone other than the intended recipient(s). If you have 
received this message in error, please immediately notify the sender, 
preserve its confidentiality and delete it. Before opening any attachments 
please check them for viruses and defects. No employee or agent is 
authorised to conclude any binding agreement on behalf of Sterlite 
Technologies Limited with another party by email without express written 
confirmation by authorised person. Visit us at www.sterlitetechnologies.com 
 Please consider environment before printing this email !






RE: How to monitor performance of tomcat

2014-04-21 Thread Randhir Singh
Hi,

I wanted input from the experts on my query below that the port 8891 does
not respond when the command,

jconsole 10.101.17.79:8891

is issued when the application hangs and stops responding.

Requesting inputs so that the root cause analysis of this issue can be
found out.

Regards

-Original Message-
From: Randhir Singh [mailto:randhir.si...@sterlite.com]
Sent: Tuesday, April 15, 2014 4:20 PM
To: 'Tomcat Users List'
Subject: RE: How to monitor performance of tomcat

There is 1 finding. We normally monitor the tomcat port using jconsole as-

jconsole 10.101.17.79:8891

As per my initial query, our application hangs and we need to restart
JBoss & Tomcat. I have observed that during this time the port 8891 does
not respond as the command,

jconsole 10.101.17.79:8891

does not give any console for monitoring.

Requesting an update so that the root cause analysis of this issue can be
found out.

Regards

-Original Message-
From: Shanti Suresh [mailto:sha...@umich.edu]
Sent: Saturday, April 12, 2014 1:12 AM
To: Tomcat Users List
Subject: Re: How to monitor performance of tomcat

On Fri, Apr 11, 2014 at 3:04 PM, André Warnier  wrote:

> Shanti Suresh wrote:
>
>> Hi Chris,
>>
>> On Fri, Apr 11, 2014 at 12:17 PM, Christopher Schultz <
>> ch...@christopherschultz.net> wrote:
>>
>>  -BEGIN PGP SIGNED MESSAGE-
>>> Hash: SHA256
>>>
>>> Shanti,
>>>
>>> On 4/11/14, 9:01 AM, Shanti Suresh wrote:
>>>
>>>> Thank you!  Great presentation and most wonderful notes!  One
>>>> question - on slide #48, where the notes say, "You can see here
>>>> that the current usage is about 100MiB, less than the 115MiB
>>>> threshold we set", where is the 100MB or thereabouts shown?  Is it
>>>> the committed value?  I don't follow that statement.
>>>>
>>> The statement refers to the "used" value.
>>>
>>> - -chris
>>>
>>> Thank you!  I got it.
>>>
>>
>> The "used" value says "used 114510568".  I was looking for a value
>> closer to 100MiB.
>>
>
>   114510568  (~ 109 MB)
> - 104857600(100 MB)
> ===
> 9652968   (~  9 MB)
>
> How much closer were you looking for ?


Well, I don't know, maybe 1 or 2 MiB over?  The threshold is 115 MiB, so
if the notes had said "the current usage is less than the 115MiB threshold
we set", I might not have had any doubt.


>
>
>> So in the slide, you were making a point of the current usage being
>> less than the threshold, basically, if I am not mistaken.
>>
>> Thanks,
>>
>>   -Shanti
>>
>>
>
Thanks,

  -Shanti

-- 

*STL Disclaimer:*
The content of this message may be legally privileged and confidential and 
are for the use of the intended recipient(s) only. It should not be read, 
copied and used by anyone other than the intended recipient(s). If you have 
received this message in error, please immediately notify the sender, 
preserve its confidentiality and delete it. Before opening any attachments 
please check them for viruses and defects. No employee or agent is 
authorised to conclude any binding agreement on behalf of Sterlite 
Technologies Limited with another party by email without express written 
confirmation by authorised person. Visit us at www.sterlitetechnologies.com 
 Please consider environment before printing this email !





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



RE: How to monitor performance of tomcat

2014-04-15 Thread Randhir Singh
There is 1 finding. We normally monitor the tomcat port using jconsole as-

jconsole 10.101.17.79:8891

As per my initial query, our application hangs and we need to restart
JBoss & Tomcat. I have observed that during this time the port 8891 does
not respond as the command,

jconsole 10.101.17.79:8891

does not give any console for monitoring.

Requesting an update so that the root cause analysis of this issue can be
found out.

Regards

-Original Message-
From: Shanti Suresh [mailto:sha...@umich.edu]
Sent: Saturday, April 12, 2014 1:12 AM
To: Tomcat Users List
Subject: Re: How to monitor performance of tomcat

On Fri, Apr 11, 2014 at 3:04 PM, André Warnier  wrote:

> Shanti Suresh wrote:
>
>> Hi Chris,
>>
>> On Fri, Apr 11, 2014 at 12:17 PM, Christopher Schultz <
>> ch...@christopherschultz.net> wrote:
>>
>>  -BEGIN PGP SIGNED MESSAGE-
>>> Hash: SHA256
>>>
>>> Shanti,
>>>
>>> On 4/11/14, 9:01 AM, Shanti Suresh wrote:
>>>
 Thank you!  Great presentation and most wonderful notes!  One
 question - on slide #48, where the notes say, "You can see here
 that the current usage is about 100MiB, less than the 115MiB
 threshold we set", where is the 100MB or thereabouts shown?  Is it
 the committed value?  I don't follow that statement.

>>> The statement refers to the "used" value.
>>>
>>> - -chris
>>>
>>> Thank you!  I got it.
>>>
>>
>> The "used" value says "used 114510568".  I was looking for a value
>> closer to 100MiB.
>>
>
>   114510568  (~ 109 MB)
> - 104857600(100 MB)
> ===
> 9652968   (~  9 MB)
>
> How much closer were you looking for ?


Well, I don't know, maybe 1 or 2 MiB over?  The threshold is 115 MiB, so
if the notes had said "the current usage is less than the 115MiB threshold
we set", I might not have had any doubt.


>
>
>> So in the slide, you were making a point of the current usage being
>> less than the threshold, basically, if I am not mistaken.
>>
>> Thanks,
>>
>>   -Shanti
>>
>>
>
Thanks,

  -Shanti

-- 

*STL Disclaimer:*
The content of this message may be legally privileged and confidential and 
are for the use of the intended recipient(s) only. It should not be read, 
copied and used by anyone other than the intended recipient(s). If you have 
received this message in error, please immediately notify the sender, 
preserve its confidentiality and delete it. Before opening any attachments 
please check them for viruses and defects. No employee or agent is 
authorised to conclude any binding agreement on behalf of Sterlite 
Technologies Limited with another party by email without express written 
confirmation by authorised person. Visit us at www.sterlitetechnologies.com 
 Please consider environment before printing this email !





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



How to monitor performance of tomcat

2014-04-08 Thread Randhir Singh
We have an application which has JBoss as the application server with
Tomcat as the web server, our application has Oracle 11g as the database. I
would give some further background to the issue we are facing, since the
last 1 1/2 months, the application slows down. Sometimes it comes back to
normal, specially on week-ends. But other times we restart JBoss & Tomcat
to bring back the application to normal.



We have been using jconsole to monitor tomcat like



jconsole 10.101.17.79:8891



which monitors our tomcat for a work order system. If the memory usage does
not show spike and shows constant reading, the GC button is clicked to
invoke the garbage collector.



I checked out on the net and got some clue as below:



1)  Javamelody - It seems to be a 3rd party tool which is not
recommended.

2)  There is a command mentioned to see the admin console,
http:/// but it is not displaying the required page.



Please give your inputs whether jconsole should be a help in the right
direction or some other way to monitor the performance of Tomcat.



Regards

-- 

*STL Disclaimer:*
The content of this message may be legally privileged and confidential and 
are for the use of the intended recipient(s) only. It should not be read, 
copied and used by anyone other than the intended recipient(s). If you have 
received this message in error, please immediately notify the sender, 
preserve its confidentiality and delete it. Before opening any attachments 
please check them for viruses and defects. No employee or agent is 
authorised to conclude any binding agreement on behalf of Sterlite 
Technologies Limited with another party by email without express written 
confirmation by authorised person. Visit us at www.sterlitetechnologies.com 
 Please consider environment before printing this email !






How to deploy Java application into Tomcat in Linux

2014-03-31 Thread Randhir Singh
Hi,



As per my understanding, the steps to deploy a Java application on Tomcat
(5.X/6.X) in Linux would be as follows:



1)  Install Tomcat on Linux

2)  Add a host entry in $TOMCAT_HOME/conf with the syntax like-

-



reports.fion.co.in












The above code would assign the host name to access the URL, gives the
location of the web application pointed out by appBase & context path.



3)  Start Tomcat.



Please let me know if the steps above are correct and also please let me
know in detail if the steps are not correct.

-- 

*STL Disclaimer:*
The content of this message may be legally privileged and confidential and 
are for the use of the intended recipient(s) only. It should not be read, 
copied and used by anyone other than the intended recipient(s). If you have 
received this message in error, please immediately notify the sender, 
preserve its confidentiality and delete it. Before opening any attachments 
please check them for viruses and defects. No employee or agent is 
authorised to conclude any binding agreement on behalf of Sterlite 
Technologies Limited with another party by email without express written 
confirmation by authorised person. Visit us at www.sterlitetechnologies.com 
 Please consider environment before printing this email !






RE: Problem in accessing link

2014-03-31 Thread Randhir Singh
Hi,

Thanks for your answer. There are 2 applications hosted on this Tomcat. 1 is
working fine and the other only is giving problems which we are accessing on
port 10080.

Request inputs on this so that the resolution is found.

Regards

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Sent: Saturday, March 29, 2014 6:22 PM
To: Tomcat Users List
Subject: Re: Problem in accessing link

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Randhir,

On 3/29/14, 8:38 AM, Randhir Singh wrote:
> We are using tomcat in our production setup, the version of tomcat is
> 5.0.28.

It would be really good for you to investigate upgrading your version of
Tomcat. Not only has Tomcat 5.0 been retired, but Tomcat 5.5 has also been
retired. Tomcat 8 is about to be released. There are known and unknown
unpatched security problems with the Tomcat 5 versions which will never be
patched.

> While accessing the link hosted on tomcat, the following error is
> coming as below:
>
> --
> --
> --
> 
>
>  *HTTP Status 500 - * --
>
> *type* Exception report
>
> *message*
>
> *description* *The server encountered an internal error () that
> prevented it from fulfilling this request.*
>
> *exception*
>
> java.lang.NullPointerException
>
>
> com.elitecore.reports.manager.server.GetCompanyInfoServlet.doAction(Ge
> tCompanyInfoServlet.java:93)

This
>
is a problem with whatever "elitecore' is. You'll have to look there.

> Request you to please advice on what steps should be taken so that
> this problem is resolved.

This is not a problem with Tomcat: it's a problem with the web application
deployed on Tomcat. This is something you'll have to do yourself or engage
the original developer.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTNsHTAAoJEBzwKT+lPKRYqW4QAMW++3uHS1w9b5MmPSrCC8+N
Fpzy+yqdlF0x7P35C+yLhOCHi3Q6UdKj6NvYXRUlFJKu02zej7O39P128O/CJCja
cAQk917Kf9AWrUmhV7cRX1Kltl0pbZJOI5LSkkD3tJ6Wi7zpGs4xr5X66cqDgVEY
rmUQWPMJa8pVB0xN/rRQhwUkRwFMMKk6EZuJLFx6NwctJHgLR17+FpK2HJHWp9Yw
g4smAVZRrWw7jGXdktZE5RYDiFvqb8IfOfTuUWWE+Say/jdgsMiRAjAAB0isI7yQ
26Z/F6UB98yQnepBVId6hYAEVr97Cxf2cjIRhYCo6oUhWo+clbJBTQ3MonytStEy
b8ABkv+1h2QjLrv9/wX1HgV5SaiKVS75lt4QW9n3FoGPEAfQLC/Y4vU+zoedw0QZ
sIk1ujP6+VbvQurniN4Ji8nnrPvFSpROLtb99FPE+nUmMoeSOejPlSbpvS95SKI6
f9O23Q3wI1UrJCFSo5qhamafanEBJ+JKZgMWnyqJqwJL33yxYWo33+QS+vU8AOc/
41VLbocNotZH6FImCxTX3Uag7VppNOzq7sEQ/bAu+808WJ5AWXxlKwKON3lCcjTn
uqkZiQEV9EuS2ljGzJJeYkhLz/C84sBrQaE3bI8P0L44FvC4Fh5wuH3DAFgmlgKG
T+9Hhfy/3rl8jlkGllne
=Gid1
-END PGP SIGNATURE-

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

-- 

*STL Disclaimer:*
The content of this message may be legally privileged and confidential and 
are for the use of the intended recipient(s) only. It should not be read, 
copied and used by anyone other than the intended recipient(s). If you have 
received this message in error, please immediately notify the sender, 
preserve its confidentiality and delete it. Before opening any attachments 
please check them for viruses and defects. No employee or agent is 
authorised to conclude any binding agreement on behalf of Sterlite 
Technologies Limited with another party by email without express written 
confirmation by authorised person. Visit us at www.sterlitetechnologies.com 
 Please consider environment before printing this email !





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



Problem in accessing link

2014-03-29 Thread Randhir Singh
Hi,



We are using tomcat in our production setup, the version of tomcat is
5.0.28. While accessing the link hosted on tomcat, the following error is
coming as below:

--

*HTTP Status 500 - *
--

*type* Exception report

*message*

*description* *The server encountered an internal error () that prevented
it from fulfilling this request.*

*exception*

java.lang.NullPointerException


com.elitecore.reports.manager.server.GetCompanyInfoServlet.doAction(GetCompanyInfoServlet.java:93)


com.elitecore.reports.manager.server.GetCompanyInfoServlet.doPost(GetCompanyInfoServlet.java:66)


com.elitecore.reports.manager.server.GetCompanyInfoServlet.doGet(GetCompanyInfoServlet.java:58)

javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


com.elitecore.reports.manager.server.ValidateLicense.doAction(ValidateLicense.java:118)


com.elitecore.reports.manager.server.ValidateLicense.doPost(ValidateLicense.java:52)


com.elitecore.reports.manager.server.ValidateLicense.doGet(ValidateLicense.java:44)

javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


com.elitecore.reports.base.server.EncodingServletFilter.doFilter(EncodingServletFilter.java:17)

*note* *The full stack trace of the root cause is available in the Apache
Tomcat/5.0.28 logs.*

---



Request you to please advice on what steps should be taken so that this
problem is resolved.



Regards

-- 

*STL Disclaimer:*
The content of this message may be legally privileged and confidential and 
are for the use of the intended recipient(s) only. It should not be read, 
copied and used by anyone other than the intended recipient(s). If you have 
received this message in error, please immediately notify the sender, 
preserve its confidentiality and delete it. Before opening any attachments 
please check them for viruses and defects. No employee or agent is 
authorised to conclude any binding agreement on behalf of Sterlite 
Technologies Limited with another party by email without express written 
confirmation by authorised person. Visit us at www.sterlitetechnologies.com 
 Please consider environment before printing this email !






RE: Internal server error - Apache

2009-02-08 Thread Randhir singh
Thanks, for your answer. The error_log shows like the following:-

Sun Feb  8 15:53:14 2009] [notice] caught SIGTERM, shutting down
[Sun Feb  8 15:53:22 2009] [notice] Apache/1.3.12 (Unix) mod_jk/1.2.6
mod_ssl/2.6.6 OpenSSL/0.9.5 configured -- resuming normal operations
[Sun Feb  8 15:56:13 2009] [notice] caught SIGTERM, shutting down
[Sun Feb  8 15:56:22 2009] [notice] Apache/1.3.12 (Unix) mod_jk/1.2.6
mod_ssl/2.6.6 OpenSSL/0.9.5 configured -- resuming normal operations

Please, help as my live environment is held up.

regards

-Original Message-
From: Hassan Schroeder [mailto:hassan.schroe...@gmail.com] 
Sent: Sunday, February 08, 2009 9:23 PM
To: Tomcat Users List
Subject: Re: Internal server error - Apache

On Sun, Feb 8, 2009 at 7:18 AM,   wrote:

> I am getting internal server error when trying to access the website.

> What could be the reason for this.

1) error in server config
2) error in application code
3) error in external resource (e.g. database)
4) dude, the universe is just messin' with ya

More specific details should be in your error logs.

HTH,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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


No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.0.233 / Virus Database: 270.10.19/1939 - Release Date: 02/07/09
13:39:00



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



Internal server error - Apache

2009-02-08 Thread randhir . singh
hi,

I am getting internal server error when trying to access the website. It
is very urgent for me as the migraion is stuck because of that. The
entries in httpd.conf are like:-

-

 ServerAdmin rajen...@directonpc.com
 DocumentRoot /opt/dpc/billing501/wars/unwired
 ServerName unwired.directonpc.com
 ErrorLog logs/unwired.directonpc.com-error_log.log
 CustomLog logs/unwired.directonpc.com-*-access_log.log common
 JkMount /servlet/* billingWorker
 JkMount /* billingWorker


RE: Copy Apache

2009-02-05 Thread Randhir singh
I copied the $APACHE_HOME from the old server to the new one and it works
fine. I guess, this is contradictory to your answer.

regards

-Original Message-
From: Gregor Schneider [mailto:rc4...@googlemail.com] 
Sent: Tuesday, February 03, 2009 8:47 PM
To: Tomcat Users List
Subject: Re: Copy Apache

André,

just a quick one, since this becomes OT, but if you like, we can
continue this discussion via personal email.

André, if I'm not mistaken, you're quite new to the list.

I've seen lots of similar posts here, which I consider being a
complete neglet of respect to the people contributing to this list.

They always follow the same principle:

- You can sense that they've no clue about Tomcat / Apache / name-the-topic

- Their questions can easily be answered by referring to the docs

- They always have a "requirement" from a client to solve an issue

- Often, not always, you'll find the word "ASAP" within their post

- At least to me the impression occurs, that those guys consider the
list as some free-of-charge-solve-my-problems-thingy

- On top, usually they don't provide any useful information which
helps solving their problem

- And most certain, after their problem is solved, you' ll never see
them here again contributing

- I don't care about the whereabouts / wherefroms of any poster of
this list, and I'd give the same answer to anybody showing the same
attitude, wether they're Indian, Chinese, German, US, UK, even Belgian
;)

- I'm a cosmopolitan, I'm Europena, I'm German, and I just don't care
where somebody has been born & bred nor where somebody comes from.

What I do care about is, that some freeloaders seem to take the
contribution of this list-members for granted.

And yes, I've heard it so many times from prospects:

"Well, you've offered a great solution, but I can get the same thing
cheaper if I take company xyz".
Sure, company xyz has some offshore-locations, and a year later
meeting the same "ex-prospect" again, they tell me that either

- either the project went down the drains

- budget was quadrupled

...

Now tell me:

If you hire a company to, say, maintain the engine of your car?
Right: You expect, that this company has employees knowing how to do this.
What's happening here is, that the "mechanic" doesn't have any clue of
your car, goes to a pub where he knows the mechanics from other
companies are hanging out and asks them get his job done - for free,
of course.

Maybe this example is a bit over the top, but I guess you've got the
meaning.

Therefore, again:

- I'm a great fan of a *fair* competition

- I believe in Open Source and sharing of information (you got it:
"sharing" works only both ways!)

- Least I'm anything liek a racist - ask my friends and colleques in [
enter_any_country_here]

On Tue, Feb 3, 2009 at 3:12 PM, André Warnier  wrote:
>
> Yes, but the correct word is "ridiculous".
>

I'm also not joking about language-issues. Wish I had a dime for every
typo / mistake I'm making when posting here - I'd be off to SEA baking
in the sun for the rest of my life.

When I see such posts, usually I'm giving those guys a piece of
information from where they should be able to start (see my previous
answers to the OP).

However, sometimes enough is enough, and personally, after re-reading
my post, I even don't consider it as rude (apart from the
"throw-up-part") but as an open word.

Sorry if anyone is bugged by this slightly longer OT-post of mine,
however, I wanted to clarify that.

@André:

Feel free to discuss this or any other issue with me via private email.

Rgds

Gregor
-- 
just because your paranoid, doesn't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

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


No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.0.233 / Virus Database: 270.10.17/1931 - Release Date: 02/02/09
19:21:00



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



RE: Copy Apache

2009-02-05 Thread Randhir singh
I copied the $APACHE_HOME from the old server to the new one and it works
fine. I guess, this is contradictory to your answer.

regards

-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Tuesday, February 03, 2009 7:43 PM
To: Tomcat Users List
Subject: Re: Copy Apache

Gregor,

Gregor Schneider wrote:
> I'm sorry, but the whole question is rediculous 
Yes, but the correct word is "ridiculous".

and needs a rephrasing at least.
And maybe your answer needs this also.

> 
> - What does the OP want to copy? The whole of Apache? HTML only?
> 
> To me it seems as if the OP doesn't have *any* clue when it comes to
> Apache / Tomcat (please also refer to his previous posts).

That seems indeed to be the case.  But no more so than quite a few other 
previous posters on this list. No need to get upset.

> 
> I may appear rude, 
Yes.

however, I believe that before asking questions in
> a list, ppl first should at least *try* to refer to the - in this case
> - excellent docs.
Agreed.

> 
> If there are still open questions left, everybody is very welcome to
> ask their questions here, and I believe the list-members are more than
> willing to help.
Yes.
> 
> However, most members of this list are helping during their spare
> time, free of charge, just because they like Tomcat and maybe believe
> in the principles of Open Source. On the other hand, most members of
> this list are also earning their pennies with software-development /
> administration / whatsoever.
True, wherever they are.

> 
> Still, this does not mean that the members of this list are helping
> some offshore-wannabies to fullfill their client's (!) requirements,
> thus cutting off the branch they're sitting on.
Now that starts sounding a bit peculiar.
What do you mean by "offshore" ?  Anyone not in the same particular 
country where you presently are ? (because I don't think I am either)
And I thought this was a global Internet forum, dedicated to helping 
Apache Tomcat users worldwide, irrespective of origin, culture, 
nationality, beliefs.  Am I wrong or naive ?

> 
> Ever wondered how some offshore-companies can come up with their
> prices? Have a look at some posts, and you'll know...
I've been wondering about the same thing reading some posts, but the 
presumed cultural or geographical origin or off-shoreness is not 
well-correlated to the (lack of) quality of the posts.

> 
> I don't have any problem with a fair competition and sharing
> information, 
But the way you write, makes it sound as if you do, because the only 
element you had to categorise this OP as unfair, offshore or whatever 
was his name.

If I go by the names alone, I'd bet that quite a few of the Apache 
Tomcat developers and helpers on this list are not direct descendants of 
the Mayflower crew either.  Your post could offend some of them too.


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


No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.0.233 / Virus Database: 270.10.17/1931 - Release Date: 02/02/09
19:21:00



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



RE: Backup of TOMCAT required

2009-02-05 Thread Randhir singh
the jvm version is same as the old $JAVA_HOME was copied to the new one. I
guess, then, copying the tomcat again is not required?

regards

-Original Message-
From: Martin Gainty [mailto:mgai...@hotmail.com] 
Sent: Friday, February 06, 2009 2:23 AM
To: Tomcat Users List
Subject: RE: Backup of TOMCAT required


theoretically if you're mirroring you should see no difference
(although you might see different behaviour from the JVM binaries..but that
*should be* negated by having same JVM version)
specifically I would check OS specific binaries at.. 
%JRE_HOME%\bin\server
%JRE_HOME%\bin\client
%JRE_HOME%\bin

Others?
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and Sender
does not endorse distribution to any party other than intended recipient.
Sender does not necessarily endorse content contained within this
transmission. 




> From: randhir.si...@elitecore.com
> To: users@tomcat.apache.org
> Subject: RE: Backup of TOMCAT required
> Date: Fri, 6 Feb 2009 01:14:53 +0530
> 
> Thanks, for your answer. But, my real question is whether we need to copy
> the latest copy of $TOMCAT_HOME from the old server to the new server as
> it is just a web server and not our application code.
> 
> regards
> 
> -Original Message-
> From: Martin Gainty [mailto:mgai...@hotmail.com] 
> Sent: Thursday, February 05, 2009 9:34 PM
> To: Tomcat Users List
> Subject: RE: Backup of TOMCAT required
> 
> 
> Good Morning Singh-
> 
> any technical reasons for staying with an outdated 1.4 JVM..as you wont be
> able to take advantage of advanced gc and generics in JVM 6
> ?
> 
> Martin 
> __ 
> Disclaimer and confidentiality note 
> Everything in this e-mail and any attachments relates to the official
> business of Sender. This transmission is of a confidential nature and
Sender
> does not endorse distribution to any party other than intended recipient.
> Sender does not necessarily endorse content contained within this
> transmission. 
> 
> 
> 
> 
> > From: randhir.si...@elitecore.com
> > To: users@tomcat.apache.org
> > Subject: Backup of TOMCAT required
> > Date: Thu, 5 Feb 2009 21:19:24 +0530
> > 
> > I had a doubt that should the backup of TOMCAT be taken as we are going
to
> > swap our server to a new one with better congifuration. I will explain
the
> > environment of our system a little
> > 
> >  
> > 
> > 1) Application server- JBOSS
> > 
> > 2) Web server- Apache & tomcat
> > 
> > 3) Application details- Java(1.4.2)
> > 
> >  
> > 
> > Actually, I had taken the backup of TOMCAT around a week back in
> preparation
> > of the swap for migration. But, one change is going to happen in our
> > application in the form of a hotfix tomorrow and our migration is
> scheduled
> > for day after. So, should a backup of TOMCAT be taken after our
> application
> > hotfix is applied. Also, should a back of java($JAVA_HOME) and
> > ant($ANT_HOME) be taken, we use j2sdk1.4.x for java and apache-ant-1.6.1
> for
> > ant.
> > 
> >  
> > 
> > I hope, my question is clear. 
> > 
> >  
> > 
> > Please, help in solving the doubt. 
> > 
> >  
> > 
> > regards
> > 
> 
> _
> Windows LiveT: E-mail. Chat. Share. Get more ways to connect. 
>
http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t2_allup_howitworks_0220
> 09
> No virus found in this incoming message.
> Checked by AVG - www.avg.com 
> Version: 8.0.233 / Virus Database: 270.10.18/1935 - Release Date: 02/04/09
> 08:24:00
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 

_
Windows LiveT: E-mail. Chat. Share. Get more ways to connect. 
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t2_allup_explore_022009
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.0.233 / Virus Database: 270.10.18/1935 - Release Date: 02/04/09
16:35:00



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



RE: Backup of TOMCAT required

2009-02-05 Thread Randhir singh
what are you trying to say, can the OS be copied ever?

regards

-Original Message-
From: Gregor Schneider [mailto:rc4...@googlemail.com] 
Sent: Friday, February 06, 2009 1:37 AM
To: Tomcat Users List
Subject: Re: Backup of TOMCAT required

On Thu, Feb 5, 2009 at 8:44 PM, Randhir singh
 wrote:
> Thanks, for your answer. But, my real question is whether we need to copy
> the latest copy of $TOMCAT_HOME from the old server to the new server as
> it is just a web server and not our application code.
>

hey - why not copying the whole OS?

scnr

Gregor
-- 
just because your paranoid, doesn't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

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


No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.0.233 / Virus Database: 270.10.18/1935 - Release Date: 02/04/09
16:35:00



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



RE: Backup of TOMCAT required

2009-02-05 Thread Randhir singh
the java and tomcat version is same in the old and the new. We had copied
$JAVA_HOME also from the old to the new.

I guess, then, copying the tomcat again is not required?

regards

-Original Message-
From: David Smith [mailto:d...@cornell.edu] 
Sent: Friday, February 06, 2009 1:31 AM
To: Tomcat Users List
Subject: Re: Backup of TOMCAT required

Quick answer: No.  Copy over your app and configure the new tomcat to
match the old one.  I highly recommend hand configuring tomcat rather
than just copying config files though.  The review is good practice and
config files -- particularly server.xml -- have changed over time.

The thing that would concern me more is if tomcat and/or java version
changes from old to new.  If that's the case, you will have to test your
app in the new environment before going live.

--David

Randhir singh wrote:
> Thanks, for your answer. But, my real question is whether we need to copy
> the latest copy of $TOMCAT_HOME from the old server to the new server as
> it is just a web server and not our application code.
>
> regards
>
> -Original Message-
> From: Martin Gainty [mailto:mgai...@hotmail.com] 
> Sent: Thursday, February 05, 2009 9:34 PM
> To: Tomcat Users List
> Subject: RE: Backup of TOMCAT required
>
>
> Good Morning Singh-
>
> any technical reasons for staying with an outdated 1.4 JVM..as you wont be
> able to take advantage of advanced gc and generics in JVM 6
> ?
>
> Martin 
> __ 
> Disclaimer and confidentiality note 
> Everything in this e-mail and any attachments relates to the official
> business of Sender. This transmission is of a confidential nature and
Sender
> does not endorse distribution to any party other than intended recipient.
> Sender does not necessarily endorse content contained within this
> transmission. 
>
>
>
>
>   
>> From: randhir.si...@elitecore.com
>> To: users@tomcat.apache.org
>> Subject: Backup of TOMCAT required
>> Date: Thu, 5 Feb 2009 21:19:24 +0530
>>
>> I had a doubt that should the backup of TOMCAT be taken as we are going
to
>> swap our server to a new one with better congifuration. I will explain
the
>> environment of our system a little
>>
>>  
>>
>> 1) Application server- JBOSS
>>
>> 2) Web server- Apache & tomcat
>>
>> 3) Application details- Java(1.4.2)
>>
>>  
>>
>> Actually, I had taken the backup of TOMCAT around a week back in
>> 
> preparation
>   
>> of the swap for migration. But, one change is going to happen in our
>> application in the form of a hotfix tomorrow and our migration is
>> 
> scheduled
>   
>> for day after. So, should a backup of TOMCAT be taken after our
>> 
> application
>   
>> hotfix is applied. Also, should a back of java($JAVA_HOME) and
>> ant($ANT_HOME) be taken, we use j2sdk1.4.x for java and apache-ant-1.6.1
>> 
> for
>   
>> ant.
>>
>>  
>>
>> I hope, my question is clear. 
>>
>>  
>>
>> Please, help in solving the doubt. 
>>
>>  
>>
>> regards
>>
>> 
>
>   


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


No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.0.233 / Virus Database: 270.10.18/1935 - Release Date: 02/04/09
16:35:00



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



RE: Backup of TOMCAT required

2009-02-05 Thread Randhir singh
thanks, for your answer. I do not understand what you are trying to say.

regards

-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Friday, February 06, 2009 1:38 AM
To: Tomcat Users List
Subject: Re: Backup of TOMCAT required

Gregor Schneider wrote:
> On Thu, Feb 5, 2009 at 8:44 PM, Randhir singh
>  wrote:
>> Thanks, for your answer. But, my real question is whether we need to copy
>> the latest copy of $TOMCAT_HOME from the old server to the new server as
>> it is just a web server and not our application code.
>>
> 
What the heck. Just move the disk then.


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


No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.0.233 / Virus Database: 270.10.18/1935 - Release Date: 02/04/09
16:35:00



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



RE: Backup of TOMCAT required

2009-02-05 Thread Randhir singh
Thanks, for your answer. But, my real question is whether we need to copy
the latest copy of $TOMCAT_HOME from the old server to the new server as
it is just a web server and not our application code.

regards

-Original Message-
From: Martin Gainty [mailto:mgai...@hotmail.com] 
Sent: Thursday, February 05, 2009 9:34 PM
To: Tomcat Users List
Subject: RE: Backup of TOMCAT required


Good Morning Singh-

any technical reasons for staying with an outdated 1.4 JVM..as you wont be
able to take advantage of advanced gc and generics in JVM 6
?

Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and Sender
does not endorse distribution to any party other than intended recipient.
Sender does not necessarily endorse content contained within this
transmission. 




> From: randhir.si...@elitecore.com
> To: users@tomcat.apache.org
> Subject: Backup of TOMCAT required
> Date: Thu, 5 Feb 2009 21:19:24 +0530
> 
> I had a doubt that should the backup of TOMCAT be taken as we are going to
> swap our server to a new one with better congifuration. I will explain the
> environment of our system a little
> 
>  
> 
> 1) Application server- JBOSS
> 
> 2) Web server- Apache & tomcat
> 
> 3) Application details- Java(1.4.2)
> 
>  
> 
> Actually, I had taken the backup of TOMCAT around a week back in
preparation
> of the swap for migration. But, one change is going to happen in our
> application in the form of a hotfix tomorrow and our migration is
scheduled
> for day after. So, should a backup of TOMCAT be taken after our
application
> hotfix is applied. Also, should a back of java($JAVA_HOME) and
> ant($ANT_HOME) be taken, we use j2sdk1.4.x for java and apache-ant-1.6.1
for
> ant.
> 
>  
> 
> I hope, my question is clear. 
> 
>  
> 
> Please, help in solving the doubt. 
> 
>  
> 
> regards
> 

_
Windows LiveT: E-mail. Chat. Share. Get more ways to connect. 
http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t2_allup_howitworks_0220
09
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.0.233 / Virus Database: 270.10.18/1935 - Release Date: 02/04/09
08:24:00



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



Backup of TOMCAT required

2009-02-05 Thread Randhir singh
I had a doubt that should the backup of TOMCAT be taken as we are going to
swap our server to a new one with better congifuration. I will explain the
environment of our system a little

 

1) Application server- JBOSS

2) Web server- Apache & tomcat

3) Application details- Java(1.4.2)

 

Actually, I had taken the backup of TOMCAT around a week back in preparation
of the swap for migration. But, one change is going to happen in our
application in the form of a hotfix tomorrow and our migration is scheduled
for day after. So, should a backup of TOMCAT be taken after our application
hotfix is applied. Also, should a back of java($JAVA_HOME) and
ant($ANT_HOME) be taken, we use j2sdk1.4.x for java and apache-ant-1.6.1 for
ant.

 

I hope, my question is clear. 

 

Please, help in solving the doubt. 

 

regards



Location of download of mod_jk-1.2.26-httpd-2.2.4.so

2009-02-04 Thread randhir . singh
I wanted to know of the site or place to download
mod_jk-1.2.26-httpd-2.2.4.so that I can rename it to mod_jk.so to include
it in the $APACHE_HOME/libexec
path as my httpd.conf is having the line:-

-
LoadModule jk_module libexec/mod_jk.so
-

I hope, my question is clear.

Please, help in solving the doubt.

regards


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



Steps to build mod_jk.so

2009-02-04 Thread randhir . singh
As, I have understood to make a mod_jk Load module, the steps are:-


$ ./configure --prefix=/path/to/install
--enable-shared=foo
$ make install


Are, the steps correct as this is what I could make of the documentation?
So, that while starting apache with the following configured in the
httpd.conf:

---
LoadModule jk_module libexec/mod_jk.so
JkWorkersFile /usr/local/apache1.3/conf/workers.properties
JkLogFile /usr/local/apache1.3/logs/mod_jk.log
JkLogLevel debug
---

there should be no error like 'Invalid command 'LoadModule', perhaps
mis-spelled or defined by a module not included in the server
configuration'.

I hope, my question is clear.

Please, help in solving the doubt.

regards

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



RE: Meaning of LoadModule jk_module libexec/mod_jk.so in httpd.conf

2009-02-04 Thread randhir . singh
Thanks, for your answer. But, I could not understand how to make the
module mod_jk.so so that it gets placed in the path $APACHE_HOME/libexec
as the documents you mentioned are not very clear on that.

regards

-Original Message-
From: Gregor Schneider [mailto:rc4...@googlemail.com]
Sent: Wednesday, February 04, 2009 9:18 PM
To: Tomcat Users List
Subject: Re: Meaning of LoadModule jk_module libexec/mod_jk.so in httpd.conf

well, well, well, seems you're becoming a running gag here in the list.

did your read http://tomcat.apache.org/connectors-doc/ as I suggested
previously?

if so, did you *understand* it?

if even so, did you find the link within the document pointing to
http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html?

did you read it?

did you understand it?

if not, what's the part of the docs you didn't understand?

rgds

gregor


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



Meaning of LoadModule jk_module libexec/mod_jk.so in httpd.conf

2009-02-04 Thread randhir . singh
I have seen the following set of statements in APACHE_HOME/conf/httpd.conf
file,$


LoadModule jk_module libexec/mod_jk.so
JkWorkersFile /usr/local/apache1.3/conf/workers.properties
JkLogFile /usr/local/apache1.3/logs/mod_jk.log
JkLogLevel debug


I do not understand what is meant by these above lines and what
functionality they implement in APACHE. I have seen mod_jk.so in the path
$APACHE_HOME/libexec.

I hope, my question is clear.

Please, help in solving the doubt.

regards

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



Display URL without port

2009-02-04 Thread randhir . singh
We are using both apache and tomcat in our environment. I wanted
information on how to display a URL without port. In, our live
environment, when we say http://reselleraccount.directonpc.com, it
automatically takes it as http://reselleraccount.directonpc.com:10080. We
are migrating to new server. In the new server, when I gave
http://reselleraccount.directonpc.com, it displays like 'RED Hat Linux
Test Page'.

I guess, I need to make some changes in our apache installation in our new
server to get it to take 10080 automatically?

I hope, my question is clear.

Please, help in solving the doubt.

regards



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



Copy Apache

2009-02-03 Thread randhir . singh
I have a requirement to migrate our application to a better configuration
server. For this, can I copy apache from the present server to the new
server? So, my question is whether we can just copy the apache folder to
the new server or does it have to be installed? For tomcat, I had copied
from the source to the destination as it is perfectly fine to copy tomcat.

I hope, my question is clear.

Please, help in solving the doubt.

regards

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



No workers.properties file in $TOMCAT_HOME/conf

2009-02-03 Thread randhir . singh
I downloaded tomcat, intalled it but there is no file workers.properties
in $TOMCAT_HOME/conf. I tried 2 downloads, the tomcat 4.1 and 5.5 series.
The TOMCAT & JAVA home needs to be set in workers.properties files.

I hope, my question is clear.

Please, help in solving the doubt.

regards

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



Documentation on the working of tomcat and architecture

2009-02-03 Thread randhir . singh
I need some good documentation on the working and architecture of TOMCAT.
Actually, I have copied tomcat from our old server which has to be
migrated to a new server but, the tomcat is not starting.

So, I want some good documentation on tomcat.

I hope, my question is clear.

Please, help in solving the doubt.

regards

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



Able to access URL without port

2009-02-03 Thread randhir . singh
I had a doubt of something I had heard with regard to the access of URL
possible without port number if apache is used in the environment. We have
our application running with JBOSS as the AS and tomcat as the web server.
My question is that is the URL,

http://application-URL:10080

assuming tomcat is running on port 10080 can be accessed like

http://application-URL

without the port number if apache is also installed.

I hope, my question is clear.

Please, help in solving the doubt.

regards


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