You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Mark-nospam <te...@debusschere.com> on 2015/06/12 19:04:31 UTC

shutdown fails to complete cleanly M20


I have ADS embedded in a simple loader application. After switching to M20, the JVM doesn't exit when it should. 

The was working in M17. I ran a few tests with no connections in this case it appears to start / stop cleanly. 

I tried M19 same issue with threads not exiting. 



After shutdown and main thread exits but there are a few threads remaining with one spinning in what looks like the MS runtime endthread. 

The loader only uses two threads which both report ending and the thread id's aren't related to remaining threads. 



I am running Win64 with java 1.7.0.55 also tested with 1.7.80 



Any suggestions ? 



2015-06-08 09:18:57,426 INFO [j.ApacheDSLoader] - Calling service.stop() on ApacheDsService, threadId=1 

2015-06-08 09:18:57,449 INFO [org.apache.directory.server.ldap.LdapServer] - Unbind of an LDAP service (10389) is complete. 

2015-06-08 09:18:57,449 INFO [org.apache.directory.server.ldap.LdapServer] - Sending notice of disconnect to existing clients sessions. 

2015-06-08 09:18:57,450 INFO [org.apache.directory.server.ldap.LdapServer] - Unbind of an LDAP service (10389) is complete. 

2015-06-08 09:18:57,450 INFO [org.apache.directory.server.ldap.LdapServer] - Sending notice of disconnect to existing clients sessions. 

2015-06-08 09:18:57,450 INFO [org.apache.directory.server.ldap.LdapServer] - Ldap service stopped. 

2015-06-08 09:18:57,450 DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - +++ DirectoryService Shutdown required 

2015-06-08 09:18:57,450 DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - --- Syncing the nexus 

2015-06-08 09:18:57,450 DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - --- Flushing everything before quitting 

2015-06-08 09:18:58,328 DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - --- Syncing the changeLog 

2015-06-08 09:18:58,328 DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - --- Destroying the nexus 

2015-06-08 09:19:04,894 DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - --- Deleting the cache service 

2015-06-08 09:19:04,894 INFO [org.apache.directory.server.core.api.CacheService] - clearing all the caches 

2015-06-08 09:19:04,988 DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - ---Deleting the DnCache 

2015-06-08 09:19:04,988 DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - +++ DirectoryService stopped 

2015-06-08 09:19:04,988 INFO [j.ApacheDSLoader] - main thread end. threadId=1 



Another possibly related issue, sometimes during shutdown I see the following output as the last line. It appears another thread 

is also calling stop after the stop process has completed. 



2015-06-08 09:18:57,450 DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - +++ DirectoryService Shutdown required 




-Mark. 







Re: shutdown fails to complete cleanly M20

Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 12/06/15 19:04, Mark-nospam a écrit :
>
> I have ADS embedded in a simple loader application. After switching to M20, the JVM doesn't exit when it should. 
>
> The was working in M17. I ran a few tests with no connections in this case it appears to start / stop cleanly. 
>
> I tried M19 same issue with threads not exiting. 
>
>
>
> After shutdown and main thread exits but there are a few threads remaining with one spinning in what looks like the MS runtime endthread. 
>
> The loader only uses two threads which both report ending and the thread id's aren't related to remaining threads. 
>
>
>
> I am running Win64 with java 1.7.0.55 also tested with 1.7.80 
>
>
>
> Any suggestions ? 

Can you do a thread dump so that we can see which threads are still alive ?


Re: ApacheDS : shutdown fails to complete cleanly M20,M19

Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 13/06/15 17:17, Mark-nospam a écrit :
> I have ADS embedded in a simple loader application. After switching to M20, the JVM doesn't exit when it should. 
>
>
> This was working in M17. I ran a few tests with no connections in this case it appears to start / stop cleanly. 
>
> I tried M19 same issue with threads not exiting. 

Could you generate a thread dump and attach it to a JIRA ? Thanks !


ApacheDS : shutdown fails to complete cleanly M20,M19

Posted by Mark-nospam <te...@debusschere.com>.
I have ADS embedded in a simple loader application. After switching to M20, the JVM doesn't exit when it should. 


This was working in M17. I ran a few tests with no connections in this case it appears to start / stop cleanly. 

I tried M19 same issue with threads not exiting. 



After shutdown and main thread exits but there are a few threads remaining with one spinning in what looks like the MS runtime endthread. 

The loader only uses two threads which both report ending and the thread id's aren't related to remaining threads. 



I am running Win64 with java 1.7.0.55 also tested with 1.7.80 



Any suggestions ? 



2015-06-08 09:18:57,426 INFO [j.ApacheDSLoader] - Calling service.stop() on ApacheDsService, threadId=1 

2015-06-08 09:18:57,449 INFO [org.apache.directory.server.ldap.LdapServer] - Unbind of an LDAP service (10389) is complete. 

2015-06-08 09:18:57,449 INFO [org.apache.directory.server.ldap.LdapServer] - Sending notice of disconnect to existing clients sessions. 

2015-06-08 09:18:57,450 INFO [org.apache.directory.server.ldap.LdapServer] - Unbind of an LDAP service (10389) is complete. 

2015-06-08 09:18:57,450 INFO [org.apache.directory.server.ldap.LdapServer] - Sending notice of disconnect to existing clients sessions. 

2015-06-08 09:18:57,450 INFO [org.apache.directory.server.ldap.LdapServer] - Ldap service stopped. 

2015-06-08 09:18:57,450 DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - +++ DirectoryService Shutdown required 

2015-06-08 09:18:57,450 DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - --- Syncing the nexus 

2015-06-08 09:18:57,450 DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - --- Flushing everything before quitting 

2015-06-08 09:18:58,328 DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - --- Syncing the changeLog 

2015-06-08 09:18:58,328 DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - --- Destroying the nexus 

2015-06-08 09:19:04,894 DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - --- Deleting the cache service 

2015-06-08 09:19:04,894 INFO [org.apache.directory.server.core.api.CacheService] - clearing all the caches 

2015-06-08 09:19:04,988 DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - ---Deleting the DnCache 

2015-06-08 09:19:04,988 DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - +++ DirectoryService stopped 

2015-06-08 09:19:04,988 INFO [j.ApacheDSLoader] - main thread end. threadId=1 



Another possibly related issue, sometimes during shutdown I see the following output as the last line. It appears another thread 

is also calling stop after the stop process has completed. 



2015-06-08 09:18:57,450 DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - +++ DirectoryService Shutdown required 




-Mark.