Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 24425 invoked from network); 13 Jul 2006 08:26:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Jul 2006 08:26:53 -0000 Received: (qmail 77320 invoked by uid 500); 13 Jul 2006 08:26:53 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 77290 invoked by uid 500); 13 Jul 2006 08:26:52 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 77279 invoked by uid 99); 13 Jul 2006 08:26:52 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jul 2006 01:26:52 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_10_20,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ajayup@gmail.com designates 66.249.82.205 as permitted sender) Received: from [66.249.82.205] (HELO wx-out-0102.google.com) (66.249.82.205) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jul 2006 01:26:49 -0700 Received: by wx-out-0102.google.com with SMTP id h30so48674wxd for ; Thu, 13 Jul 2006 01:26:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=bvvAKzUFb1Cgfu+CsjaMtRnM/kZS4JGm4JN6e4WgZSxJ7uS2r8BF0IObR1rySLB71ZoKIn7WHUPu9BrntGF/+68PTFkYCxizBD2mKGgXJpW0vf9xNEpv8Dhn9BpfW0441uc2O+TUTct3wbtYCxumgpWxDk45YmEoTbVmGMxc5U8= Received: by 10.70.37.4 with SMTP id k4mr809699wxk; Thu, 13 Jul 2006 01:26:27 -0700 (PDT) Received: by 10.70.60.4 with HTTP; Thu, 13 Jul 2006 01:26:27 -0700 (PDT) Message-ID: <5f8bff6d0607130126wd5a4503ldcced8fc1f2d552a@mail.gmail.com> Date: Thu, 13 Jul 2006 01:26:27 -0700 From: "Ajay Upadhyaya" To: dev@directory.apache.org Subject: apacheds dump command - hangs very frequently MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3811_31024208.1152779187811" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_3811_31024208.1152779187811 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, 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. 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 .(ja va.lang.String[], boolean) @bci=14, line=82 (Interpreted frame) - org.springframework.context.support.FileSystemXmlApplicationContext .(ja va.lang.String[]) @bci=3, line=67 (Interpreted frame) - org.springframework.context.support.FileSystemXmlApplicationContext .(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) Thanks, Ajay ------=_Part_3811_31024208.1152779187811 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,
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. 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)

Thanks,
Ajay

------=_Part_3811_31024208.1152779187811--