directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Karasulu" <akaras...@apache.org>
Subject Re: WebApp Persistance on Unix
Date Tue, 19 Aug 2008 16:11:35 GMT
On Tue, Aug 19, 2008 at 11:37 AM, Fu-Tung Cheng <futung.cheng@yahoo.com>wrote:

> Hi Emmanuel,
>
> Looks like the problem was that I was using shutdown -force which
> apparently just kills the java process and doesn't allow ds to properly
> shutdown.  For me shutdown on it's own in linux doesn't shutdown tomcat.  On
> windows just killing the window does allow ds to shutdown.
>
> I'd like to put some code into the webapp such that the ds will
> periodically flush the updates to disk so that in the event the server
> looses power the data is not gone.
>
> Any suggestions on how to go about doing that?


There are features if you look at the partition configuration sections to
sync on writes.  And if you don't use this you can adjust the sync period.

Alex


>
>
> Thank you,
>
> Fu-Tung
>
>
> --- On Wed, 8/13/08, Fu-Tung Cheng <futung.cheng@yahoo.com> wrote:
>
> > From: Fu-Tung Cheng <futung.cheng@yahoo.com>
> > Subject: Re: WebApp Persistance on Unix
> > To: users@directory.apache.org
> > Date: Wednesday, August 13, 2008, 10:15 PM
> > I have the work directory and it has the files.  This is the
> > place that I checked for the permissions.  The problem is
> > that the files don't change with a change to the ds.
> >
> > I have connected to the ds with studio, jxplorer and my
> > java api and all show the changes after they are made and
> > all show the changes disappear after i stop and restart the
> > tomcat which is running the ds as the web app.
> >
> > Since the exact same code works on windows I think I'll
> > step through the source to find out where the code is
> > writing/persisting the data to disk and find out why that
> > isn't happening in linux unless you have a better
> > suggestion?
> >
> > Thanks for the response,
> >
> > Fu-Tung
> >
> >
> > --- On Wed, 8/13/08, Emmanuel Lecharny
> > <elecharny@gmail.com> wrote:
> >
> > > From: Emmanuel Lecharny <elecharny@gmail.com>
> > > Subject: Re: WebApp Persistance on Unix
> > > To: users@directory.apache.org
> > > Date: Wednesday, August 13, 2008, 4:29 PM
> > > Fu-Tung Cheng wrote:
> > > > Hi Emmanuel,
> > > >
> > > > The directory was good as well.
> > > >
> > > > I am using 1.0.2.
> > > >
> > > > Hard to say what you'd like to see from the
> > logs.
> > > The info log doesn't show much.  The debug log has
> > a lot
> > > of info but nothing really jumps out.
> > > >
> > > What if you try to connect on the embedded Ldap server
> > with
> > > Apache
> > > Directory Studio ? As the server is listening on port
> > 8389,
> > > you may be
> > > able to add some value and read them back. It would be
> > > interesting to
> > > check that you can read them after having stopped and
> > > restarted the webapp.
> > >
> > > Also check that you have a server-work directory on
> > your
> > > disk. (The
> > > subdirectories contain the data and index for each
> > > partitions).
> > >
> > > --
> > > --
> > > cordialement, regards,
> > > Emmanuel L├ęcharny
> > > www.iktek.com
> > > directory.apache.org
>
>
>
>
>


-- 
Microsoft gives you Windows, Linux gives you the whole house ...

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message