Service Manager / Service Center Practitioners Forum

Error when launching the installer for KM Search Engine 7.0 on a linux server

Garry Wong
Super Contributor.

Error when launching the installer for KM Search Engine 7.0 on a linux server

Hi All, I was wondering if anyone has seen this error before when trying to install the KM Search Engine 7.0 on a Linux server?


Exception in thread "main" java.lang.OutOfMemoryError
        at Method)
        at<init>(Unknown Source)
        at<init>(Unknown Source)
        at com.installshield.boot.streamhandler.ZipURLConnection.getZipFile(Unknown Source)
        at com.installshield.boot.streamhandler.ZipURLConnection.getInputStream(Unknown Source)
        at Source)
        at com.installshield.boot.BootMain.boot(Unknown Source)
        at run.main(Unknown Source)


I receive this error once I execute the setuplinux file.  The java JRE on the server is 1.6.0 and I do not know if it requires 1.5 as it states in the install guide for installing Service Manager. Service Manager seemed to install fine.

Outstanding Contributor.

Re: Error when launching the installer for KM Search Engine 7.0 on a linux server



 your issue is described here:


Work around:

Run the "top" command as a root user and examine the following line:

Mem:   2895892k total,  2589212k used,   306680k free,    61452k buffers

This example shows that there is only about 300 Meg free (306680k) on this machine, out of nearly 3 Gig memory total.

NOTE: Type 'q' to quit when running the "top" command.

You may also use the "free" command on Linux to get similar information.

If the amount of free memory seems okay, then check the "ulimit" setting.  If set to something other than "unlimited", this could cause a Java stack overflow error.


In order to set the amount of memory that Java reserves for the installer, do the following before running "setuplinux":

export JAVA_ARGS=-Xmx<Some amount of memory>

For example, to reserve 100 Meg:

export JAVA_ARGS=-Xmx100M

or, to reserve 1 Gigabyte:

export JAVA_ARGS=-Xmx1G


The following command was used to execute the installer, after changing directories to the location of the installer:

./setuplinux -console -is:tempdir /tmp/search -is:log <Full Path to Log File>/search_log.log

The "-is:log" parameter allows debug logging to be directed to "search_log.log".

There should be at least 1 Gig of disk space for the temporary installer directory.  If you do not specify the temporary directory location, then "/tmp" is used on Unix.


HP Support
If you find that this or any post resolved your issue, please be sure
to mark it as an accepted solution.
Please also give kudo if you find it interesting :)