tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Suvendu Sekhar Mondal <suv3...@gmail.com>
Subject Re: How to enable Native Memory Tracking(NMT) in Tomcat?
Date Tue, 07 Mar 2017 19:23:16 GMT
It worked, Mark! When I launched Tomcat from command line, it fired up
Bootstrap loader. Then JMC can print NMT statistics.

I believe tracking NMT is not a common need. Still, it would be
awesome if we can do the same thing with changes in Apache Commons
Daemon.

Thanks!

On Fri, Mar 3, 2017 at 2:06 PM, Mark Thomas <markt@apache.org> wrote:
> On 03/03/17 06:20, Suvendu Sekhar Mondal wrote:
>> Mark,
>> I am running Tomcat as a Windows service.
>
> Then I suspect that supporting this would require changes in Apache
> Commons Daemon which is what Tomcat uses to start the Windows service.
>
> It would probably be quicker for you to run Tomcat from the command line
> to get the debugging information you require - assuming you have a
> one-off need. If you want ongoing monitoring then Daemon changes is
> would be the better option.
>
> Mark
>
>>
>> Thanks!
>> Suvendu
>>
>> On Thu, Mar 2, 2017 at 8:08 PM, Mark Thomas <markt@apache.org> wrote:
>>> On 02/03/17 10:54, Suvendu Sekhar Mondal wrote:
>>>> Hello Everyone,
>>>>
>>>> I am new here. :)
>>>>
>>>> Environment:
>>>> Java Version: Java HotSpot(TM) 64-Bit Server VM version 25.91-b15
>>>> (Java version 1.8.0_91-b15)
>>>> Tomcat Version: Tomcat 8.0.20
>>>> OS Version: Microsoft Windows 8.1 Enterprise
>>>>
>>>> I am trying to enable Native Memory Tracking(NMT) to get internal
>>>> memory usage deatils about Tomcat process which is running on my
>>>> system. I have added following flags to Tomcat's Java options:
>>>> -XX:+UnlockDiagnosticVMOptions
>>>> -XX:NativeMemoryTracking=summary
>>>> -XX:NativeMemoryTracking=detail
>>>>
>>>> After that I restarted Tomcat. When I tried to use "VM.native_memory"
>>>> command either from JCMD or JMC, I am getting "Native memory tracking
>>>> is not enabled" message. When I shutdown Tomcat, following message is
>>>> getting printed on STDERR log:
>>>> "Java HotSpot(TM) 64-Bit Server VM warning: Native Memory Tracking did
>>>> not setup properly, using wrong launcher?".
>>>>
>>>> I found this article which discussed about NMT problem in custom JVM launcher:
>>>> https://blogs.oracle.com/poonam/entry/using_nmt_with_custom_jvm
>>>>
>>>> My question is, does that stands true for Tomcat also? Is there any
>>>> other way to enable NMT in Tomcat?
>>>
>>> No idea. How did you start Tomcat?
>>>
>>> Mark
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

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


Mime
View raw message