You can increase the VM arguments, on %PUBLISHER_INSTALL_DIR%\publisher.ini, like:
-startup
plugins/org.eclipse.equinox.launcher_1.5.0.v20180512-1130.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.700.v20180518-1200
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/rsa2md-workspace
-Xms256m
-Xmx4g
The value to set the Xmx size depends on the specifications of the system you are working on. If this is not enough, you could try to increase again the Xmx value.
If during your work, the "Out of Memory" Error dialog box appears, change the java heap size and the MaxPermSize directly in this dialog box.
In the Xmx field, change the number of heap size '600' to a larger heap size in megabytes.
You can also change the java heap size in the magicdraw.properties file, in the line:
JAVA_ARGS=-Xmx600M
.