Hi Tabrayz,
After analysis of your shared log file i found
dbdynpdb2: table DYNPSOURCE not found => synonym in shadow instance?
C OCIStmtExecute() failed with -1=OCI_ERROR
C SQL error 904:
C *** ERROR => Error 904 in stmt_fetch() from oci_execute_stmt(), orpc=0
A good news here is, you need not to be worry for the issue
dbdynpdb2: table DYNPSOURCE not found => synonym in shadow instance?
as per SAP Note 2108598 - "dbdynpdb2: table DYNPSOURCE has no VERSION column" in shadow system
This does not relate to an error. You can ignore the entries in the trace files.
Rest you could refer SAP Note 1918279 - performance analysis for ACT_UPG phase as mentioned earlier by @Reagan to overcome memory related issues if any.
Hope you'll find this info as a useful one.
Good luck !!