LinkedIn
Copied!

PEGA0029 alert: HTML stream size exceeds limit

The PEGA0029 alert is generated when the size in bytes of any HTML stream sent to a browser exceeds a threshold value. This alert identifies the keys to the top-level stream rule that crossed the threshold.

Example message text

Stream exceeded client response byte threshold (pxObjClass=Rule-Obj-HTML;pyStreamName=Web-Login;).

The other fields in the alert log message identify the pzInsKey or the rule class of the stream and its keys.

Default prconfig.xml settings

In the alerts section of the prconfig.xml file you can update the following default values for this alert:

<env name="alerts/clientbytesreturned/enabled" value="true" />

The enabled setting toggles the alert on (true) or off (false). The default is true.

<env name="alerts/clientbytesreturned/threshold" value="204800" />

The threshold setting is a positive integer identifying a size in bytes. The default threshold is 204,800 bytes (200 KB).

<env name="alerts/clientbytesreturned/ignoredevusers" value="true" />

The ignoredevusers setting toggles the alert for streams produced in a developer portal (authenticated users who can check out rules). The default is true, so the alert is suppressed. Set the value to false to activate the alert.

Reasons for the alert

Very large HTML streams add to overall network traffic and usually require the browser to work longer to render the display, slowing the user's perception of system performance.

The alert can occur in the following situations:

  • A screen contains too much content. Consider moving content onto separate screens. Also, try moving any non-dynamic elements such as CSS style sheets and JavaScript script code into static content by using a text file rule (Rule-File-Text rule type) to reduce browser traffic and take advantage of client-side caching mechanisms.
  • A screen contains large lists. If possible, implement a paging mechanism for the list.
Suggest Edit

33% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.