On Dec 10, 2008, at 2:19 PM, Vinny wrote:
Running Resin 3.1.6 on centos linux 5, 2.0ghz proc , 2G ram.
I have a box that is running a bunch of virtual hosts configured in
resin and also connects to Apache 2.2.3 via mod_caucho.
I am getting these in the logs and I'm wondering how I can read this
in order to figure out why my cpu load is being pegged so high
Can you do a 'ps' or 'top' to make sure that Resin is the overloading
process? Since that thread dump doesn't show any active threads, if
the Resin JVM has a high CPU, then something odd is happening.
With the exception of the CMS thread, those are all idle Resin
threads. So the load due to Resin should be zero based on that thread
dump.
-- Scott
Thanks in advance:
== /usr/local/resin/log/jvm-default.log ==
[21:36:00.000] StatService[] cpu-load=11.57
[21:36:00.001] StatService[] dumping threads due to cpu load=11.57
[21:36:00.003] Thread Dump:
[21:36:00.003]
[21:36:00.003] Signal Dispatcher id=5 RUNNABLE
[21:36:00.003]
[21:36:00.003] Surrogate Locker Thread (CMS) id=4 RUNNABLE
[21:36:00.003]
[21:36:00.003] resin-pro-statistics id=27 RUNNABLE
[21:36:00.003] at sun.management.ThreadImpl.getThreadInfo0
(ThreadImpl.java) (native)
[21:36:00.003] at sun.management.ThreadImpl.getThreadInfo
(ThreadImpl.java:147)
[21:36:00.003] at
com.caucho.server.admin.ThreadDump.threadDumpImpl (ThreadDump.java:46)
[21:36:00.003] at com.caucho.server.admin.ThreadDump.dumpThreads
(ThreadDump.java:38)
[21:36:00.003] at com.caucho.server.admin.StatService.run
(StatService.java:135)
[21:36:00.003] at java.lang.Thread.run (Thread.java:619)
[21:36:00.003]
[21:36:00.003] RMI TCP Accept-0 id=10 RUNNABLE (in native)
[21:36:00.003] at java.net.PlainSocketImpl.socketAccept
(PlainSocketImpl.java) (native)
[21:36:00.003] at java.net.PlainSocketImpl.accept
(PlainSocketImpl.java:384)
[21:36:00.003] at java.net.ServerSocket.implAccept
(ServerSocket.java:453)
[21:36:00.003] at java.net.ServerSocket.accept (ServerSocket.java:
421)
[21:36:00.003] at sun.rmi.transport.tcp.TCPTransport
$AcceptLoop.executeAcceptLoop (TCPTransport.java:369)
[21:36:00.003] at sun.rmi.transport.tcp.TCPTransport
$AcceptLoop.run (TCPTransport.java:341)
[21:36:00.003] at java.lang.Thread.run (Thread.java:619)
[21:36:00.003]
[21:36:00.003] hmux-127.0.0.1:6802-105 id=1859 RUNNABLE (in native)
[21:36:00.003] at com.caucho.vfs.JniSocketImpl.readNative
(JniSocketImpl.java) (native)
[21:36:00.003] at com.caucho.vfs.JniSocketImpl.read
(JniSocketImpl.java:279)
[21:36:00.003] at com.caucho.vfs.JniStream.readTimeout
(JniStream.java:87)
[21:36:00.003] at com.caucho.vfs.ReadStream.fillWithTimeout
(ReadStream.java:982)
[21:36:00.003] at
com.caucho.server.port.TcpConnection.waitForKeepalive
(TcpConnection.java:208)
[21:36:00.003] at com.caucho.server.port.TcpConnection.run
(TcpConnection.java:691)
[21:36:00.003] at com.caucho.util.ThreadPool$Item.runTasks
(ThreadPool.java:721)
[21:36:00.003] at com.caucho.util.ThreadPool$Item.run
(ThreadPool.java:643)
[21:36:00.003] at java.lang.Thread.run (Thread.java:619)
[21:36:00.003]
[21:36:00.003] hmux-127.0.0.1:6802-107 id=1881 RUNNABLE (in native)
[21:36:00.003] at com.caucho.vfs.JniServerSocketImpl.nativeAccept
(JniServerSocketImpl.java) (native)
[21:36:00.003] at com.caucho.vfs.JniServerSocketImpl.accept
(JniServerSocketImpl.java:199)
[21:36:00.003] at com.caucho.server.port.Port.accept (Port.java:
1176)
[21:36:00.003] at com.caucho.server.port.TcpConnection.run
(TcpConnection.java:655)
[21:36:00.003] at com.caucho.util.ThreadPool$Item.runTasks
(ThreadPool.java:721)
[21:36:00.003] at com.caucho.util.ThreadPool$Item.run
(ThreadPool.java:643)
[21:36:00.003] at java.lang.Thread.run (Thread.java:619)
[21:36:00.003]
[21:36:00.003] hmux-127.0.0.1:6802-108 id=1871 RUNNABLE (in native)
[21:36:00.003] at com.caucho.vfs.JniServerSocketImpl.nativeAccept
(JniServerSocketImpl.java) (native)
[21:36:00.003] at com.caucho.vfs.JniServerSocketImpl.accept
(JniServerSocketImpl.java:199)
[21:36:00.003] at com.caucho.server.port.Port.accept (Port.java:
1176)
[21:36:00.003] at com.caucho.server.port.TcpConnection.run
(TcpConnection.java:655)
[21:36:00.003] at com.caucho.util.ThreadPool$Item.runTasks
(ThreadPool.java:721)
[21:36:00.003] at com.caucho.util.ThreadPool$Item.run
(ThreadPool.java:643)
[21:36:00.003] at java.lang.Thread.run (Thread.java:619)
[21:36:00.003]
[21:36:00.003] hmux-127.0.0.1:6802-57 id=1897 RUNNABLE (in native)
[21:36:00.003] at com.caucho.vfs.JniServerSocketImpl.nativeAccept
(JniServerSocketImpl.java) (native)
[21:36:00.003] at com.caucho.vfs.JniServerSocketImpl.accept
(JniServerSocketImpl.java:199)
[21:36:00.003] at com.caucho.server.port.Port.accept (Port.java:
1176)
[21:36:00.003] at com.caucho.server.port.TcpConnection.run