This discussion is archived
3 Replies Latest reply: Jan 30, 2012 11:11 PM by 913399 RSS

Option -splash and -Xmx result in "Unable to launch JVM" error

913399 Newbie
Currently Being Moderated
Hello everybody,

we have a severe problem with launching our Java application using the "-splash:" and "-Xmx" command line options for which we cannot find any solution in the web. Our application needs a lot of heap space, so we usually set "-Xmx=920M". Usually, we are working with Java 6 and use the "-splash:" option to show a splash screen while the application is loading. In some cases, we get an "Unable to launch JVM" error now. This happens only on particular customer systems (servers as well as desktop machines) and the only solution is to decrease the maximum heap size for a couple hundred megabytes. The latter is usually unacceptable since our application requires a lot of heap memory and the machines do have more than sufficient memory. The other option is to completely remove the "-splash:" option, but then there is of course no splash screen anymore.

Unfortunately, we are unable to track the error back and to figure what exactly is going wrong. Does anyone of you have any hints how to debug or analyze the error? Our assumption is that something is wrong due to memory partitioning which leads to unsufficiently large memory partitions to allocate the required heap memory by the JVM.

Any ideas?

Thank you very much.

Regards
Timo Rohrberg
Software Developer, initplan GmbH
  • 1. Re: Option -splash and -Xmx result in "Unable to launch JVM" error
    gimbal2 Guru
    Currently Being Moderated
    910396 wrote:
    This happens only on particular customer systems (servers as well as desktop machines)
    Red flag: it is not consistent, in other words it is system dependent. It is already hard for you to diagnose such an occurrence, I wouldn't expect anything more by asking in a forum. At least you have SOME way of doing some more diagnosing.

    I'm sorry, but you'll have to dive in deep. Figure out what update versions of Java the failing machines are running. Which OS. Which processor architecture. Etc. See if there is a common factor involved. If not, hunt through release notes of newer JDKs to see if any of them mention something related to the splash screen and if you find something, let the client attempt an update of the JDK on such a failing machine to see if the problem is remedied. If it is windows, try running with the server VM (java -server) in stead of the default client VM, if you are not already doing that.

    And yeah if all that fails and nobody else has something to add, I'm sorry to say that Oracle support will be your next logical step.
  • 2. Re: Option -splash and -Xmx result in "Unable to launch JVM" error
    jschellSomeoneStoleMyAlias Expert
    Currently Being Moderated
    910396 wrote:
    This happens only on particular customer systems
    What does that mean exactly?

    Do you have many different customers?
    And this failure is only occurring on one of those customers?
  • 3. Re: Option -splash and -Xmx result in "Unable to launch JVM" error
    913399 Newbie
    Currently Being Moderated
    Yes, we have many different customers with individual installations of our Java-based system. In some of those installations the Java virtual machine cannot be loaded as I described above. That problem can only be fixed by either reducing the -Xmx parameter by a certain amount (which is also not consistent from installation to installation, in some installations reducing 100 MB is sufficient, in others 300 MB reducing is required) or by completely deactivating the splash screen.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points