Hitachi Vantara Pentaho Community Forums
Results 1 to 7 of 7

Thread: JVM error on Spoon launch

  1. #1

    Default JVM error on Spoon launch

    Hello PDI fans!

    I get sporadic JVM errors when launching Spoon on a Windows machine. The message states "Could not create Java Virtual Machine". I'm using PDI-CE 4.4 stable with the Spoon.bat statement set PENTAHO_DI_JAVA_OPTIONS="-Xmx900m".

    When the JVM error occurs, I decrease the Xmx size (usually down to 512M) until Spoon opens. The problem is an instance of Spoon will work fine for several job processes. Close Spoon and it will fail to open on the next instance with the very same Xmx size! My question for the brilliant group of PDI developers on the forum is, how do I release (or clear) memory usage after Spoon closes because it's obvious that memory is being held in these cases?

    Thanks in advance

    G. Duncan

  2. #2
    Join Date
    Jun 2012
    Posts
    5,534

    Default

    Find the JVM zombie by executing command "jps -lv"
    Lookup the PID of the Spoon launcher.
    Now kill Spoon before you start it again.
    So long, and thanks for all the fish.

  3. #3

    Default

    First, thank you Marabu for the prompt reply. Secondly, do I execute the "jps -lv" inside of Spoon.bat? I really am a novice when talking this Java stuff. If you could provide a little more information, it would be much appreciated.
    Thanks again.

  4. #4
    Join Date
    Jun 2012
    Posts
    5,534

    Default

    jps is a command provided by Java.
    You execute it in a command window.
    So long, and thanks for all the fish.

  5. #5

    Default

    After entering java jps -lv at the command prompt, I get a error stating "Could not find or load main class jps". What am I missing?

  6. #6
    Join Date
    Jun 2012
    Posts
    5,534

    Default

    Sorry, jps is part of the jdk - you may have installed jre.
    So long, and thanks for all the fish.

  7. #7
    Join Date
    Apr 2008
    Posts
    4,696

    Default

    Quote Originally Posted by GoDuncan View Post
    java jps -lv
    I don't think you're supposed to put java at the beginning... only
    Code:
    jps -lv
    **THIS IS A SIGNATURE - IT GETS POSTED ON (ALMOST) EVERY POST**
    I'm no expert.
    Take my comments at your own risk.

    PDI user since PDI 3.1
    PDI on Windows 7 & Linux

    Please keep in mind (and this may not apply to this thread):
    No forum member is going to do your work for you. We will help you sort out how to do a specific part of the work, as best we can, in the timelines that our work will allow us.
    Signature Updated: 2014-06-30

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.