We have a problem with a java application running out of memory. Our (Windows XP) client PCs have JRE 1.6 version 18 installed. I want to increase the -Xmx runtime parameter for the JRE to 512M but I can't seem to set this for all users. When I log in to the PC as Administrator and set the Runtime parameters in the Java Console, these settings only appear for my login.
Maybe you can try modifying a System Deployment Properties file? Short version of usage below:
- You need to create a file named
deployment.configand put it in either
%SystemRoot%\Sun\Java\Deploymentor your JRE's
deployment.configcontains a pointer to a
deployment.propertiesfile, as below:
deployment.propertiesfile contains the properties that you want to set system-wide, one per line. For my organization, we occasionally have problems with the JRE's caching causing problems, so I disable it with
deployment.cache.enabled=falseand prevent users from changing the value with
deployment.cache.enabled.locked=If you're not sure about the syntax, make the changes for yourself and look at the
deployment.propertiesfile normally located in
C:\Documents and Settings\<username>\Local Settings\Application Data\Sun\Java\Deployment. At least, I think that's the path in XP. On my Win 7 system it's in
I don't know if you can set the JRE options like this, but it's worth a shot.
JAVA_OPTIONS environment variable to store the runtime options that will be used by the JVM during startup.
As far as setting this across users is concerned, you could do this via a logon script or via the Windows registry.
Given the presence of a Java applet, it would be worthwhile to investigate whether Java 6 Update 10 or higher versions of the Java runtime could be installed on desktop PCs. Additionally, one would also have to specify the desired Xmx value using the java_arguments parameter to the applet; this parameter was introduced in 6u10. This might not be so trivial in the case of Oracle Forms 10g, as it requires editing of the web page where the applet is loaded from, but is worth a try.
See the related StackOverflow question for more details.