AnsweredAssumed Answered

Pentaho, Tomcat8: Invalid maximum heap size: -Xmx6144m

Question asked by hueseyin karakaya on Aug 12, 2018
Latest reply on Aug 16, 2018 by hueseyin karakaya

Hello,

 

I am running a 32bit Linux Mint (based on Ubuntu).

 

After unpacking the JRE tar.gz and the PENTAHO zip file, I tried to start PENTAHO and the embedded Tomcat8, but it doesn't work.

 

The the error message is always the same, ignoring whatever value I set with CATALINA_OPTS paramter.

 

Any idea what I am doing wrong or why tomcat ignores my parameter settings?

 

pentaho@LIFEBOOK-E780:~$ uname -a

Linux LIFEBOOK-E780 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:15:38 UTC 2018 i686 i686 i686 GNU/Linux

 

pentaho@LIFEBOOK-E780:~$ cat /etc/lsb-release

DISTRIB_ID=LinuxMint

DISTRIB_RELEASE=19

DISTRIB_CODENAME=tara

DISTRIB_DESCRIPTION="Linux Mint 19 Tara"

pentaho@LIFEBOOK-E780:~$

 

pentaho@LIFEBOOK-E780:~$ /home/pentaho/pentaho/jre1.8.0_181/bin/java -XX:+PrintFlagsFinal -version|grep -iE 'HeapSize|PermSize|ThreadStackSize'

     intx CompilerThreadStackSize                   = 0                                   {pd product}

    uintx ErgoHeapSizeLimit                         = 0                                   {product}

    uintx HeapSizePerGCThread                       = 67108864                            {product}

    uintx InitialHeapSize                          := 67108864                            {product}

    uintx LargePageHeapSizeThreshold                = 134217728                           {product}

    uintx MaxHeapSize                              := 1073741824                          {product}

     intx ThreadStackSize                           = 320                                 {pd product}

     intx VMThreadStackSize                         = 512                                 {pd product}

java version "1.8.0_181"

Java(TM) SE Runtime Environment (build 1.8.0_181-b13)

Java HotSpot(TM) Server VM (build 25.181-b13, mixed mode)

pentaho@LIFEBOOK-E780:~$

 

pentaho@LIFEBOOK-E780:~/pentaho/pentaho-server$ export PENTAHO_JAVA_HOME="/home/pentaho/pentaho/jre1.8.0_181"

 

pentaho@LIFEBOOK-E780:~/pentaho/pentaho-server$ export CATALINA_OPTS="-Xms256M -Xmx512M -XX:PermSize=128M"

 

pentaho@LIFEBOOK-E780:~/pentaho/pentaho-server$ ./start-pentaho.sh

DEBUG: Using PENTAHO_JAVA_HOME

DEBUG: _PENTAHO_JAVA_HOME=/home/pentaho/pentaho/jre1.8.0_181

DEBUG: _PENTAHO_JAVA=/home/pentaho/pentaho/jre1.8.0_181/bin/java

Using CATALINA_BASE:   /home/pentaho/pentaho/pentaho-server/tomcat

Using CATALINA_HOME:   /home/pentaho/pentaho/pentaho-server/tomcat

Using CATALINA_TMPDIR: /home/pentaho/pentaho/pentaho-server/tomcat/temp

Using JRE_HOME:        /usr

Using CLASSPATH:       /home/pentaho/pentaho/pentaho-server/tomcat/bin/bootstrap.jar:/home/pentaho/pentaho/pentaho-server/tomcat/bin/tomcat-juli.jar

Tomcat started.

pentaho@LIFEBOOK-E780:~/pentaho/pentaho-server$

 

pentaho@LIFEBOOK-E780:~/pentaho/pentaho-server$ head 10 tomcat/logs/catalina.out

NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED

Invalid maximum heap size: -Xmx6144m

The specified size exceeds the maximum representable size.

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.

NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED

Invalid maximum heap size: -Xmx6144m

The specified size exceeds the maximum representable size.

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.

pentaho@LIFEBOOK-E780:~/pentaho/pentaho-server$

 

pentaho@LIFEBOOK-E780:~/pentaho/pentaho-server$ export CATALINA_OPTS="-Xms536870912b -Xmx1073741824b -XX:PermSize=268435456b"

 

pentaho@enkid-LIFEBOOK-E780:~/pentaho/pentaho-server$ head tomcat/logs/catalina.out

NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED

Invalid maximum heap size: -Xmx6144m

The specified size exceeds the maximum representable size.

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.

NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED

Invalid maximum heap size: -Xmx6144m

The specified size exceeds the maximum representable size.

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.

pentaho@enkid-LIFEBOOK-E780:~/pentaho/pentaho-server$

 

Thanks for any advice.

 

RGDS

h.k.

Outcomes