tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: troubleshoot tomcat database connection
Date Mon, 03 Nov 2014 19:27:52 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Mark,

On 11/3/14 1:58 PM, Mark Maciolek wrote:
> system is running Scientific Linux release 6.5 rpm installed
> 
> tomcat6-servlet-2.5-api-6.0.24-78.el6_5.noarch 
> tomcat6-javadoc-6.0.24-78.el6_5.noarch 
> tomcat6-lib-6.0.24-78.el6_5.noarch 
> tomcat-native-1.1.30-1.el6.x86_64 
> tomcat6-el-2.1-api-6.0.24-78.el6_5.noarch 
> tomcat6-admin-webapps-6.0.24-78.el6_5.noarch 
> apache-tomcat-apis-0.1-1.el6.noarch 
> tomcat6-jsp-2.1-api-6.0.24-78.el6_5.noarch 
> tomcat6-webapps-6.0.24-78.el6_5.noarch 
> tomcat-servlet-3.0-api-7.0.33-4.el6.noarch 
> tomcat6-6.0.24-78.el6_5.noarch 
> tomcat6-docs-webapp-6.0.24-78.el6_5.noarch

Wow, those are really out of date. I know that RPM packages often have
the "wrong" versions numbers with back-ported bug and security fixes,
etc., so it's tough to tell, but you may be hideously out of date.

> httpd-2.2.15-31.sl6.x86_64
> 
> tomcat starts and I can reach the page on the 8080 port

Great.

> It never starts the connection host name connection from the
> server.xml

I'm not sure what you mean here. What is the "connection host name
connection" and why should it "start"?

> I do a kill -3 on the tomcat pid and this is what the logs shows:
> 
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.24 Nov 3, 2014
> 1:19:10 PM org.apache.catalina.startup.HostConfig deployDescriptor 
> INFO: Deploying configuration descriptor host-manager.xml Nov 3,
> 2014 1:19:10 PM org.apache.catalina.startup.HostConfig 
> deployDescriptor INFO: Deploying configuration descriptor
> manager.xml Nov 3, 2014 1:19:10 PM
> org.apache.catalina.startup.HostConfig deployDirectory INFO:
> Deploying web application directory ROOT Nov 3, 2014 1:19:10 PM
> org.apache.catalina.startup.HostConfig deployDirectory INFO:
> Deploying web application directory examples Nov 3, 2014 1:19:11 PM
> org.apache.catalina.startup.HostConfig deployDirectory INFO:
> Deploying web application directory sample Nov 3, 2014 1:19:11 PM
> org.apache.catalina.startup.HostConfig deployDirectory INFO:
> Deploying web application directory docs Nov 3, 2014 1:19:11 PM
> org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote
> HTTP/1.1 on http-8080 Nov 3, 2014 1:19:11 PM
> org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening
> on /0.0.0.0:8009 Nov 3, 2014 1:19:11 PM org.apache.jk.server.JkMain
> start INFO: Jk running ID=0 time=0/54  config=null Nov 3, 2014
> 1:19:11 PM org.apache.catalina.startup.Catalina start INFO: Server
> startup in 1307 ms

So you have an HTTP connector on port 8080 and an AJP connector on
port 8009. That's an out-of-the-box configuration of Tomcat if you
download it from apache.org (or a mirror) so that's nice.

> 2014-11-03 13:19:37 Full thread dump OpenJDK 64-Bit Server VM
> (23.25-b01 mixed mode):
> 
> "TP-Monitor" daemon prio=10 tid=0x00007feca454d800 nid=0x729f in 
> Object.wait() [0x00007feca2410000] java.lang.Thread.State:
> TIMED_WAITING (on object monitor) at java.lang.Object.wait(Native
> Method) - waiting on <0x00000000ba74ea78> (a 
> org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable) at 
> org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(ThreadPool.java:565)
>
>  - locked <0x00000000ba74ea78> (a 
> org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable) at
> java.lang.Thread.run(Thread.java:701)
> 
> "TP-Processor4" daemon prio=10 tid=0x00007feca452f000 nid=0x729e 
> runnable [0x00007feca2511000] java.lang.Thread.State: RUNNABLE at
> java.net.PlainSocketImpl.socketAccept(Native Method) at 
> java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:375)
>
> 
at java.net.ServerSocket.implAccept(ServerSocket.java:478)
> at java.net.ServerSocket.accept(ServerSocket.java:446) at 
> org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:307) 
> at 
> org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:661)
>
>  at 
> org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt(ChannelSocket.java:872)
>
>  at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
>
>  at java.lang.Thread.run(Thread.java:701)
> 
> "TP-Processor3" daemon prio=10 tid=0x00007feca452d000 nid=0x729d
> in Object.wait() [0x00007feca2612000] java.lang.Thread.State:
> WAITING (on object monitor) at java.lang.Object.wait(Native
> Method) - waiting on <0x00000000ba74e3a8> (a 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable) at
> java.lang.Object.wait(Object.java:502) at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:662)
>
>  - locked <0x00000000ba74e3a8> (a 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable) at
> java.lang.Thread.run(Thread.java:701)
> 
> "TP-Processor2" daemon prio=10 tid=0x00007feca4532000 nid=0x729c
> in Object.wait() [0x00007feca2713000] java.lang.Thread.State:
> WAITING (on object monitor) at java.lang.Object.wait(Native
> Method) - waiting on <0x00000000ba74e010> (a 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable) at
> java.lang.Object.wait(Object.java:502) at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:662)
>
>  - locked <0x00000000ba74e010> (a 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable) at
> java.lang.Thread.run(Thread.java:701)
> 
> "TP-Processor1" daemon prio=10 tid=0x00007feca452a000 nid=0x729b
> in Object.wait() [0x00007feca2814000] java.lang.Thread.State:
> WAITING (on object monitor) at java.lang.Object.wait(Native
> Method) - waiting on <0x00000000ba74dc60> (a 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable) at
> java.lang.Object.wait(Object.java:502) at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:662)
>
>  - locked <0x00000000ba74dc60> (a 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable) at
> java.lang.Thread.run(Thread.java:701)
> 
> "http-8080-Acceptor-0" daemon prio=10 tid=0x00007feca44fb000
> nid=0x7299 runnable [0x00007feca2915000] java.lang.Thread.State:
> RUNNABLE at java.net.PlainSocketImpl.socketAccept(Native Method) 
> at 
> java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:375)
>
> 
at java.net.ServerSocket.implAccept(ServerSocket.java:478)
> at java.net.ServerSocket.accept(ServerSocket.java:446) at 
> org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:61)
>
>  at 
> org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:352)
>
> 
at java.lang.Thread.run(Thread.java:701)
> 
> "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon
> prio=10 tid=0x00007feca4501000 nid=0x7298 waiting on condition
> [0x00007feca2a16000] java.lang.Thread.State: TIMED_WAITING
> (sleeping) at java.lang.Thread.sleep(Native Method) at 
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1579)
>
>  at java.lang.Thread.run(Thread.java:701)
> 
> "GC Daemon" daemon prio=10 tid=0x00007feca440e800 nid=0x7297 in 
> Object.wait() [0x00007feca2d2d000] java.lang.Thread.State:
> TIMED_WAITING (on object monitor) at java.lang.Object.wait(Native
> Method) - waiting on <0x00000000cdd49190> (a
> sun.misc.GC$LatencyLock) at sun.misc.GC$Daemon.run(GC.java:117) -
> locked <0x00000000cdd49190> (a sun.misc.GC$LatencyLock)
> 
> "Low Memory Detector" daemon prio=10 tid=0x00007feca40f0000
> nid=0x7295 runnable [0x0000000000000000] java.lang.Thread.State:
> RUNNABLE
> 
> "C2 CompilerThread1" daemon prio=10 tid=0x00007feca40ed800
> nid=0x7294 waiting on condition [0x0000000000000000] 
> java.lang.Thread.State: RUNNABLE
> 
> "C2 CompilerThread0" daemon prio=10 tid=0x00007feca40eb000
> nid=0x7293 waiting on condition [0x0000000000000000] 
> java.lang.Thread.State: RUNNABLE
> 
> "Signal Dispatcher" daemon prio=10 tid=0x00007feca40e9000
> nid=0x7292 waiting on condition [0x0000000000000000] 
> java.lang.Thread.State: RUNNABLE
> 
> "Finalizer" daemon prio=10 tid=0x00007feca409a800 nid=0x7291 in 
> Object.wait() [0x00007feca3c65000] java.lang.Thread.State: WAITING
> (on object monitor) at java.lang.Object.wait(Native Method) -
> waiting on <0x00000000cdb55a98> (a 
> java.lang.ref.ReferenceQueue$Lock) at
> java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:133) -
> locked <0x00000000cdb55a98> (a java.lang.ref.ReferenceQueue$Lock) 
> at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:149) at
> java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:189)
> 
> "Reference Handler" daemon prio=10 tid=0x00007feca4098800
> nid=0x7290 in Object.wait() [0x00007feca3d66000] 
> java.lang.Thread.State: WAITING (on object monitor) at
> java.lang.Object.wait(Native Method) - waiting on
> <0x00000000cdb557c8> (a java.lang.ref.Reference$Lock) at
> java.lang.Object.wait(Object.java:502) at
> java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133) -
> locked <0x00000000cdb557c8> (a java.lang.ref.Reference$Lock)
> 
> "main" prio=10 tid=0x00007feca4009000 nid=0x728d runnable 
> [0x00007fecabf19000] java.lang.Thread.State: RUNNABLE at
> java.net.PlainSocketImpl.socketAccept(Native Method) at 
> java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:375)
>
> 
at java.net.ServerSocket.implAccept(ServerSocket.java:478)
> at java.net.ServerSocket.accept(ServerSocket.java:446) at 
> org.apache.catalina.core.StandardServer.await(StandardServer.java:389)
>
> 
at org.apache.catalina.startup.Catalina.await(Catalina.java:657)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:617) at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
>  at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>  at java.lang.reflect.Method.invoke(Method.java:622) at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
> 
> "VM Thread" prio=10 tid=0x00007feca4089800 nid=0x728f runnable
> 
> "VM Periodic Task Thread" prio=10 tid=0x00007feca40fb000
> nid=0x7296 waiting on condition
> 
> JNI global references: 231
> 
> Heap def new generation   total 18432K, used 13769K
> [0x00000000b9c00000, 0x00000000bb000000, 0x00000000cdb50000) eden
> space 16384K,  74% used [0x00000000b9c00000, 0x00000000ba7f1588, 
> 0x00000000bac00000) from space 2048K,  75% used
> [0x00000000bae00000, 0x00000000baf81118, 0x00000000bb000000) to
> space 2048K,   0% used [0x00000000bac00000, 0x00000000bac00000, 
> 0x00000000bae00000) tenured generation   total 40896K, used 2039K
> [0x00000000cdb50000, 0x00000000d0340000, 0x00000000f5a00000) the
> space 40896K,   4% used [0x00000000cdb50000, 0x00000000cdd4df20, 
> 0x00000000cdd4e000, 0x00000000d0340000) compacting perm gen  total
> 21248K, used 12267K [0x00000000f5a00000, 0x00000000f6ec0000,
> 0x0000000100000000) the space 21248K,  57% used
> [0x00000000f5a00000, 0x00000000f65faf88, 0x00000000f65fb000,
> 0x00000000f6ec0000) No shared spaces configured.
> 
> 
> Is the issue with the No shared spaces configured or is it more
> likely the java code being called to make the startup connection?

You haven't really explained "the issue" so I'm sorry, but nobody is
going to be able to help you.

> Any pointers in how to troubleshoot this problem would be greatly 
> appreciated.

Can you tell us what you tried to do, what you expected to happen, and
what actually happened?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUV9c4AAoJEBzwKT+lPKRYt4UP/23oOhu51gBM5KkGIuIKFkZ0
0psKQnDCNL0xbep4W/TYm3npJ/2ICZ7HrtkPVMcsk84zVqobjgUuG7mcytIamfyZ
3+O19kyoEmT2gduZQljDw/acsSgP7tLPDw2UAws2QEam9nYD0RKyBnYmrQ68Ko5z
DbGBCWIJbJJYBQr7uiQJGgH6C6QpCaLU/zE0LXW8Yk2R3pzMZ8j+8VM2FrRVLcZo
KqWK1RJeqlFhXgxddhDnWwCwPhSsYz6jOazr5cy9R5YW3wtYP47VyoLHpLLZro4/
PQQEj9Oi1jqqq2hjsuk+1Z4lcAEiKuhy39KO4L/rJXrq3zYVY93c1fMfCmAcH3tA
Xo2jalJqktQIyobkt5M7C8eLorMWJx9u+oY+o6ZPGJoUMTgNuEH9YNZ+b76aR0+t
hjxnXbWqNuLlhyOAYG77znCnxa+zEDXq5BWYAi24uEhIkenDypP8+NwKRpyBT9O4
qlgm+euyNzwKLBXiZoP+jqBs98OPlCPIZ6lpl+zOkxqIzQm+4kUoCc81jPynxHbR
XvVdQwQgdQdycryDjqP4mofcHP3BkgXx6gCy0e1QsbzZs7M5CCrA5auz2luJ1eU/
cMn7f0SfM1FRx8qNShHul7jt60z70xbqNODNtvSF6WbELdRZRSjjG7WiE8oMBa84
3874Smroc8KLlolldwAb
=J3yx
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message