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?

Best Answer

  • wasin.w
    wasin.w admin
    Answer ✓

    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.

Answers