This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Threads and Synchronization and the fly likes CPU increases over time when program is idle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "CPU increases over time when program is idle" Watch "CPU increases over time when program is idle" New topic
Author

CPU increases over time when program is idle

Mike Gerrad
Greenhorn

Joined: Mar 10, 2010
Posts: 1
I have a program (test) running on Application 4.3 and Application 4.2
Test running on App. 4.2 has 19 threads and it's stable based on Jconsole monitoring

attach listner
com.ibm.logging.filehandler:EDMsgHandler
com.ibm.logging.filehandler:EDMsgHandler
com.ibm.logging.filehandler:EDTrcHandler
com.ibm.logging.filehandler:EDTrcHandler
finalizer
JMX server connection timeout 25
main
reference handler
rmi scheduler(0)
rmi tcp accept-0
rmi tcp connection(4)-127.0.0.1
rmi tcp connection(5)-127.0.0.1
rmi tcp connection(6)-127.0.0.1
thread-0
Thread-1
Thread-2
Thread-3
Thread-4

Test running on App. 4.3 has 21 threads and it's not stable based on Jconsole monitoring (fluctuates 19 - 21)

attach listner
com.ibm.logging.filehandle
com.ibm.logging.filehandle
com.ibm.logging.filehandle
com.ibm.logging.filehandle
finalizer
jmx server connection time
main
reference handler
rmi scheduler(0)
rmi tcp accept-0
rmi tcp connection(22)-12
rmi tcp connection(23)-12
rmi tcp connection(24)-12
rmi tcp connection(25)-12
rmi tcp connection(26)-12
thread-0
thread-1
thread-2
thread-3
thread-4

The only extra threads I've noticed in App. 4.3 are the following types
rmi tcp connection type (2 extra)

Problem
CPU resource is being consumed over time in App 4.3 even when program test is idle.

Question
What does this type of thread do and could you give me any pointers on where to look.

Thank You for any input
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18496
    
  40

Mike Gerrad wrote:
Question
What does this type of thread do and could you give me any pointers on where to look.


Those are not thread types, they are merely the name of the threads. And a Java program can name a thread anything that it wants to, so all you can do is speculate on what the threads does by its given name -- meaning it is related to RMI communications.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Alan Mehio
Ranch Hand

Joined: Apr 04, 2005
Posts: 73

rmi tcp connection

CPU resource is being consumed over time in App 4.3 even when program test is idle.


It is difficult to guess what the thread is doing unless we can see the code. My guess is the rmi thread is doing some thing in a periodic way. Do you see the CPU resource goes up and down or what pattern do you see??


Regards,
Alan Mehio
London, UK
 
 
subject: CPU increases over time when program is idle
 
Similar Threads
Activation setup problem
Server boot time issue
RMI Servers
Heap used for a simple program seems too much
To M Spritzler - Client Thread ID change