Short version
How do I configure the icedtea-plugin package for ubuntu precise in such a way that it executes all applets with a specific memory limit by default? Preferrably using command line tools and no graphical user interface.
Long version
I'm building a kiosk setup using java applets, and would like to increase the default memory limit for all these applets. The kiosk is based on ubuntu linux, using the icedtea-plugin package as a browser plugin. As building the kiosk is automated and headless, I'd rather configure it from the command line if possible.
Here is what I've found out so far:
- I'll probably have to specify a
-Xmx…
command line argument which will be used when starting the java virtual machine for the plugin. - It is possible to pass such arguments using a parameter in the HTML code, i.e.
<param name="java_arguments" value="-Xmx…">
. But that would mean modifying all my HTML files, which I'd rather avoid. And there is a good chance that I'd have to sign my code to make this work, which adds quite a lot of problems in other places of my project. - On my desktop system, using the Oracle VM, there is an application
ControlPanel
which I can use to set these command line switches. It seems that the configuration gets written to a file~/.java/deployment/deployment.properties
, where it is associated with the keydeployment.javaws.jre.0.args
. - That key name is not described in the specs for that file. The number
0
seems to refer to one specific JVM, as represented in one row of the table in the control panel. For each JVM, there are several values besides thisargs
value, all sharing a common index number. - According to this wiki section, IcedTea supports a similar file, located at
~/.icedtea/
. Not sure whether that means~/.icedtea/deployment.properties
or rather~/.icedtea/deployment/deployment.properties
. IcedTea does not seem to come with aControlPanel
.
As you can see, there are many hints as to how this might work, but so far I haven't seen any definite answer as to what will work. There are still many open questions:
- Do I have to create this icedtea deployment file?
- Do I have to include a directory named
deployment
in the path? - Which is the minimal set of keys that I need to specify to make this file work as intended?
- Is the
args
value even supported by OpenJDK, even if it is not described in the corresponding specification?
I guess I could try out all possible combinations to see whether one of them works, but doing so will take considerable time. So I'm asking here, to see if someone has experience in this, and can provide a quiecker answer. If not, I guess I'll answer my own question eventually, once I've tried things the hard way.