Why "OFSLog" shows the message “Not enough space”?
Issue
Why does OFSLog display the message "Not enough space" and why does OFS stop responding after running for some time?
Product Line
- OPC Factory Server (OFS)
Environment
- OFS V3.63
- OFS V3.63 SP2
Resolution
In some situations, the memory consumption of the OFS process may continuously increase over time. When the available memory becomes insufficient, OFSLog may display the message "Not enough space", and OFS may stop operating correctly.
This behavior is caused bymemory fragmentation, which can have effects similar to a memory leak. The issue is related to the GarbageCollector feature, which is enabled by default in affected versions.
To deactivate the GarbageCollector:
- Stop the OFS service.
- Open the following file:
C:\ProgramData\Schneider Electric\OFS\3.63.0.0\ofsinternal.xml - Locate the following entry: <add value="true" key="GarbageCollector"/>
- Change it to: <add value="false" key="GarbageCollector"/>
- Save the file and restart OFS.
After the change, verify in the OFS log that the GarbageCollector is not active.
Applicable Conditions
- Applies to OFS V3.63.
- In OFS V3.63 SP2, the GarbageCollector is disabled by default.