Issue Details (XML | Word | Printable)

Key: DIRSERVER-682
Type: Bug Bug
Status: Closed Closed
Resolution: Cannot Reproduce
Priority: Major Major
Assignee: Unassigned
Reporter: Ajay Upadhyaya
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

apacheds dump command - hangs very frequently

Created: 30/Jul/06 06:11 AM   Updated: 06/May/09 05:08 PM
Return to search
Component/s: None
Affects Version/s: 1.0-RC3
Fix Version/s: None

Time Tracking:
Not Specified

Environment:
apacheds1.0-RC3
Linux 2.4.20-8smp, 2CPU HT, jdk1.5.0_07

Resolution Date: 25/Jan/07 04:03 PM


 Description  « Hide
I'm trying out apacheds1.0-RC3

here is my env details
Linux 2.4.20-8smp, 2CPU HT, jdk1.5.0_07

I've a custom schema extension defined (works fine), and a data partition. ADS is working fine. When I try the dump command using apacheds-tools the dump is produced sometimes successfully (there are 2227 entries in the exported file... so its not huge), but many times the command just hangs. This happens when there are no queries done against apacheds by any client.

Jstack shows blocked threads, thread dump is shown below. I looked around for this type of issue, and found this unresolved issue
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5104239, but it was reported against 1.4.1, Anybody faced this issue, or have any insight...not sure if this is an issue with sun jvm or ADS code.


The command I'm using is this

(root)/usr/local/apacheds-1.0_RC3/bin#./apacheds-tools.sh dump -i /usr/local/apacheds-1.0_RC3 -p etouch -f /home/wikireg/dump
this is how my apacheds-tools.sh looks like.

#!/bin/sh
# Really simple script to launch apacheds tools with RPM installer
#JAVA_HOME=/usr/java/j2sdk1.4.2_06
JAVA_HOME=/usr/java/jdk1.5.0_07
APACHEDS_HOME=/usr/local/apacheds- 1.0_RC3
#$JAVA_HOME/bin/java -jar $APACHEDS_HOME/bin/apacheds-tools.jar $@
$JAVA_HOME/bin/java -classpath $APACHEDS_HOME/bin/apacheds-tools.jar:$APACHEDS_HOME/lib/ext/et.jar org.apache.directory.server.tools.ApachedsTools $@


thread dump (using jstack... as kill -3 is not working )
--------------------------------------------------------------------------------------------------
(root)/usr/java/jdk1.5.0_07/bin#ps -U root | grep java
  988 ? 00:12:20 java
 2027 pts/0 00:00:01 java
(root)/usr/java/jdk1.5.0_07/bin#./jstack 2027
Attaching to process ID 2027, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 1.5.0_07-b03
Thread 2035: (state = BLOCKED)


Thread 2034: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - java.lang.ref.ReferenceQueue.remove(long) @bci=44, line=116 (Interpreted fram
e)
 - java.lang.ref.ReferenceQueue.remove() @bci=2, line=132 (Interpreted frame)
 - java.lang.ref.Finalizer$FinalizerThread.run() @bci=3, line=159 (Interpreted f
rame)


Thread 2033: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - java.lang.Object.wait() @bci=2, line=474 (Interpreted frame)
 - java.lang.ref.Reference$ReferenceHandler.run() @bci=46, line=116 (Interpreted
 frame)


Thread 2027: (state = BLOCKED)
 - sun.misc.Resource.getBytes() @bci=16, line=75 (Interpreted frame)
 - java.net.URLClassLoader.defineClass(java.lang.String, sun.misc.Resource) @bci
=219, line=256 (Interpreted frame)
 - java.net.URLClassLoader.access$100(java.net.URLClassLoader, java.lang.String,
 sun.misc.Resource) @bci=3, line=56 (Interpreted frame)
 - java.net.URLClassLoader$1.run() @bci=43, line=195 (Interpreted frame)
 - java.security.AccessController.doPrivileged(java.security.PrivilegedException
Action, java.security.AccessControlContext) @bci=0 (Interpreted frame)
 - java.net.URLClassLoader.findClass(java.lang.String) @bci=13, line=188 (Interp
reted frame)
 - java.lang.ClassLoader.loadClass(java.lang.String, boolean) @bci=43, line=306
(Interpreted frame)
 - sun.misc.Launcher$AppClassLoader.loadClass(java.lang.String, boolean) @bci=36
, line=268 (Interpreted frame)
 - java.lang.ClassLoader.loadClass(java.lang.String) @bci=3, line=251 (Interpret
ed frame)
 - java.lang.ClassLoader.loadClassInternal(java.lang.String) @bci=2, line=319 (I
nterpreted frame)
 - org.springframework.beans.factory.support.AbstractBeanFactory.transformedBean
Name(java.lang.String) @bci=1, line=555 (Interpreted frame)
 - org.springframework.beans.factory.support.AbstractBeanFactory.getType(java.la
ng.String) @bci=2, line=303 (Interpreted frame)
 - org.springframework.context.support.AbstractApplicationContext.getType(java.l
ang.String) @bci=5, line=552 (Interpreted frame)
 - org.springframework.context.support.AbstractApplicationContext.invokeBeanFact
oryPostProcessors() @bci=80, line=357 (Interpreted frame)
 - org.springframework.context.support.AbstractApplicationContext.refresh() @bci
=289, line=294 (Interpreted frame)
 - org.springframework.context.support.FileSystemXmlApplicationContext .<init>(ja
va.lang.String[], boolean) @bci=14, line=82 (Interpreted frame)
 - org.springframework.context.support.FileSystemXmlApplicationContext.<init>(ja
va.lang.String[]) @bci=3, line=67 (Interpreted frame)
 - org.springframework.context.support.FileSystemXmlApplicationContext.<init>(ja
va.lang.String) @bci=9, line=58 (Interpreted frame)
 - org.apache.directory.server.tools.ApachedsTools.main(java.lang.String []) @bci
=413, line=103 (Interpreted frame)

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no subversion log entries for this issue yet.