Gustavo Noronha a écrit : > >Any hints on how to associate a thread with an OS PID? Or any other way of >identifying what thread is the culprit? I have played with the kill -3 >feature, but didn't get very far investigating the output. =( > >Thanks! > > > the kill -3 send a signal, that is you must send it to a process (in you case the java virtual machine). The sun java machine has the behaviour to dump a full stacktrace of all it's threads when it receive this. Of course you won't get the dump in the console where you ran kill it. it will probably be in catalina.out
Shoud look like this Full thread dump Java HotSpot(TM) Client VM (1.4.2_05-b04 mixed mode): "Store be.rmi.intranet.slide.JNDIPrincipalStore Expiry Thread" daemon prio=1 tid=0x0864ba68 nid=0x765d waiting on condition [a8d37000..a8d3723c] at java.lang.Thread.sleep(Native Method) at net.sf.ehcache.store.DiskStore.expiryThreadMain(DiskStore.java:641) at net.sf.ehcache.store.DiskStore.access$700(DiskStore.java:89) at net.sf.ehcache.store.DiskStore$ExpiryThread.run(DiskStore.java:772) "Store be.rmi.intranet.slide.JNDIPrincipalStore Spool Thread" daemon prio=1 tid=0x08625be8 nid=0x765d in Object.wait() [a8db8000..a8db823c] at java.lang.Object.wait(Native Method) - waiting on <0xac4b2178> (a net.sf.ehcache.store.DiskStore) at java.lang.Object.wait(Object.java:429) at net.sf.ehcache.store.DiskStore.spoolThreadMain(DiskStore.java:476) - locked <0xac4b2178> (a net.sf.ehcache.store.DiskStore) at net.sf.ehcache.store.DiskStore.access$600(DiskStore.java:89) at net.sf.ehcache.store.DiskStore$SpoolThread.run(DiskStore.java:755) "Signal Dispatcher" daemon prio=1 tid=0x080a7150 nid=0x765d runnable [0..0] "Finalizer" daemon prio=1 tid=0x080a2780 nid=0x765d in Object.wait() [ab24d000..ab24d23c] at java.lang.Object.wait(Native Method) - waiting on <0xab8bb448> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111) - locked <0xab8bb448> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159) "Reference Handler" daemon prio=1 tid=0x080a1b90 nid=0x765d in Object.wait() [ab2ce000..ab2ce23c] at java.lang.Object.wait(Native Method) - waiting on <0xab8bb4b0> (a java.lang.ref.Reference$Lock) at java.lang.Object.wait(Object.java:429) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:115) - locked <0xab8bb4b0> (a java.lang.ref.Reference$Lock) "main" prio=1 tid=0x0805bfb8 nid=0x765d runnable [bfc08000..bfc09558] at oracle.jdbc.driver.OraclePreparedStatement.<clinit>(OraclePreparedStatement.java:92) at oracle.jdbc.driver.T4CDriverExtension.allocatePreparedStatement(T4CDriverExtension.java:70) at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:853) - locked <0xac57c6b0> (a oracle.jdbc.driver.T4CConnection) at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:759) - locked <0xac57c6b0> (a oracle.jdbc.driver.T4CConnection) at org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingConnection.java:185) at org.apache.commons.dbcp.PoolingDriver$PoolGuardConnectionWrapper.prepareStatement(PoolingDriver.java:338) at org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.assureUriId(StandardRDBMSAdapter.java:1266) at org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.storeObject(StandardRDBMSAdapter.java:101) at org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.createObject(StandardRDBMSAdapter.java:83) at org.apache.slide.store.impl.rdbms.AbstractRDBMSStore.createObject(AbstractRDBMSStore.java:443) at org.apache.slide.store.AbstractStore.createObject(AbstractStore.java:670) at org.apache.slide.store.ExtendedStore.createObject(ExtendedStore.java:602) at org.apache.slide.common.Namespace.loadBaseData(Namespace.java:785) at org.apache.slide.common.Domain.initNamespace(Domain.java:845) at org.apache.slide.common.Domain.init(Domain.java:432) at org.apache.slide.common.Domain.init(Domain.java:366) at org.apache.slide.common.Domain.init(Domain.java:329) at be.rmi.intranet.servlet.SetupServlet.initSubSystems(SetupServlet.java:152) at be.rmi.intranet.servlet.SetupServlet.init(SetupServlet.java:139) at javax.servlet.GenericServlet.init(GenericServlet.java:211) at be.rmi.intranet.servlet.SetupServlet.init(SetupServlet.java:142) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068) - locked <0xac2ca0e8> (a org.apache.catalina.core.StandardWrapper) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:900) - locked <0xac2ca0e8> (a org.apache.catalina.core.StandardWrapper) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3823) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4087) - locked <0xac1876f0> (a org.apache.catalina.core.StandardContext) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) - locked <0xab9a37d8> (a java.util.HashMap) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:590) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1019) - locked <0xab99eb50> (a org.apache.catalina.core.StandardHost) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) - locked <0xab99eb50> (a org.apache.catalina.core.StandardHost) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011) - locked <0xab986ce8> (a org.apache.catalina.core.StandardEngine) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440) at org.apache.catalina.core.StandardService.start(StandardService.java:450) - locked <0xab986ce8> (a org.apache.catalina.core.StandardEngine) at org.apache.catalina.core.StandardServer.start(StandardServer.java:683) - locked <0xab99d7e0> (a [Lorg.apache.catalina.Service;) at org.apache.catalina.startup.Catalina.start(Catalina.java:537) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) "VM Thread" prio=1 tid=0x080a0970 nid=0x765d runnable ............ jsut analyze where your thread are stuck in this. It takes time but can prove a usefull information. You can also send it to ml and hope someone will help you analyze :) regards David Delbecq --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]