Hitachi Vantara Pentaho Community Forums
Results 1 to 5 of 5

Thread: Pentaho DI could not create the java virtual machine

  1. #1
    Join Date
    Jan 2017
    Posts
    3

    Post Pentaho DI could not create the java virtual machine

    Hello!

    I'm new to Pentaho DI.
    Every time, I'm trying to start spoon.bat on Windows 7 Home edition x32, I get following error message:

    Name:  Screen.jpg
Views: 2362
Size:  19.7 KB.

    This error occures on following Pentaho versions:
    Pdi-ce-7.0.0.0-25;
    Pdi-ce-6.1.0.1-196.


    SpoonDebug log from Pdi-ce-7.0.0.0-25:
    Code:
    DEBUG: Using PENTAHO_JAVA_HOME
    DEBUG: _PENTAHO_JAVA_HOME=C:\Program Files\Java\jre7
    DEBUG: _PENTAHO_JAVA=C:\Program Files\Java\jre7\bin\java.exe
    
    D:\Pentaho data-integration>"C:\Program Files\Java\jre7\bin\java.exe"  "-Xms1024m" "-Xmx2048m" "-XX:MaxPermSize=256m" "-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2" "-Djava.library.path=libswt\win32" "-DKETTLE_HOME=" "-DKETTLE_REPOSITORY=" "-DKETTLE_USER=" "-DKETTLE_PASSWORD=" "-DKETTLE_PLUGIN_PACKAGES=" "-DKETTLE_LOG_SIZE_LIMIT=" "-DKETTLE_JNDI_ROOT=" -jar launcher\pentaho-application-launcher-7.0.0.0-25.jar -lib ..\libswt\win32  /level:Debug 
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.


    After changing PENTAHO_DI_JAVA_OPTIONS parametres in to "-Xmx512m" "-XX:MaxPermSize=256m" from defaults, I've got no error and no Pentaho start.

    So, I hope for your kindly help with this issue.

  2. #2
    Join Date
    May 2016
    Posts
    282

    Default

    Pentaho 7 needs Jre8, if you want to continue using jre7 you can use Pentaho 6.1

  3. #3
    Join Date
    Jan 2017
    Posts
    3

    Question

    Ana GH, thank you for your answer!

    To be honest, JDK version was intentionaly degraded by me because of SpoonDebug log text you will see below.

    Now when I've made following changes:
    1. returned original spoon.bat from backup;
    2. reinstalled JDK to 8.x version;
    3. made adequate changes in the "PENTAHO_JAVA_HOME" and "PATH" variables,

    starting spoon.bat still results no error and no Pentaho DI start.

    SpoonDebug log text:

    Code:
    DEBUG: Using PENTAHO_JAVA_HOME
    DEBUG: _PENTAHO_JAVA_HOME=C:\Program Files\Java\jre1.8.0_121
    DEBUG: _PENTAHO_JAVA=C:\Program Files\Java\jre1.8.0_121\bin\java.exe
    
    D:\Pentaho data-integration>"C:\Program Files\Java\jre1.8.0_121\bin\java.exe"  "-Xms1024m" "-Xmx2048m" "-XX:MaxPermSize=256m" "-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2" "-Djava.library.path=libswt\win32" "-DKETTLE_HOME=" "-DKETTLE_REPOSITORY=" "-DKETTLE_USER=" "-DKETTLE_PASSWORD=" "-DKETTLE_PLUGIN_PACKAGES=" "-DKETTLE_LOG_SIZE_LIMIT=" "-DKETTLE_JNDI_ROOT=" -jar launcher\pentaho-application-launcher-7.0.0.0-25.jar -lib ..\libswt\win32  /level:Debug 
    Error occurred during initialization of VM
    Could not reserve enough space for 2097152KB object heap
    Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
    What else can I do to fix the situation?
    Last edited by ISL; 01-26-2017 at 08:56 AM.

  4. #4
    Join Date
    Jul 2009
    Posts
    476

    Default

    You can't reserve 2048 MB of heap space on a 32-bit version of Windows. Edit your Spoon.bat file. Where it says "-Xmx2048m", change 2048 to a lower value, such as 1024, and try it again.

  5. #5
    Join Date
    Jan 2017
    Posts
    3

    Default

    robj, thank you!

    It's alive atm.

    I guess, the thread can be closed now.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.