A PEGA0040 alert occurs when a write operation saves a single Storage Stream BLOB (pzPVStream property value) that is larger in bytes than the threshold value. The write operation is not cancelled, but the alert indicates that memory performance of your system may be affected by large property values.
The alert identifies the pzInsKey that was written, and its size in bytes.
Wrote blob to database with compressed size 3158486 pzInsKey: RULE-FILE-BINARY HELPINDEX PXHELPINDEXBINARY!ZIP #20100215T113526.121 GMT
You can modify the default settings in the alerts section of the prconfig.xml
file, as follows:
prconfig.xml
file and update these alerts sections:enabled
<env name = “alerts/database/blobsizewritten/enabled" value="true"/>
The enabled
value is a boolean. To turn off the alert, change the value to "false".
threshold
<env name = “alerts/database/blobsizewritten/threshold" value="3"/>
The threshold
value is a positive integer in megabytes (default is 3). This is checked against the compressed size of the BLOB being written.
As an alternative to the prconfig.xml file, you can use Dynamic System Settings to configure your application.
See How to create or update a prconfig setting.
Examine the record being written (pzInsKey) and determine if the entire BLOB is needed. Usually, you can break the data into additional logical segments (as dictated by your application).
Consult these PDN articles: