geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Sisson <>
Subject Re: Geronimo JVM Configuration Portlet
Date Wed, 18 Jan 2006 23:41:39 GMT
The startup script will execute a file if 
it is present.  See the comments at the bottom of the comment header for

For example, the files can set the GERONIMO_OPTS 
environment variable to change the JVM options.

We would want to avoid having two places that JVM options are configured 
as that would be confusing and make Geronimo more difficult to support.

Maybe the console could have a page that allows you to add/update/delete 
environment variables, which results in the appropriate modifications to 
the and setenv.bat files.  It would need to be careful with 
updating/deleting environment variables, as a user may have inserted 
some logic in the script before the environment variable is set (or the 
environment variable could be in a number of places in the script due to 
logic).  Maybe the console would need to detect whether the script has 
anything other than the simple setting of environment variables and if 
so, prevents you from editing it from the console.

It would be interesting to hear from others whether they think it is a 
security issue allowing the console to edit bat/sh startup script files 
(could malicious commands be inserted into the startup scripts).


Aaron Mulder wrote:
> I don't really like the approach of changing the scripts directly.
> Can you work on creating such a configuration file and submit a patch
> that adds the config file with resonable defaults (or just
> commented-out entries) and updates the scripts to use the values from
> the config file if they haven't already been defined (in the
> corresponding environment variables or something)?
> Thanks,
>    Aaron
> On 1/18/06, Cristian Roldan <> wrote:
>> Hi Aaron,
>>     A configuration file is a good idea or changing directly the startup
>> shell script could be another choice.
>> Bye
>> Aaron Mulder <> escribió:
>> Cristian,
>> How are you envisioning that this would work? For example, currently,
>> you can start the server with a batch or shell script, or by running
>> "java -jar bin/server.jar". I don't think any configuration set from
>> the console could affect the "java -jar" startup method. But it would
>> be possible for the console to write a config file or something that
>> the batch or shell startup script read -- a kind of "default JVM
>> parameters" to be used if the user doesn't manually specify something.
>> Is that what you have in mind?
>> Thanks,
>> Aaron
>> On 1/18/06, Cristian Roldan wrote:
>>> Hi All,
>>> I wanted to modify the Geronimo's JVM configuration from WEB Console, but
>>> I
>>> could not see any page for this task, I think .. it could be usuful to
>> have
>>> a portlet to configure the JVM parameters, for example:
>>> Max heap Size
>>> Min heap Size
>>> Boot Classpath (append/preppend)
>>> Debug mode
>>> JIT (on/off)
>>> Verbose GC (on/off)
>>> Java properties (-D)
>>> JVM Arguments (generic)
>>> Thanks.
>>> ________________________________
>>> 1GB gratis, Antivirus y Antispam
>>> Correo Yahoo!, el mejor correo web del mundo
>>> Abrí tu cuenta aquí
>>  ________________________________
>>  1GB gratis, Antivirus y Antispam
>>  Correo Yahoo!, el mejor correo web del mundo
>>  Abrí tu cuenta aquí

View raw message