You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Anita Kulshreshtha <a_...@yahoo.com> on 2007/04/09 23:49:50 UTC

Running multiple instances of geronimo

Hi All,
 We need to make some additional [1] changes to the server to run
multiple instances of geronimo:
1. By default i.e. bin\startup will start the server with a name (i1 or
something).
2.A pristine copy of var and deploy (empty directory) will be
maintained at G_HOME, which could be used to start new instances. The
G_HOME/deploy is not necessary in this case. The server directory will
look like this:

GERONIMO_HOME - 
              |- ...........
              | deploy - ??????????????
              |- var

              |- instance1   -  var
                           |-  deploy

              |- instance2  -   var
                           |-  deploy

              |- ...................... 


3. The shutdown config is using var/temp/jline.dll. We should be able
to use a single copy of jline.dll. Where should jline.dll be put? 
   These are the absolute min mum changes needed. One could change the
script to take a server name (o.a.g.server.name), and create the
required server dir. The config.xml could be generated by adding offset
to all the ports, etc, etc...
   These changes are going to affect eclipse tools, please review and
provide feedback.

Thanks
Anita

[1] http://issues.apache.org/jira/browse/GERONIMO-3011



 
____________________________________________________________________________________
The fish are biting. 
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php

Re: Running multiple instances of geronimo

Posted by Anita Kulshreshtha <a_...@yahoo.com>.
   This morning things seem to be working fine!!! i.e. jline.dll is
extracted to var\temp and shutdown works. If the bizarre thing like
jline.dll in i1/var/temp happens again, I will get back to you.. Thanks
for responding.

Thanks
Anita

--- Jason Dillon <ja...@planet57.com> wrote:

> The extraction is handled automatically by the JLine library at  
> runtime and will extract to wherever java.io.tmpdir is set to for the
>  
> invoking JVM.
> 
> What is the issue?  I don't understand what the problem is you are  
> trying to solve related to the jline.dll.  You should not have to do 
> 
> anything at all related to this file.
> 
> --jason
> 
> 
> On Apr 9, 2007, at 3:34 PM, Anita Kulshreshtha wrote:
> 
> >   Thanks Jason! The jline.dll was extracted to i1/var/temp and
> > i2/var/temp for instances named i1 and i2. But the shutdown config
> > expects it in var/temp. If the default server, i.e. the one using  
> > 'var'
> > is not started, the jline.dll is not extracted to var/temp. Could
> we
> > extract it to var/temp even without starting the default server?
> When
> > is the extraction done?
> >
> > Thanks
> > Anita
> >
> > --- Jason Dillon <ja...@planet57.com> wrote:
> >
> >> On Apr 9, 2007, at 2:49 PM, Anita Kulshreshtha wrote:
> >>> 3. The shutdown config is using var/temp/jline.dll. We should be
> >> able
> >>> to use a single copy of jline.dll. Where should jline.dll be put?
> >>
> >> jline.dll is dynamically extracted from the jline-*.jar and it
> will
> >> put it into whatever is used for java.io.tmpdir for the executing
> >> JVM.
> >>
> >> So you shouldn't need to worry about where its put.
> >>
> >> --jason
> >>
> >>
> >
> >
> >
> >
> >
>
______________________________________________________________________
> 
> > ______________
> > TV dinner still cooling?
> > Check out "Tonight's Picks" on Yahoo! TV.
> > http://tv.yahoo.com/
> 
> 



       
____________________________________________________________________________________
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html 

Re: Running multiple instances of geronimo

Posted by Jason Dillon <ja...@planet57.com>.
The extraction is handled automatically by the JLine library at  
runtime and will extract to wherever java.io.tmpdir is set to for the  
invoking JVM.

What is the issue?  I don't understand what the problem is you are  
trying to solve related to the jline.dll.  You should not have to do  
anything at all related to this file.

--jason


On Apr 9, 2007, at 3:34 PM, Anita Kulshreshtha wrote:

>   Thanks Jason! The jline.dll was extracted to i1/var/temp and
> i2/var/temp for instances named i1 and i2. But the shutdown config
> expects it in var/temp. If the default server, i.e. the one using  
> 'var'
> is not started, the jline.dll is not extracted to var/temp. Could we
> extract it to var/temp even without starting the default server? When
> is the extraction done?
>
> Thanks
> Anita
>
> --- Jason Dillon <ja...@planet57.com> wrote:
>
>> On Apr 9, 2007, at 2:49 PM, Anita Kulshreshtha wrote:
>>> 3. The shutdown config is using var/temp/jline.dll. We should be
>> able
>>> to use a single copy of jline.dll. Where should jline.dll be put?
>>
>> jline.dll is dynamically extracted from the jline-*.jar and it will
>> put it into whatever is used for java.io.tmpdir for the executing
>> JVM.
>>
>> So you shouldn't need to worry about where its put.
>>
>> --jason
>>
>>
>
>
>
>
> ______________________________________________________________________ 
> ______________
> TV dinner still cooling?
> Check out "Tonight's Picks" on Yahoo! TV.
> http://tv.yahoo.com/


Re: Running multiple instances of geronimo

Posted by Anita Kulshreshtha <a_...@yahoo.com>.
  Thanks Jason! The jline.dll was extracted to i1/var/temp and
i2/var/temp for instances named i1 and i2. But the shutdown config
expects it in var/temp. If the default server, i.e. the one using 'var'
is not started, the jline.dll is not extracted to var/temp. Could we
extract it to var/temp even without starting the default server? When
is the extraction done?

Thanks
Anita
  
--- Jason Dillon <ja...@planet57.com> wrote:

> On Apr 9, 2007, at 2:49 PM, Anita Kulshreshtha wrote:
> > 3. The shutdown config is using var/temp/jline.dll. We should be
> able
> > to use a single copy of jline.dll. Where should jline.dll be put?
> 
> jline.dll is dynamically extracted from the jline-*.jar and it will  
> put it into whatever is used for java.io.tmpdir for the executing
> JVM.
> 
> So you shouldn't need to worry about where its put.
> 
> --jason
> 
> 



 
____________________________________________________________________________________
TV dinner still cooling? 
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/

Re: Running multiple instances of geronimo

Posted by Jason Dillon <ja...@planet57.com>.
On Apr 9, 2007, at 2:49 PM, Anita Kulshreshtha wrote:
> 3. The shutdown config is using var/temp/jline.dll. We should be able
> to use a single copy of jline.dll. Where should jline.dll be put?

jline.dll is dynamically extracted from the jline-*.jar and it will  
put it into whatever is used for java.io.tmpdir for the executing JVM.

So you shouldn't need to worry about where its put.

--jason


Re: Running multiple instances of geronimo

Posted by Anita Kulshreshtha <a_...@yahoo.com>.
--- Ted Kirby <te...@gmail.com> wrote:

> I like the notion of a pristine var to allow for easy instance
> creation.  When you say "by default", are you suggesting that we ship
> AG this way?  If this is done, then we must have geronimo and
> geronimo/var directories in the shipped image.  I see those are
> small.
   Initially yes, have a var and a geronimo/var (53K).
   Later we could have some code to do the copying. So given a server
name this code will create name/var (53K). This code could be part of 
J2EEDomain managedobject:
addServer(String serverName);
removeServer(String ServerName);
   We could make J2EEserver statemanageable, i.e. provide doStart() and
doStop() to start the instances. Some more thought is needed on how to
tie all this together...

>  Its the var/activemq/journals that are large (40MB), but they get
> created after the instance is started.
  yup, this will created when the instance is started.

Thanks
Anita


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Running multiple instances of geronimo

Posted by Hernan Cunico <hc...@gmail.com>.
So, here they are !

http://cwiki.apache.org/GMOxDOC20/running-geronimo.html

Thanks Anita and Ted for these docs

Cheers!
Hernan

Ted Kirby wrote:
> I like the idea of guidance and recommendations for "Running
> Geronimo".  Multiple instances, repositories, read-only vs. read-write
> file systems and finally permissions with userids and groups seem the
> set of issues to be addressed, and I like the idea of doing in
> comprehensively.
> 
> +1
> 
> On 4/24/07, Hernan Cunico <hc...@gmail.com> wrote:
>> yup, makes sense to me. We can also add there running G as a service, 
>> etc.
>>
>> Pls go ahead and create that page, the content will look more organized.
>>
>> Cheers!
>> Hernan
>>
>> Anita Kulshreshtha wrote:
>> > --- Ted Kirby <te...@gmail.com> wrote:
>> >> Please feel free to document the evolving steps and issues in the
>> >> wiki
>> >> here:
>> >>
>> > 
>> http://cwiki.apache.org/GMOxDOC20/multiple-repositories-and-server-instances.html 
>>
>> >    I am thinking about creating a new page titled 'Running Geronimo'.
>> > It could contain the existing 2 pages [1] and [3]:
>> > 1.
>> > 
>> http://cwiki.apache.org/GMOxDOC20/running-geronimo-as-a-non-root-user.html 
>>
>> > 2. Running multiple instances of geronimo
>> > 3.
>> > 
>> http://cwiki.apache.org/GMOxDOC20/multiple-repositories-and-server-instances.html 
>>
>> >    WDYT?
>> >
>> > Thanks
>> > Anita
>> >
>> > __________________________________________________
>> > Do You Yahoo!?
>> > Tired of spam?  Yahoo! Mail has the best spam protection around
>> > http://mail.yahoo.com
>> >
>>
> 

Re: Running multiple instances of geronimo

Posted by Ted Kirby <te...@gmail.com>.
I like the idea of guidance and recommendations for "Running
Geronimo".  Multiple instances, repositories, read-only vs. read-write
file systems and finally permissions with userids and groups seem the
set of issues to be addressed, and I like the idea of doing in
comprehensively.

+1

On 4/24/07, Hernan Cunico <hc...@gmail.com> wrote:
> yup, makes sense to me. We can also add there running G as a service, etc.
>
> Pls go ahead and create that page, the content will look more organized.
>
> Cheers!
> Hernan
>
> Anita Kulshreshtha wrote:
> > --- Ted Kirby <te...@gmail.com> wrote:
> >> Please feel free to document the evolving steps and issues in the
> >> wiki
> >> here:
> >>
> > http://cwiki.apache.org/GMOxDOC20/multiple-repositories-and-server-instances.html
> >    I am thinking about creating a new page titled 'Running Geronimo'.
> > It could contain the existing 2 pages [1] and [3]:
> > 1.
> > http://cwiki.apache.org/GMOxDOC20/running-geronimo-as-a-non-root-user.html
> > 2. Running multiple instances of geronimo
> > 3.
> > http://cwiki.apache.org/GMOxDOC20/multiple-repositories-and-server-instances.html
> >    WDYT?
> >
> > Thanks
> > Anita
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
>

Re: Running multiple instances of geronimo

Posted by Hernan Cunico <hc...@gmail.com>.
yup, makes sense to me. We can also add there running G as a service, etc.

Pls go ahead and create that page, the content will look more organized.

Cheers!
Hernan

Anita Kulshreshtha wrote:
> --- Ted Kirby <te...@gmail.com> wrote:
>> Please feel free to document the evolving steps and issues in the
>> wiki
>> here:
>>
> http://cwiki.apache.org/GMOxDOC20/multiple-repositories-and-server-instances.html
>    I am thinking about creating a new page titled 'Running Geronimo'.
> It could contain the existing 2 pages [1] and [3]:
> 1.
> http://cwiki.apache.org/GMOxDOC20/running-geronimo-as-a-non-root-user.html
> 2. Running multiple instances of geronimo 
> 3.
> http://cwiki.apache.org/GMOxDOC20/multiple-repositories-and-server-instances.html
>    WDYT?
> 
> Thanks
> Anita
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 

Re: Running multiple instances of geronimo

Posted by Anita Kulshreshtha <a_...@yahoo.com>.
--- Ted Kirby <te...@gmail.com> wrote:
> Please feel free to document the evolving steps and issues in the
> wiki
> here:
>
http://cwiki.apache.org/GMOxDOC20/multiple-repositories-and-server-instances.html
   I am thinking about creating a new page titled 'Running Geronimo'.
It could contain the existing 2 pages [1] and [3]:
1.
http://cwiki.apache.org/GMOxDOC20/running-geronimo-as-a-non-root-user.html
2. Running multiple instances of geronimo 
3.
http://cwiki.apache.org/GMOxDOC20/multiple-repositories-and-server-instances.html
   WDYT?

Thanks
Anita

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Running multiple instances of geronimo

Posted by Ted Kirby <te...@gmail.com>.
Anita, keep up the good work! :)
I appreciate your efforts and documentation.
Please feel free to document the evolving steps and issues in the wiki
here: http://cwiki.apache.org/GMOxDOC20/multiple-repositories-and-server-instances.html

Ted Kirby

On 4/20/07, Anita Kulshreshtha <a_...@yahoo.com> wrote:
>    Now the server instances can be run as follows:
> 1. create a directory in GERONIMO_HOME called say 'instance1'
> 2. copy 'var' directory to instance1.
> 3. edit instance1\var\config\config-substitutions.properties. Change
> portOffset to 10, 20, .. (or anything else).
> 3. set GERONIMO_OPTS=-Dorg.apache.geronimo.server.name=instance1
> 4. bin\startup
> 5.  To shutdown use bin\shutdown for the instance using 1099, and
> bin\shutdown --port=<rmiNamingPort> for others. The console can also be
> used.
> 6. To deploy from command line use:
>   bin\deploy ......... for instance at 1099
>   bin\deploy -port <rmiNamingPort> deploy ..................... for
> others
>   It would be nice if shutdown and deploy used same command syntax.
>     For the sake of uniformity, I would like to treat the server with
> name geronimo', i.e.
> gernimo:...j2eeType=J2EEServer,name=geronimo
>   as an instance. In other words it will be run from geronimo/var (not
> var). This will make a pristine copy of 'var' available all the time
> for creating new instances. This can be easily done by setting the
> property org.apache.geronimo.server.name=geronimo by default.

I like the notion of a pristine var to allow for easy instance
creation.  When you say "by default", are you suggesting that we ship
AG this way?  If this is done, then we must have geronimo and
geronimo/var directories in the shipped image.  I see those are small.
 Its the var/activemq/journals that are large (40MB), but they get
created after the instance is started.

>    Any other ideas are welcome..
>
> Thanks
> Anita
>
> --- Anita Kulshreshtha <a_...@yahoo.com> wrote:
>
> > Hi All,
> >  We need to make some additional [1] changes to the server to run
> > multiple instances of geronimo:
> > 1. By default i.e. bin\startup will start the server with a name (i1
> > or
> > something).
> > 2.A pristine copy of var and deploy (empty directory) will be
> > maintained at G_HOME, which could be used to start new instances. The
> > G_HOME/deploy is not necessary in this case. The server directory
> > will
> > look like this:
> >
> > GERONIMO_HOME -
> >               |- ...........
> >               | deploy - ??????????????
> >               |- var
> >
> >               |- instance1   -  var
> >                            |-  deploy
> >
> >               |- instance2  -   var
> >                            |-  deploy
> >
> >               |- ......................
> >
> >
> > [1] http://issues.apache.org/jira/browse/GERONIMO-3011
> >
> >
> >
> >
> >
> ____________________________________________________________________________________
> > The fish are biting.
> > Get more visitors on your site using Yahoo! Search Marketing.
> > http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>

Re: Running multiple instances of geronimo

Posted by Anita Kulshreshtha <a_...@yahoo.com>.
   Now the server instances can be run as follows:
1. create a directory in GERONIMO_HOME called say 'instance1'
2. copy 'var' directory to instance1.
3. edit instance1\var\config\config-substitutions.properties. Change
portOffset to 10, 20, .. (or anything else).
3. set GERONIMO_OPTS=-Dorg.apache.geronimo.server.name=instance1
4. bin\startup
5.  To shutdown use bin\shutdown for the instance using 1099, and
bin\shutdown --port=<rmiNamingPort> for others. The console can also be
used.
6. To deploy from command line use:
  bin\deploy ......... for instance at 1099
  bin\deploy -port <rmiNamingPort> deploy ..................... for
others
  It would be nice if shutdown and deploy used same command syntax.
    For the sake of uniformity, I would like to treat the server with
name geronimo', i.e.
gernimo:...j2eeType=J2EEServer,name=geronimo
  as an instance. In other words it will be run from geronimo/var (not
var). This will make a pristine copy of 'var' available all the time
for creating new instances. This can be easily done by setting the
property org.apache.geronimo.server.name=geronimo by default.
   Any other ideas are welcome..

Thanks
Anita
 
--- Anita Kulshreshtha <a_...@yahoo.com> wrote:

> Hi All,
>  We need to make some additional [1] changes to the server to run
> multiple instances of geronimo:
> 1. By default i.e. bin\startup will start the server with a name (i1
> or
> something).
> 2.A pristine copy of var and deploy (empty directory) will be
> maintained at G_HOME, which could be used to start new instances. The
> G_HOME/deploy is not necessary in this case. The server directory
> will
> look like this:
> 
> GERONIMO_HOME - 
>               |- ...........
>               | deploy - ??????????????
>               |- var
> 
>               |- instance1   -  var
>                            |-  deploy
> 
>               |- instance2  -   var
>                            |-  deploy
> 
>               |- ...................... 
> 
>
> [1] http://issues.apache.org/jira/browse/GERONIMO-3011
> 
> 
> 
>  
>
____________________________________________________________________________________
> The fish are biting. 
> Get more visitors on your site using Yahoo! Search Marketing.
> http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com