question

Upvotes
Accepted
3 1 2 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 512.0 KiB each and 1.0 MiB total.

Reuters, shouldn't be too tricky to answer?

1 Answer

Upvotes
Accepted
15.1k 28 8 12

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 512.0 KiB each and 1.0 MiB total.