dclaar avatar image
dclaar Suspended asked dclaar Suspended posted

What's And why does it have -Xmx256m hard-coded?
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

PreetS avatar image
PreetS answered PreetS posted

itestclihelper is used by itestcli to launch iTest in headless mode. 

The Xmx value should probably be updated to the one set in the iTest.ini file.


We recently updated the iTest.ini to use a higher default value for the memory. This should have bene updated with it. 

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

dclaar avatar image dclaar commented ·

No, it should be updated so that it automatically uses the value in iTest.ini! Otherwise, what's the point of having a .ini file?


Is there a similar file in windows?

Message Edited by dclaar on 06-29-2009 02:45 PM
0 Likes 0 ·
PreetS avatar image PreetS dclaar commented ·

There is no equivalent file for windows.


The purpose of this file is to bypass the eclipse launcher to make iTest work on completely headless machines that do not have GTK installed. Although eclipse launcher can start iTest in headless mode, it still requires the GTK libraries to be present. The helper invokes Java directly. Unfortunatley, it is the eclipse launcher that loads the .ini file. 


We will investigate if we can synch up the helper with the .ini file automatically. (for future releases)



0 Likes 0 ·
dclaar avatar image dclaar PreetS commented ·

I only care because of this:

sptest 8058 1 8 08:30 ? 00:36:10 /usr/local/fanfare/itest/jre/bin/java -Xmx256M -Dfile.encoding=UTF-8 -XX:PermSize=64M -XX:MaxPermSize=128M -cp /usr/local/fanfare/itest/plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar org.eclipse.equinox.launcher.Main -os linux -ws gtk -arch x86 -nosplash -data /home/sptest/itest/rel3.0/ -configuration @user.home/.itestcliconfig_3.4 --headless --runtime --idleTime 15



Which seems to say that my cron job is running with 256M. But I think I might be OK, because I turn around and call itestcli myself, from within itest. If I change to exec run, though, it might cause a problem if I don't remember to update the file...

0 Likes 0 ·
cocov avatar image cocov commented ·

I think that the memory heap size value "-Xmx512M" defined in iTest.ini is not being loaded. I changed iTest.ini as below:










And when I run my script using the itestcli, I am seeing the Xmx256M.


ps -ef | grep iTest

dummy 21960 21957 0 08:52:03 pts/46 0:00 /ppreg/iTest_3.4/jre/bin/java -classpath /ppreg/iTest_3.4/itestcli.jar:/ppreg/i

dummy 21957 21956 0 08:52:03 pts/46 0:00 /bin/sh /ppreg/iTest_3.4/ -p fileName=/home/dummy/mobile_stat

dummy 22120 1 0 08:52:20 pts/46 0:04 /ppreg/iTest_3.4/jre/bin/java -Xmx256M -Dfile.encoding=UTF-8 -XX:PermSize=64M -

dummy 22195 3671 0 08:52:28 pts/44 0:00 grep iTest

0 Likes 0 ·
HosoonK avatar image HosoonK cocov commented ·

As PreetS pointed, iTest.ini setting is used when you launch iTest in GUI mode.

When is used it launches iTest in headless mode using the You can modify the -Xmx value to 512.

0 Likes 0 ·
KumarS avatar image KumarS HosoonK commented ·

itestcli has to launch iTest to perform tests. On different platforms, we launch iTest differently:


1. On Windows, we launch "iTest.exe --headless otherargs". iTest.exe consults the ".ini" file when starting up.

2. On Linux and Solaris, we launch "" if user requested headless mode (default) and iTest if "--guiserver" option was used on itestcli. "" was created to truly support machines which do not have any display and do not have certain graphics libraries. This is because "iTest" executable on Linux still links with certain GUI libraries and one gets "linker" errors when launching iTest on such machines.


One downside of #2 is that you have to remember to increase the -Xmx and other settings in itest.ini into as well.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.