You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Farrukh Najmi <fa...@wellfleetsoftware.com> on 2012/03/29 00:31:00 UTC
Setting JVM log location for tomcat 7.0.26
Can someone please tell me how I can configure the location for the JVM
log file for Tomcat 7. Thanks for your help.
--
Regards,
Farrukh Najmi
Web: http://www.wellfleetsoftware.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Setting JVM log location for tomcat 7.0.26
Posted by Pid <pi...@pidster.com>.
On 29/03/2012 00:44, Farrukh Najmi wrote:
> On 03/28/2012 07:28 PM, Konstantin Kolinko wrote:
>> 2012/3/29 Farrukh Najmi<fa...@wellfleetsoftware.com>:
>>> Can someone please tell me how I can configure the location for the
>>> JVM log
>>> file for Tomcat 7. Thanks for your help.
>>>
>> 1. What is "JVM log file"
>
> I want to get a log file with a thread dump in the tomcat jvm. The
> reason is that I have a deadlock during startup of my jvm and I want to
> understand and resolve it.
> This happens when my webapp is deployed in Tomcat 7.0.26 but not when
> deployed in Glassfish 3.1.2.
>
>
> In Glassfish I can specify the following options to indicate where I
> want the JVM log file to be created which contains the thread dump on a
> SIGINT:
>
> -XX:+LogVMOutput -XX:LogFile=/tmp/jvm.log
>
>
>> 2. There is "Logging" chapter in the User's Guide. Did it not help?
>
> That did not seem to help.
Which log files did you look in?
p
--
[key:62590808]
Re: Setting JVM log location for tomcat 7.0.26
Posted by Farrukh Najmi <fa...@wellfleetsoftware.com>.
Thank you Konstantin! That worked. Sorry I should have RTFM better.
On 03/29/2012 05:54 AM, Konstantin Kolinko wrote:
> 2012/3/29 Farrukh Najmi<fa...@wellfleetsoftware.com>:
>> On 03/28/2012 07:28 PM, Konstantin Kolinko wrote:
>>> 2012/3/29 Farrukh Najmi<fa...@wellfleetsoftware.com>:
>>>> Can someone please tell me how I can configure the location for the JVM
>>>> log
>>>> file for Tomcat 7. Thanks for your help.
>>>>
>>> 1. What is "JVM log file"
>>
>> I want to get a log file with a thread dump in the tomcat jvm. The reason is
>> that I have a deadlock during startup of my jvm and I want to understand and
>> resolve it.
>> This happens when my webapp is deployed in Tomcat 7.0.26 but not when
>> deployed in Glassfish 3.1.2.
>>
>>
>> In Glassfish I can specify the following options to indicate where I want
>> the JVM log file to be created which contains the thread dump on a SIGINT:
>>
>> -XX:+LogVMOutput -XX:LogFile=/tmp/jvm.log
>>
> Read RUNNING.txt and use either CATALINA_OPTS or JAVA_OPTS environment
> variable. There is a comment describing them at the top of
> bin/catalina.sh
>
> The recommended way to set them is to create a bin/setenv.sh file.
>
> -XX are command-line options of java executable. They are controlled
> outside of Tomcat - in the scripts that launch it.
>
>
--
Regards,
Farrukh Najmi
Web: http://www.wellfleetsoftware.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Setting JVM log location for tomcat 7.0.26
Posted by Konstantin Kolinko <kn...@gmail.com>.
2012/3/29 Farrukh Najmi <fa...@wellfleetsoftware.com>:
> On 03/28/2012 07:28 PM, Konstantin Kolinko wrote:
>>
>> 2012/3/29 Farrukh Najmi<fa...@wellfleetsoftware.com>:
>>>
>>> Can someone please tell me how I can configure the location for the JVM
>>> log
>>> file for Tomcat 7. Thanks for your help.
>>>
>> 1. What is "JVM log file"
>
>
> I want to get a log file with a thread dump in the tomcat jvm. The reason is
> that I have a deadlock during startup of my jvm and I want to understand and
> resolve it.
> This happens when my webapp is deployed in Tomcat 7.0.26 but not when
> deployed in Glassfish 3.1.2.
>
>
> In Glassfish I can specify the following options to indicate where I want
> the JVM log file to be created which contains the thread dump on a SIGINT:
>
> -XX:+LogVMOutput -XX:LogFile=/tmp/jvm.log
>
Read RUNNING.txt and use either CATALINA_OPTS or JAVA_OPTS environment
variable. There is a comment describing them at the top of
bin/catalina.sh
The recommended way to set them is to create a bin/setenv.sh file.
-XX are command-line options of java executable. They are controlled
outside of Tomcat - in the scripts that launch it.
Best regards,
Konstantin Kolinko
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Setting JVM log location for tomcat 7.0.26
Posted by Farrukh Najmi <fa...@wellfleetsoftware.com>.
On 03/28/2012 07:28 PM, Konstantin Kolinko wrote:
> 2012/3/29 Farrukh Najmi<fa...@wellfleetsoftware.com>:
>> Can someone please tell me how I can configure the location for the JVM log
>> file for Tomcat 7. Thanks for your help.
>>
> 1. What is "JVM log file"
I want to get a log file with a thread dump in the tomcat jvm. The
reason is that I have a deadlock during startup of my jvm and I want to
understand and resolve it.
This happens when my webapp is deployed in Tomcat 7.0.26 but not when
deployed in Glassfish 3.1.2.
In Glassfish I can specify the following options to indicate where I
want the JVM log file to be created which contains the thread dump on a
SIGINT:
-XX:+LogVMOutput -XX:LogFile=/tmp/jvm.log
> 2. There is "Logging" chapter in the User's Guide. Did it not help?
That did not seem to help.
--
Regards,
Farrukh Najmi
Web: http://www.wellfleetsoftware.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Setting JVM log location for tomcat 7.0.26
Posted by Konstantin Kolinko <kn...@gmail.com>.
2012/3/29 Farrukh Najmi <fa...@wellfleetsoftware.com>:
>
> Can someone please tell me how I can configure the location for the JVM log
> file for Tomcat 7. Thanks for your help.
>
1. What is "JVM log file"
2. There is "Logging" chapter in the User's Guide. Did it not help?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org