Cool, thanks!
Would love to see the presentation/slides/code if it will be available 
online..

On Thursday, February 8, 2018 at 4:07:58 PM UTC+2, Andrei Pangin wrote:
>
> jmm_GetThreadAllocatedMemory at 
> http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/file/a2c8195708cc/src/share/vm/services/management.cpp#l2209
>
>
> The biggest problem with this method is the synchronization on the global 
> Threads_lock and the iteration over the whole thread list.
> For the same reason we could not call this method too often in our 
> production applications.
> As a workaround I've re-implemented 'GetThreadAllocatedMemory' for 
> current thread using VMStructs. This is exactly the case I'm planning to 
> cover in my upcoming JPoint talk: 
> https://jpoint.ru/en/talks/7lh7kkir1ye6uamik4w4cs/
>
>
> четверг, 8 февраля 2018 г., 13:04:12 UTC+3 пользователь Maxim Terletsky 
> написал:
>>
>> And another question - where can I find implementation code for that 
>> getThreadAllocatedMemory1 
>> ? 
>> The reason I am asking is that I see that calling this code does take 
>> some time (our request time grown under peak load with that function). 
>> While the growth is not substantial I am curious to understand the reason 
>> why this getThreadAllocatedMemory1 method takes time.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"mechanical-sympathy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to