You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "lucas theisen (JIRA)" <ji...@apache.org> on 2015/07/10 22:57:04 UTC
[jira] [Created] (DIRSERVER-2081) ApacheDS taking up to 30 seconds
stop stop politely
lucas theisen created DIRSERVER-2081:
----------------------------------------
Summary: ApacheDS taking up to 30 seconds stop stop politely
Key: DIRSERVER-2081
URL: https://issues.apache.org/jira/browse/DIRSERVER-2081
Project: Directory ApacheDS
Issue Type: Bug
Affects Versions: 2.0.0-M20
Reporter: lucas theisen
To reproduce:
# {{svn update}} to the _-M21-SNAPSHOT_
# Unpack an archive apacheds
# Tune your {{$ADS_HOME/insances/default/conf/log4j.properties}} as follows:
## {code}
log4j.logger.org.apache.directory.server.core.DefaultDirectoryService=ALL
log4j.logger.org.apache.directory.server.config=INFO
log4j.logger.org.apache.directory.server.UberjarMain=ALL
{code}
# From $ADS_HOME
## {code}
cd instances/default/;
rm -rf .dirservice.lock partitions/* cache/* log/* run/* run/.s* syncrepl-data/*;
cd ../..;
bin/apacheds.sh start
{code}
## In a separate window
### {{tail -f $ADS_HOME/instances/default/log/apacheds.out}}
## Import the attached {{.ldif}} files (i dont think the specifics of the ldif files matters)
## {{apacheds.sh stop}}
This is not 100% of the time, but if done fairly close together, you should see the log look something like this:
{code}
[16:22:23] INFO [org.apache.directory.server.UberjarMain] - Stopping the service.
[16:22:23] DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - +++ DirectoryService Shutdown required
[16:22:23] DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - --- Syncing the nexus
[16:22:23] DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - --- Flushing everything before quitting
[16:22:23] DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - --- Syncing the changeLog
[16:22:23] DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - --- Destroying the nexus
[16:22:23] DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - --- Deleting the cache service
[16:22:23] DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - ---Deleting the DnCache
[16:22:23] DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - +++ DirectoryService stopped
[16:22:23] INFO [org.apache.directory.server.UberjarMain] - Service stopped successfully.
[16:22:43] DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - +++ DirectoryService Shutdown required
{code}
And you can see that the last log message was 10's of seconds after the initial shutdown request.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)