Setting Java memory

76 views
Skip to first unread message

Gary Murphy

unread,
Jul 21, 2017, 11:21:04 AM7/21/17
to TopBraid Suite Users
I'm having some trouble trying to increase my Java -Xmx settings.

From the topquadrant FAQ ...

Can I increase the amount of memory for Composer?

Increasing the amount of memory available to Composer involves setting the -Xmx value for the maximum Java heap size. The setting is packaged in the .ini file with the command line parameters for starting Composer.

There is a caution that in Windows you must edit the .ini.orig file, and no explicit instructions for Linux installations, however I edited BOTH

/opt/topbraid-5.3.1/TopBraid Composer.ini:-Xmx4096M
/opt/topbraid-5.3.1/TopBraid Composer.ini.orig:-Xmx4096M

and yet when I run, the process command line still says -Xmx2048 ...

16940 ?        Sl     1:18 /opt/topbraid//./jre/bin/java -Dorg.eclipse.jetty.server.Request.maxFormKeys=2000 -Xmx2048M -Xms640M -XX:SurvivorRatio=16 -XX:NewRatio=3 -jar /opt/topbraid//plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar -os linux -ws gtk -arch x86_64 -showsplash /opt/topbraid//plugins/org.topbraidcomposer.maestro_5.3.0.v20170419-1607R.jar/splash.bmp -launcher /opt/topbraid/TopBraid Composer -name TopBraid Composer --launcher.library /opt/topbraid//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.401.v20161122-1740/eclipse_1618.so -startup /opt/topbraid//plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar --launcher.overrideVmargs -exitdata 158002 -vm /opt/topbraid//./jre/bin/java -vmargs -Dorg.eclipse.jetty.server.Request.maxFormKeys=2000 -Xmx2048M -Xms640M -XX:SurvivorRatio=16 -XX:NewRatio=3 -jar /opt/topbraid//plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar

And in the Composer error log I see

!ENTRY org.topbraidcomposer.core 2 0 2017-07-21 10:56:00.924
!MESSAGE P2 modified ini file, switching it back

What am I missing here?

Richard Cyganiak

unread,
Jul 21, 2017, 12:27:22 PM7/21/17
to topbrai...@googlegroups.com
Gary,

This might just show my ignorance of Linux, but it looks like you are editing the ini files in /opt/topbraid-5.3.1 but the app is launched from /opt/topbraid. Are these two different copies?

Richard
--
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gary Murphy

unread,
Jul 21, 2017, 1:49:51 PM7/21/17
to TopBraid Suite Users
No conflict, the launch is by way of a symbolic link :)

/opt$ ls -l topbraid
lrwxrwxrwx 1 root root 14 Jun  6 14:02 topbraid -> topbraid-5.3.1

I do this when I upgrade so that my dev environment is always looking at the 'current' version. Just to be sure, though, I had already deleted the prior installations ;)



To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-users+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages