Setting default parameters for commands
Hi.
I'm quite new to linux and am trying to set up java (JDK) on a virtual server via SSH.
Although I've installed the JDK, I need to limit it's memory whenever it's run from the ssh terminal window AND by other applications.
To do this I need the parameters '-server -Xms16m -Xms32m' to be automatically included whenever java is run.
I've tried setting JAVA_HOME and JAVA_OPTS variables via editing ~/.profile however this has no effect.
I also tried renaming the executable and creating an alias, which worked fine for when I ran java from ssh terminal, however when apache ant tried to use java it looks directly for the java executable (alias doesn't work).
I'd really appreciate any help that can be given, as it seems like it should be a relatively easy thing to do (?)
The version of linux being run is Red Hat enterprise 3.
Thanks
josh
|