Welcome to Knowage Q&A, where you can ask questions and receive answers from other members of the community.
0 votes
1 view

Hello,

During the installation process I get "java.lang.OutOfMemoryError: java heap space". When I click on "show log file" I get "an error occurred while starting the browser" I looked in the installed folders. There was a folder called logs, but unfortunately I found no log file there. I don't know where the log file is or I would share that with You.

Anyway, I am trying to install Knowage in Linux Mint XFCE in virtualbox running on a Windows 10 host. My base memory is set to 2gb (2046mb). I may be able to increase this if this is the issue.

Thank You in advance for any help that You may have to offer.

Regards'

73
-Grace
NNNN
z

Environment Knowage 6.3., Linux XFCE x86 (in virtualbox)
in Installer by (120 points)

I have increase the memory allocation to 6gb. I still have the same problem. Here is the log file.

Log File (install4jError2687407053542867646.log):


Exception:

In Static members:

In action "Modify MySQL scripts [Run script]" (screen "Display progress"), property "Script":

java.lang.OutOfMemoryError: Java heap space

at java.util.Arrays.copyOf(Arrays.java:3332)

at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:124)

at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:596)

at java.lang.StringBuffer.append(StringBuffer.java:367)

at java.io.BufferedReader.readLine(BufferedReader.java:370)

at java.io.BufferedReader.readLine(BufferedReader.java:389)

at org.apache.commons.io.IOUtils.readLines(IOUtils.java:1033)

at org.apache.commons.io.IOUtils.readLines(IOUtils.java:987)

at org.apache.commons.io.FileUtils.readLines(FileUtils.java:1784)

at org.apache.commons.io.FileUtils.readLines(FileUtils.java:1819)

at com.install4j.script.I4jScript_Internal_0.fileRemoveEmptyLines(I4jScript_Internal_0.java:475)

at com.install4j.script.I4jScript_Internal_179.eval(I4jScript_Internal_179.java:8)

at com.install4j.script.I4jScript_Internal_179.evaluate(I4jScript_Internal_179.java:*33)

at com.install4j.runtime.installer.helper.Script.evaluate(Script.java:33)

at com.install4j.runtime.installer.ContextImpl.runScript(ContextImpl.java:188)

at com.install4j.runtime.installer.ContextImpl.runScript(ContextImpl.java:182)

at com.install4j.runtime.beans.actions.control.RunScriptAction.execute(RunScriptAction.java:34)

at com.install4j.runtime.beans.actions.SystemInstallOrUninstallAction.install(SystemInstallOrUninstallAction.java:29)

at com.install4j.runtime.installer.ContextImpl$7.executeAction(ContextImpl.java:1668)

at com.install4j.runtime.installer.ContextImpl$7.fetchValue(ContextImpl.java:1659)

at com.install4j.runtime.installer.ContextImpl$7.fetchValue(ContextImpl.java:1656)

at com.install4j.runtime.installer.helper.comm.actions.FetchObjectAction.execute(FetchObjectAction.java:14)

at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionDirect(HelperCommunication.java:274)

at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionInt(HelperCommunication.java:249)

at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionChecked(HelperCommunication.java:187)

at com.install4j.runtime.installer.helper.comm.HelperCommunication.fetchObjectChecked(HelperCommunication.java:170)

at com.install4j.runtime.installer.ContextImpl.performActionIntStatic(ContextImpl.java:1656)

at com.install4j.runtime.installer.InstallerContextImpl.performActionInt(InstallerContextImpl.java:151)

at com.install4j.runtime.installer.ContextImpl.performAction(ContextImpl.java:1103)

at com.install4j.runtime.installer.controller.Controller.executeAction(Controller.java:368)

at com.install4j.runtime.installer.controller.Controller.executeActions(Controller.java:334)

at com.install4j.runtime.installer.controller.Controller.executeActionGroup(Controller.java:405)

System properties:

java.runtime.name=Java(TM) SE Runtime Environment

exe4j.moduleName=/home/grace/Downloads/Knowage-6_3_1-CE-Installer-Unix-20190205.sh

sun.boot.library.path=/usr/lib/jvm/java-8-oracle/jre/lib/i386

java.vm.version=25.201-b09

java.vm.vendor=Oracle Corporation

java.vendor.url=http://java.oracle.com/

path.separator=:

java.vm.name=Java HotSpot(TM) Client VM

file.encoding.pkg=sun.io

user.country=US

sun.java.launcher=SUN_STANDARD

sun.os.patch.level=unknown

install4j.exeDir=/home/grace/Downloads/

java.vm.specification.name=Java Virtual Machine Specification

user.dir=/home/grace/Downloads/Knowage-6_3_1-CE-Installer-Unix-20190205.sh.4006.dir

java.runtime.version=1.8.0_201-b09

java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment

i4jv=0

java.endorsed.dirs=/usr/lib/jvm/java-8-oracle/jre/lib/endorsed

os.arch=i386

java.io.tmpdir=/tmp

line.separator=

java.vm.specification.vendor=Oracle Corporation

os.name=Linux

exe4j.totalDataLength=2009677705

proxySet=false

sun.java2d.noddraw=true

sun.jnu.encoding=UTF-8

java.library.path=/home/grace/Downloads/Knowage-6_3_1-CE-Installer-Unix-20190205.sh.4006.dir/user::/usr/java/packages/lib/i386:/lib:/usr/lib

sun.awt.enableExtraMouseButtons=true

java.specification.name=Java Platform API Specification

java.class.version=52.0

sun.management.compiler=HotSpot Client Compiler

os.version=4.15.0-43-generic

i4j.vpt=true

install4j.cwd=/home/grace/Downloads

user.home=/root

user.timezone=America/Los_Angeles

java.awt.printerjob=sun.print.PSPrinterJob

file.encoding=UTF-8

install4j.jvmDir=/usr/lib/jvm/java-8-oracle/jre

java.specification.version=1.8

java.class.path=i4jruntime.jar

user.name=root

java.vm.specification.version=1.8

sun.java.command=com.install4j.runtime.launcher.UnixLauncher launch 0   com.install4j.runtime.installer.Installer

java.home=/usr/lib/jvm/java-8-oracle/jre

sun.arch.data.model=32

user.language=en

java.specification.vendor=Oracle Corporation

awt.toolkit=sun.awt.X11.XToolkit

java.vm.info=mixed mode

java.version=1.8.0_201

java.ext.dirs=/usr/lib/jvm/java-8-oracle/jre/lib/ext:/usr/java/packages/lib/ext

sun.boot.class.path=/usr/lib/jvm/java-8-oracle/jre/lib/resources.jar:/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jsse.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jce.jar:/usr/lib/jvm/java-8-oracle/jre/lib/charsets.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfr.jar:/usr/lib/jvm/java-8-oracle/jre/classes

install4j.appDir=/home/grace/Downloads/

java.vendor=Oracle Corporation

file.separator=/

java.vendor.url.bug=http://bugreport.sun.com/bugreport/

sun.font.fontmanager=sun.awt.X11FontManager

sun.io.unicode.encoding=UnicodeLittle

sun.cpu.endian=little

install4j.showProxyConfig=true

install4j.systemLanguage=en

install4j.keepLog=true

sun.cpu.isalist=


- end of log file -

Hi Grace,

I find it hard to tell how much memory the virtualbox has left over for applications inside it if you assign it say 6GB on the host system. So it might still be a memory problem after all. It might also be a problem with virtualbox. Why don't you try it out on either a real system or on docker, where it is confirmed to work? Greetings, B

1 Answer

0 votes

"Knowage CE requires 3GB of available RAM."

source: https://knowage-suite.readthedocs.io/en/6.3/installation-guide/knowage-ce-installer.html#memory

In my experience, running Knowage under 8GB is not much fun.

by (2.6k points)

Hello Schipko,

I changed the memory allocation to 4gb but I still have the same error.

Is there anything else that I can try?

Thank You for your help.

Regards.

73
-Grace
NNNN
z

...