question

Upvotes
Accepted
3 0 1 2

Is Java RFA API Zero-GC compatible

gcscreenshot1.pnggcscreenshot2.png

Hi,

When running a Java based RFA provider, the RFA API internally allocates objects in order to handle incoming RWF messages (Screenshot 1). These objects are correctly collected during GC cycle (Screenshot 2), but ideally, I would like to avoid object creation all together.

Is there any way to make the RFA API to pool these objects rather than create and throw away?

treprfarfa-apiapiobject
gcscreenshot1.png (60.1 KiB)
gcscreenshot2.png (81.5 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Reuters, shouldn't be too tricky to answer?

1 Answer

Upvotes
Accepted
11.5k 16 7 10

Hello @Anton.Crona

The RFA Java API lets the application use the OMMPool object factory. The OMMPool is a factory for creating OMM objects and provides an efficient means for releasing and reusing OMM objects created frequently.


However, the OMMPool does not support that specific memory/GC behavior that your have mention.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea