While file contains the Java runtime parameters, so can distribute same settings to all machines

Posted on 2009-05-01
Last Modified: 2013-11-23
We have installed Java 1.6_06 across 500+ machines and have just found that a Runtime parameter -Xmx512m need to be applied. Which file/registry entry can I change and then distribute so all machines are the same?
We are running Vista SP1 if that makes any difference
Question by:lobolog
    LVL 3

    Accepted Solution

    When I need to do this I just create a batch file.

    javaw -jar -Xmx512m program.jar

    Then have the users run this instead of the jar. You can also then put some xcopy lines in so the computers can copy the latest version from a central location so you don't have to copy the file manually to every computer when you need to roll out a new version
    LVL 5

    Assisted Solution

    In general, the Xmx parameter should be applied when starting the particular Java application that requires it - are you certain you want to set the heap size to 512m for every application that runs in the JVM??
    There are several ways to apply this setting at the application level, one of which is suggested above.  More information about how your particular application is launched would allow us to give more specific advice.
    The JVM has a Control-Panel applet called 'Java' - if you go to  the 'Java' (center) tab and click 'View...' you can set Runtime Parameters for the jvm, including Xmx here.
    You can also changing the run commands in the registry entries:

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
    Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
    Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
    Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now