Results 1 to 3 of 3
  1. #1
    dmna007 is offline Member
    Join Date
    May 2012
    Posts
    13
    Rep Power
    0

    Default Deploying xmx heap size setting

    Hi, Im an IT Manager looking after a number of computers. The firms staff have a lot of problems with the java runtime reaching the default maximum heap size and their browser windows ground to a halt.

    From the windows control panel I have set a -xmx1024m command to increase the maximum heap size which has helped, however, I do not want to run around to everyone elses pc in order to set this - not lazy, just trying to be efficient honest!

    Ideally I want to deploy this xmx setting over the network, either via group policy, batch file at login time or registry key - does anyone know how to do this?

    I have tried customising the Application Data\Sun\Java\Deployment\deployment.properties file without much success.

    Any ideas?

    Thanks, Damen

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,920
    Rep Power
    19

    Default Re: Deploying xmx heap size setting

    Since you're talking about browsers, I'm guessing these are applets.
    Assuming (again) that you are on 1.6 u10 or higher you can specify the memory to use for a particular applet in the applet tag.
    Here's the docs for it all.
    That would be my solution.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    dmna007 is offline Member
    Join Date
    May 2012
    Posts
    13
    Rep Power
    0

    Default Re: Deploying xmx heap size setting

    Hi, thanks for that

    I've asked the developer to add

    <PARAM name="java_arguments" value="-Xmx512m -Dsun.java2d.noddraw=true">

    This loads the login screen up correctly so I guess the runtime must still be working, however is there a command I can run from the users desktops to see if the max heap size value has actually changed? At the moment I do not know if it has or not and the java console does not say anything useful.

    Thanks, Damien
    .

Similar Threads

  1. Heap size
    By newbiejava in forum New To Java
    Replies: 2
    Last Post: 08-22-2010, 11:59 AM
  2. get maximum heap size that can be allocated
    By gautam.aditya97 in forum Java 2D
    Replies: 3
    Last Post: 04-05-2010, 05:03 AM
  3. Setting frame size to the size of an image
    By Yoruichi in forum AWT / Swing
    Replies: 5
    Last Post: 04-22-2009, 04:37 PM
  4. Java heap size
    By jmdrocks in forum Eclipse
    Replies: 2
    Last Post: 12-12-2008, 06:10 AM
  5. setting JVM Heap sitze
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-09-2007, 04:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •