Re: [Dev] [carbondump] Updating carbondump.sh for Java 8

2017-03-24 Thread KasunG Gajasinghe
+1. For Java7, we can collect permgen, and for Java8, we can collect
metaspace dumps.

On Fri, Mar 24, 2017 at 10:59 AM, Isuru Perera  wrote:

> Hi Nira,
>
> I also thought that. I think may be we can do the version check also. I'm
> hoping to do a review on the script. Since we rarely use that script to
> debug issues.
>
> Thanks!
>
> On Fri, Mar 24, 2017 at 10:51 AM, Niranjan Karunanandham <
> niran...@wso2.com> wrote:
>
>> Hi isuru,
>>
>> On Fri, Mar 24, 2017 at 10:38 AM, Isuru Perera  wrote:
>>
>>> Hi,
>>>
>>> It'll be useful to have those details. I think we can just update the
>>> command to work in Java 8 for now. Connecting to the JVM to get these kinds
>>> of stats will have an impact on the server, but it should be okay as we run
>>> carbondump to debug the server.
>>>
>>> I think we must go through all commands in the carbondump and make sure
>>> that all of those are still relevant for today. I can do that later.
>>>
>> Shouldn't we check if the server is running in Java 7 or Java 8 and then
>> check accordingly?
>>
>>
>>>
>>> Thanks!
>>>
>>> Best Regards,
>>>
>>> On Thu, Mar 23, 2017 at 10:43 PM, Milinda Perera 
>>> wrote:
>>>
 Hi,

 In carbondump.sh [1] we retrieve  permgen stats in Java Heap (jmap
 -permstat $PID) . Since Java 8 onwards, it is replaced by Metaspace and
 permstat option is no longer exists in jmap tool.

 Metaspace can be retrieved by: jmap -clstats 

 Shall we remove permstat and replace with clstats or just remove
 retrieving permgen stats? Is  Is it useful retrieving permstat or clstats
 to figure out errors?
 Whether it may effect on the running server?

 [1] https://docs.wso2.com/display/ADMIN44x/Capturing+System+Data
 +in+Error+Situations

 Thanks,
 Milinda

 --
 Milinda Perera
 Senior Software Engineer;
 WSO2 Inc. http://wso2.com ,
 Mobile: (+94) 714 115 032 <071%20411%205032>


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Isuru Perera
>>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>> about.me/chrishantha
>>> Contact: +IsuruPereraWSO2
>>> 
>>>
>>
>> Regards,
>> Nira
>>
>> --
>>
>>
>> *Niranjan Karunanandham*
>> Associate Technical Lead - WSO2 Inc.
>> WSO2 Inc.: http://www.wso2.com
>>
>>
>
>
> --
> Isuru Perera
> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
> Contact: +IsuruPereraWSO2 
>



-- 

*Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
phone: +1 650-745-4499, 77 678 0813
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [carbondump] Updating carbondump.sh for Java 8

2017-03-23 Thread Isuru Perera
Hi Nira,

I also thought that. I think may be we can do the version check also. I'm
hoping to do a review on the script. Since we rarely use that script to
debug issues.

Thanks!

On Fri, Mar 24, 2017 at 10:51 AM, Niranjan Karunanandham 
wrote:

> Hi isuru,
>
> On Fri, Mar 24, 2017 at 10:38 AM, Isuru Perera  wrote:
>
>> Hi,
>>
>> It'll be useful to have those details. I think we can just update the
>> command to work in Java 8 for now. Connecting to the JVM to get these kinds
>> of stats will have an impact on the server, but it should be okay as we run
>> carbondump to debug the server.
>>
>> I think we must go through all commands in the carbondump and make sure
>> that all of those are still relevant for today. I can do that later.
>>
> Shouldn't we check if the server is running in Java 7 or Java 8 and then
> check accordingly?
>
>
>>
>> Thanks!
>>
>> Best Regards,
>>
>> On Thu, Mar 23, 2017 at 10:43 PM, Milinda Perera 
>> wrote:
>>
>>> Hi,
>>>
>>> In carbondump.sh [1] we retrieve  permgen stats in Java Heap (jmap
>>> -permstat $PID) . Since Java 8 onwards, it is replaced by Metaspace and
>>> permstat option is no longer exists in jmap tool.
>>>
>>> Metaspace can be retrieved by: jmap -clstats 
>>>
>>> Shall we remove permstat and replace with clstats or just remove
>>> retrieving permgen stats? Is  Is it useful retrieving permstat or clstats
>>> to figure out errors?
>>> Whether it may effect on the running server?
>>>
>>> [1] https://docs.wso2.com/display/ADMIN44x/Capturing+System+Data
>>> +in+Error+Situations
>>>
>>> Thanks,
>>> Milinda
>>>
>>> --
>>> Milinda Perera
>>> Senior Software Engineer;
>>> WSO2 Inc. http://wso2.com ,
>>> Mobile: (+94) 714 115 032 <071%20411%205032>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Isuru Perera
>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>> Contact: +IsuruPereraWSO2 
>>
>
> Regards,
> Nira
>
> --
>
>
> *Niranjan Karunanandham*
> Associate Technical Lead - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>
>


-- 
Isuru Perera
Associate Technical Lead | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha
Contact: +IsuruPereraWSO2 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [carbondump] Updating carbondump.sh for Java 8

2017-03-23 Thread Niranjan Karunanandham
Hi isuru,

On Fri, Mar 24, 2017 at 10:38 AM, Isuru Perera  wrote:

> Hi,
>
> It'll be useful to have those details. I think we can just update the
> command to work in Java 8 for now. Connecting to the JVM to get these kinds
> of stats will have an impact on the server, but it should be okay as we run
> carbondump to debug the server.
>
> I think we must go through all commands in the carbondump and make sure
> that all of those are still relevant for today. I can do that later.
>
Shouldn't we check if the server is running in Java 7 or Java 8 and then
check accordingly?


>
> Thanks!
>
> Best Regards,
>
> On Thu, Mar 23, 2017 at 10:43 PM, Milinda Perera 
> wrote:
>
>> Hi,
>>
>> In carbondump.sh [1] we retrieve  permgen stats in Java Heap (jmap
>> -permstat $PID) . Since Java 8 onwards, it is replaced by Metaspace and
>> permstat option is no longer exists in jmap tool.
>>
>> Metaspace can be retrieved by: jmap -clstats 
>>
>> Shall we remove permstat and replace with clstats or just remove
>> retrieving permgen stats? Is  Is it useful retrieving permstat or clstats
>> to figure out errors?
>> Whether it may effect on the running server?
>>
>> [1] https://docs.wso2.com/display/ADMIN44x/Capturing+System+Data
>> +in+Error+Situations
>>
>> Thanks,
>> Milinda
>>
>> --
>> Milinda Perera
>> Senior Software Engineer;
>> WSO2 Inc. http://wso2.com ,
>> Mobile: (+94) 714 115 032 <071%20411%205032>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Isuru Perera
> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
> Contact: +IsuruPereraWSO2 
>

Regards,
Nira

-- 


*Niranjan Karunanandham*
Associate Technical Lead - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [carbondump] Updating carbondump.sh for Java 8

2017-03-23 Thread Isuru Perera
Hi,

It'll be useful to have those details. I think we can just update the
command to work in Java 8 for now. Connecting to the JVM to get these kinds
of stats will have an impact on the server, but it should be okay as we run
carbondump to debug the server.

I think we must go through all commands in the carbondump and make sure
that all of those are still relevant for today. I can do that later.

Thanks!

Best Regards,

On Thu, Mar 23, 2017 at 10:43 PM, Milinda Perera  wrote:

> Hi,
>
> In carbondump.sh [1] we retrieve  permgen stats in Java Heap (jmap
> -permstat $PID) . Since Java 8 onwards, it is replaced by Metaspace and
> permstat option is no longer exists in jmap tool.
>
> Metaspace can be retrieved by: jmap -clstats 
>
> Shall we remove permstat and replace with clstats or just remove
> retrieving permgen stats? Is  Is it useful retrieving permstat or clstats
> to figure out errors?
> Whether it may effect on the running server?
>
> [1] https://docs.wso2.com/display/ADMIN44x/Capturing+System+Data
> +in+Error+Situations
>
> Thanks,
> Milinda
>
> --
> Milinda Perera
> Senior Software Engineer;
> WSO2 Inc. http://wso2.com ,
> Mobile: (+94) 714 115 032 <071%20411%205032>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Isuru Perera
Associate Technical Lead | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha
Contact: +IsuruPereraWSO2 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [carbondump] Updating carbondump.sh for Java 8

2017-03-23 Thread Milinda Perera
Hi,

In carbondump.sh [1] we retrieve  permgen stats in Java Heap (jmap
-permstat $PID) . Since Java 8 onwards, it is replaced by Metaspace and
permstat option is no longer exists in jmap tool.

Metaspace can be retrieved by: jmap -clstats 

Shall we remove permstat and replace with clstats or just remove retrieving
permgen stats? Is  Is it useful retrieving permstat or clstats to figure
out errors?
Whether it may effect on the running server?

[1]
https://docs.wso2.com/display/ADMIN44x/Capturing+System+Data+in+Error+Situations

Thanks,
Milinda

-- 
Milinda Perera
Senior Software Engineer;
WSO2 Inc. http://wso2.com ,
Mobile: (+94) 714 115 032
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev