WebSphere Portal V8 migration from V7

This week i am working on a migration project.  Everything was fine until i ran

 ./WASPostUpgrade.sh /waspreupgradebackup -profileName wp_profile -oldProfile wp_profile -username wpsadmin -password ****** -includeApps true -backupConfig false -javaoption -Xmx3056m

JVMDUMP032I JVM requested Java dump using '/opt/IBM/WebSphere/AppServer/bin/javacore.20140729.090005.3839.0009.txt' in response to an event
JVMDUMP010I Java dump written to /opt/IBM/WebSphere/AppServer/bin/javacore.20140729.090005.3839.0009.txt
Java heap space
JVMDUMP032I JVM requested Snap dump using '/opt/IBM/WebSphere/AppServer/bin/Snap.20140729.090005.3839.0010.trc' in response to an event
JVMDUMP010I Snap dump written to /opt/IBM/WebSphere/AppServer/bin/Snap.20140729.090005.3839.0010.trc
JVMDUMP013I Processed dump event "systhrow", detail "java/lang/OutOfMemoryError".
MIGR0272E: The migration function cannot complete the command

I run again the command with Xmx4096m but the command doesn´t run anymore and the logs show that the parameter -includeApps is not valid.

The solution was

1 - Delete the wp_profile
2 - Delete the JCR index collections
3 - Run WASPreupgrade on the source portal
4 - Recreate the wp_profile on the target machine
5 - Run the WASPostUpgrade with Xmx510m