Printer FriendlyEmail Article Link

TTworkbench: How to enhance TTmanServer memory?

Environment/Versions
TTworkbench Windows/Linux
Answer
Open TTmanServer.bat file, with which you start TTmanServer, with any text editor, and modify the following:
set JVMPARAM=-Xmx1536m
Increase the value so far available, e.g.
set JVMPARAM=-Xmx4000m
Save and restart TTmanServer


Alternative:
In TTmanClient class set VM arguments for TE:
After
    client.connect(remoteHost, remotePort, credentials, new IExecutionHandler() { ... }

Add
    client.setJVMArguments("-Xmx1024m", "-XX:MaxPermSize=512m");

JavaDoc
void setJVMArguments(java.lang.String... vmArguments) throws java.io.IOException
Set Java VM Arguments for the execution process. The method has to be called before a campaign (CLF) is loaded otherwise the effect is observed only after the next #loadTestSuiteFromFile(File) or #loadTestSuiteFromString(String) method call.
Parameters:
vmArguments - list of parameters that will be used for the execution process
Throws:
java.io.IOException - thrown if not connected or network error occurred

Product : Tool Handling