Exception with huge Audit Trail in SOA Suite

Sometimes when you go to the Enterprise Manager to view the audit trail from a complex flow, the exception below may be thrown, and the audit trail is not fully constructed.

Exception occured while retrieving the Flowtrace XML for the Composite Instance; ECID: 2d0237859052c116:-7239f8e2:1495cf2793d:-8000-0000000000002db1
>> java.rmi.RemoteException: EJB Exception: ; nested exception is: 
>>> 	java.lang.RuntimeException: Requested audit trail size is larger than threshold 1048576 chars
>>> 	at weblogic.rjvm.ResponseImpl.unmarshalReturn(
>>> 	at weblogic.rmi.internal.BasicRemoteRef.invoke(
>>> 	at Source)
>>> 	at
>>> 	at
>>> 	at
>>> 	at
>>> 	at


This happens because the instanceTrackingAuditTrailThreshold parameter is used to limit the audit trial size. It prevents huge audit trails to potentially consume a lot or all the memory available on the SOA server. The default value of instanceTrackingAuditTrailThreshold parameter is 1MB.

To increase the value of instanceTrackingAuditTrailThreshold parameter, do the following:
Go to Enterprise Manager and expand the Farm and SOA nodes. Right-click the soa-infra (AdminServer) node and choose SOA Administration > Common Properties.
In the SOA Infrastructure Common Properties page, click the More SOA Infra Advanced Configuration Properties link.
In the System MBean Browser page, click the AuditConfig link.
In the Attribute: AuditConfig page, increase the value of instanceTrackingAuditTrailThreshold parameter.


Done! Now you can see huge audit trails, but take careful!