Basically I have the same problem as in this question. However the proposed solution doesn't work for me, not on a Win2003 server and not on a Win7 laptop used for testing.
I have a Java SE 6 program that is started by a .Net program via an ActiveX-bridge dll. To test I used my Win7 computer with 3 JREs installed; jdk1.7.0_55, jre1.6.0_45 and jre1.6.0_38-x64. The application always uses the jre1.6.0_45 and starts up with a maximum of 95040KB of memory but I need it to be slightly more.
What works to increase the memory is editing the file <userprofile>\AppData\LocalLow\Sun\Java\Deployment\deployment.properties
and adding the following line:
deployment.javaws.jre.1.args=-Xmx100m
but the problem is that this only works for one user and I want it to work for all users on a server.
As discussed in this answer I created a file C:\Windows\Sun\Java\Deployment\deployment.config
with contents
deployment.system.config=file\:C\:/Windows/Sun/Java/Deployment/deployment.properties
Then I copied the deployment.properties file from my user profile to the C:\Windows\Sun\Java\Deployment\
folder and again added the deployment.javaws.jre.1.args=-Xmx100m
line to the copied file.
But strangely enough this doesn't work.
Things I tried so far:
placing the deployment.config and deployment.properties files in the lib folder of the used JRE (D:\Java\jre1.6.0_45\lib) and of the most recent JRE (D:\Java\jdk1.7.0_55\jre\lib)
placing the files in the C:\Windows\Sun\Java\Deployment folder of a (virtual) Win2003 server with only one JRE installed (v1.6.0_11)
added the lines
deployment.javaws.jre.0.args=-Xmx100
anddeployment.javaws.jre.2.args=-Xmx100
so all installed JREs would use the same settingsadded second line with
deployment.system.config.mandatory=true
to the deployment.config file and altered the path to the deployment.properties file to something that doesn't exist -> Nothing happened and the application would start fine, so it seems the deployment.config file is totally ignored by the JRE.
Does anyone have a clue where am I going wrong?