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
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.
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
.