dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #38035
Re: How to unistall dhis2 instance
Dear Bob,
I will try to see what I can do and I will get back to you. Thanks for your
help
On Tuesday, June 16, 2015, Bob Jolliffe <bobjolliffe@xxxxxxxxx> wrote:
> Hi Gerald
>
> I think you are being over ambitious to try and run in a 1G virtual
> machine. In fact even to run XEN server on 2G machine doesn't make a
> lot of sense. I can understand you might want to explore XEN
> features, but you are very squeezed.
>
> I am not sure what the minimum heap size required by dhis is.
> Postgres by default if you haven't tuned it might use about 200M.
> Nginx less. You might try setting your DHIS heapspace in setenv.sh to
> something like 700M. But even so it seems extremely tight and you
> will not end up with anything that is particularly useful.
>
> Bob
>
> On 16 June 2015 at 20:57, gerald thomas <gerald17006@xxxxxxxxx
> <javascript:;>> wrote:
> > Dear All,
> > For your information the dhis instance is running on an ubuntu 14.04
> > server VM on an XEN Server. The XEN Server has 2Gb RAM so i am using
> > 1Gb on the ubuntu VM that is running the dhis instance.
> > From the manual
> > https://www.dhis2.org/doc/snapshot/en/implementer/html/re01.html
> > I was informed that as per default the instance should be allocated
> > 2Gb of heap space RAM but that i can adjust
> > "var/lib/dhis2/<name>/bin/setenv.sh" to work with lower values of RAM
> > sizes. Please can anyone help me with the adjustment because i had
> > confirmed that everything is working properly but my system is below
> > requirement for it to work properly.
> >
> > On 6/16/15, Bob Jolliffe <bobjolliffe@xxxxxxxxx <javascript:;>> wrote:
> >> Hi Gerald
> >>
> >> I think you neglected to mention you are using dhis2-tools to create
> >> this instance. When you run 'dhis2-instance-create myinstance' a few
> >> things happen:
> >> 1. a new user called myinstance is created with a home dir of
> >> /var/lib/dhis2/myinstance
> >> 2. a new database role called myinstance is created; and
> >> 3. a new database called myinstance is created
> >>
> >> So to roll all that back ....
> >>
> >> dropdb myinstance (this will remove the database - back it up first if
> >> you need to keep a copy)
> >> dropuser myinstance
> >> userdel -r myinstance
> >>
> >> Cheers
> >> Bob
> >>
> >> On 16 June 2015 at 03:42, gerald thomas <gerald17006@xxxxxxxxx
> <javascript:;>> wrote:
> >>> Dear Dan,
> >>> When I drop the database, the role for such database is still there;
> but
> >>> that can be removed also. Now, if I try to create that instance again
> it
> >>> will say instance already created. So how can remove and create
> >>> everything
> >>> from scratch.
> >>> Please remember I will the same instance name.
> >>>
> >>> Regards,
> >>> Gerald
> >>>
> >>> On 16 Jun 2015 00:57, "Dan Cocos" <dcocos@xxxxxxxxxxxxxx
> <javascript:;>> wrote:
> >>>>
> >>>> You can simply remove the war file and the directory from your servlet
> >>>> container and drop the database.
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> > On Jun 15, 2015, at 8:08 PM, gerald thomas <gerald17006@xxxxxxxxx
> <javascript:;>>
> >>>> > wrote:
> >>>> >
> >>>> > Dear All,
> >>>> > Please can anyone help give me the steps how to uninstall an
> instance
> >>>> > in dhis2.
> >>>> >
> >>>> > --
> >>>> > Regards,
> >>>> >
> >>>> > Gerald
> >>>> >
> >>>> > _______________________________________________
> >>>> > Mailing list: https://launchpad.net/~dhis2-devs
> >>>> > Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx <javascript:;>
> >>>> > Unsubscribe : https://launchpad.net/~dhis2-devs
> >>>> > More help : https://help.launchpad.net/ListHelp
> >>>
> >>>
> >>> _______________________________________________
> >>> Mailing list: https://launchpad.net/~dhis2-devs
> >>> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx <javascript:;>
> >>> Unsubscribe : https://launchpad.net/~dhis2-devs
> >>> More help : https://help.launchpad.net/ListHelp
> >>>
> >>
> >
> >
> > --
> > Regards,
> >
> > Gerald
>
--
Regards,
Gerald
References