Hi! i recompiled my APR 1.2.7 with /dev/urandom and hence recompiled Native libraries (because Native library builds with --with-apr-) i did not recompile the jsvc part though
I dont have X server installed on the machine. So cannot use Jconsole. I am attaching two outputs displayed by jstack and top respectively for the jsvc.exe started by the tomcat user Also there is only one sample application (Hello world) that i have deployed on tomcat.. So applications are not causing the delay Is there any other way to look to threads dump? Neha ------------------------------ with Jstack i got the following output when i passed the PID of th Tomcat process on the command line. ----------------------------------------------- Attaching to process ID 26595, please wait... Debugger attached successfully. Server compiler detected. JVM version is 1.5.0_10-b03 Thread 26607: (state = BLOCKED) Thread 26606: (state = BLOCKED) - java.lang.Object.wait(long) @bci=0 (Interpreted frame) - java.lang.ref.ReferenceQueue.remove(long) @bci=44, line=116 (Interpreted frame) - java.lang.ref.ReferenceQueue.remove() @bci=2, line=132 (Interpreted frame) - java.lang.ref.Finalizer$FinalizerThread.run() @bci=3, line=159 (Interpreted frame) Thread 26605: (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 26595: (state = IN_NATIVE) - org.apache.tomcat.jni.SSL.initialize(java.lang.String) @bci=0 (Interpreted frame) - org.apache.tomcat.util.net.AprEndpoint.init() @bci=486, line=633 (Interpreted frame) - org.apache.coyote.http11.Http11AprProtocol.init() @bci=26, line=116 (Interpreted frame) - org.apache.catalina.connector.Connector.initialize() @bci=201, line=1017 (Interpreted frame) - org.apache.catalina.core.StandardService.initialize() @bci=189, line=578 (Interpreted frame) - org.apache.catalina.core.StandardServer.initialize() @bci=170, line=782 (Interpreted frame) - org.apache.catalina.startup.Catalina.load() @bci=310, line=504 (Interpreted frame) - sun.reflect.NativeMethodAccessorImpl.invoke0(java.lang.reflect.Method, java.lang.Object, java.lang.Object[]) @bci=0 (Interpreted frame) - sun.reflect.NativeMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) @bci=87, line=39 (Interpreted frame) - sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) @bci=6, line=25 (Interpreted frame) - java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) @bci=111, line=585 (Interpreted frame) - org.apache.catalina.startup.Bootstrap.load(java.lang.String[]) @bci=104, line=267 (Interpreted frame) - org.apache.catalina.startup.Bootstrap.init(java.lang.String[]) @bci=6, line=282 (Interpreted frame) - sun.reflect.NativeMethodAccessorImpl.invoke0(java.lang.reflect.Method, java.lang.Object, java.lang.Object[]) @bci=0 (Interpreted frame) - sun.reflect.NativeMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) @bci=87, line=39 (Interpreted frame) - sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) @bci=6, line=25 (Interpreted frame) - java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) @bci=111, line=585 (Interpreted frame) - org.apache.commons.daemon.support.DaemonLoader.load(java.lang.String, java.lang.String[]) @bci=305, line=160 (Interpreted frame) --------------------------------------------- and with #top -H -p tomcat_proceess_id i got PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 26595 tomcat6 15 0 1713m 54m 12m S 0 1.4 0:00.88 jsvc 26596 tomcat6 15 0 1713m 54m 12m S 0 1.4 0:00.00 jsvc 26597 tomcat6 15 0 1713m 54m 12m S 0 1.4 0:00.00 jsvc 26598 tomcat6 15 0 1713m 54m 12m S 0 1.4 0:00.00 jsvc 26599 tomcat6 15 0 1713m 54m 12m S 0 1.4 0:00.00 jsvc 26600 tomcat6 15 0 1713m 54m 12m S 0 1.4 0:00.00 jsvc 26601 tomcat6 15 0 1713m 54m 12m S 0 1.4 0:00.00 jsvc 26602 tomcat6 15 0 1713m 54m 12m S 0 1.4 0:00.00 jsvc 26603 tomcat6 15 0 1713m 54m 12m S 0 1.4 0:00.00 jsvc 26604 tomcat6 15 0 1713m 54m 12m S 0 1.4 0:00.00 jsvc 26605 tomcat6 15 0 1713m 54m 12m S 0 1.4 0:00.00 jsvc 26606 tomcat6 15 0 1713m 54m 12m S 0 1.4 0:00.00 jsvc 26607 tomcat6 15 0 1713m 54m 12m S 0 1.4 0:00.00 jsvc 26608 tomcat6 15 0 1713m 54m 12m S 0 1.4 0:00.00 jsvc 26609 tomcat6 15 0 1713m 54m 12m S 0 1.4 0:00.47 jsvc 26610 tomcat6 15 0 1713m 54m 12m S 0 1.4 0:00.53 jsvc 26611 tomcat6 15 0 1713m 54m 12m S 0 1.4 0:00.00 jsvc 26612 tomcat6 15 0 1713m 54m 12m S 0 1.4 0:00.00 jsvc thanks Neha --- Christopher Schultz <[EMAIL PROTECTED]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Chuck, > > Caldarale, Charles R wrote: > | 2) Try taking periodic stack traces to find out > where the threads are > | spending their time (jstack helps here, as would a > profiler). > > Definitely. If you have a 12 minute delay, do > something with that time. > One of the last things to happen during Tomcat > startup is for all the > request handler threads to be created. I suspect > that this delay occurs > before that time. That means that thread dumps are > super easy to read: > there will be a small number of threads and you can > easily see which > ones are trying to do things rather than sitting > idle. Whatever thread > is actually doing something is probably the one with > problems. > > If you can't figure out what's going on, post the > entire thread dump. > > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.8 (MingW32) > Comment: Using GnuPG with Mozilla - > http://enigmail.mozdev.org > > iEYEARECAAYFAke6KIgACgkQ9CaO5/Lv0PDD5gCfZFFPEel8XeHUay7ilb6J6zeP > g9gAn1/UEUd40sNGn97ne8oEXWMoStvH > =bOzU > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To start a new topic, e-mail: > users@tomcat.apache.org > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > Save all your chat conversations. Find them online at http://in.messenger.yahoo.com/webmessengerpromo.php --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]