question

Upvotes
Accepted
2 1 1 4

traceMsgFileMaxFileSize

We use RFA.NET 8

We have set the following in the configuration file

\Connections\RFA_IDN\traceMsgFileMaxFileSize = 100000000

However we notice that the files getting created are crossing the 100MB mark and keeps growing unlimited till the process is stopped.

Following is the configuration in the entirety

\Connections\RFA_IDN\traceMsgToFile = True
\Connections\RFA_IDN\traceRespMsg = True
\Connections\RFA_IDN\traceReqMsg = True
\Connections\RFA_IDN\traceMsgFileMaxFileSize = 100000000
\Connections\RFA_IDN\traceMsgMultipleFiles = True
\Connections\RFA_IDN\traceMsgFileName = "F:\Logs\RFA\RSSL_IDN_log"
\Connections\RFA_IDN\traceMsgMultipleFiles = true

How do we make the files roll to a new trace file after the size is exceeded

treprfarfa-api
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.

Upvotes
Accepted
7.6k 15 6 9

@rbanerjee

For testing purpose, Can you reduce MaxFileSize to small value such as 100000?

I have copied your configuration file and test with StarterConsumer from RFA8.1.0 package and not found the issue. RFA generates mulitple files when the size over the max file size.

Below is screen shot from running directory.

And below is my config. I just test it with multiple FX RICs and change MsgFileName

ExampleRFA.cfg
\Connections\RFA_IDN\connectionType		= "RSSL"
\Connections\RFA_IDN\rsslPort 			= "14002"
\Connections\RFA_IDN\hostName			= "<ADS Server>"
\Connections\RFA_IDN\traceMsgToFile = True
\Connections\RFA_IDN\traceRespMsg = True
\Connections\RFA_IDN\traceReqMsg = True
\Connections\RFA_IDN\traceMsgFileMaxFileSize = 100000
\Connections\RFA_IDN\traceMsgMultipleFiles = True
\Connections\RFA_IDN\traceMsgFileName = "RSSL_IDN_log"
\Connections\RFA_IDN\traceMsgMultipleFiles = true
\Sessions\Session1\connectionList= "RFA_IDN"
StarterConsumer.cfg
\itemList = "EUR=,JPY=,AUD=,HKD=,THB=,0001.HK,0005.HK"

screenshot2.png (37.2 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.

Upvotes
2 1 1 4

When I run the configuration on the StarterConsumer application I see the same behavior as you have shown above. However in the Prod application where we have more than 2000 subscriptions and a 1GB file size setting, RFA does not seem to respect that.

\Sessions\GCM_1\connectionList = "RFA_IDN"
\Sessions\GCM_1\threadModel = "Single"

\Connections\RFA_IDN\connectionType = "RSSL"
\Connections\RFA_IDN\rsslPort = "14002"
\Connections\RFA_IDN\softLinkInstanceSharing = True
\Connections\RFA_IDN\connectRetryInterval = 15000
\Connections\RFA_IDN\pingInterval = 20000
\Connections\RFA_IDN\numOutputBuffers = 1500
\Connections\RFA_IDN\messageThrottleRate = 400
\Connections\RFA_IDN\serverList = "trepServerName"
\Connections\RFA_IDN\traceMsgToFile = True
\Connections\RFA_IDN\traceRespMsg = True
\Connections\RFA_IDN\traceReqMsg = True
\Connections\RFA_IDN\traceMsgFileName = "F:\Logs\RFA\RSSL_RFANET_TestConsole_VS120Sub.log"
\Connections\RFA_IDN\traceMsgFileMaxFileSize=1000000000
\Connections\RFA_IDN\traceMsgMultipleFiles = true

How do I go about debugging this issue ?

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