• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

TimerService in Jboss

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

I have gone thru some of the older posts around this topic and I could not real find what I was looking for. I have been working with JBOSS from quite recent time and I find this J2EE container is really cool and the level of features it offers are extensive and I am having hard time understanding them but anyways I want to still explore and learn these features.

So here is my issue: I have a server in production that runs on jboss and we ran into an issue in it the other day. The application that runs in this container is not developed by me and I am still trying to get my hand on its source code,
We had our jboss go into a hung state and required it to be recycled, but none of us in the current team knew that there was something called timerService being invoked at the time of application start up, so for some reason when we shut the process down this timerService was not getting killed/stopped.
Looks like we use this service to invoke certain scripts that are used to load data, now what was happening was that as we kept bouncing the jboss , timer service started adding up lets say we bounced jboss 4 times then we had 4 timer-services running that were invoking the scripts 4 times there by creating duplicates while trying to load data.

We ended recycling the entire host, which I know was the most weird thing and that kind of fixed the issue - probably it just killed all process running on the host and gave us a clean slate to start.

My question now: is there a way to see/list the number of timerServices running in a particular java instance, using something like twiddle or some command at CLI ?
and can we grep on the process id of the timerService in any way ?

I am still exploring the timerService in jboss and if my question seems naive or foolish, please pardon me.

Looking forward to here from some ranchers who can help me understand this in a simple way.

Thanks,

Alex

 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which exact version of JBoss is this? Also what kind of timerservice is this? The reason I ask is because there are various ways including 3rd party libraries which allows invoking/creating timerservices/timed tasks. Do you have the relevant code you can post where the timerservice handling is done?
 
alex russo
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply, Jaikiran
From the logs i am guessing its the EJB timerService, its JBOSS 4.0. I still have not gained access to the source code. Will post it as soon as i get that.
in mean time i am trying to see if there is any way to see how the list of timeServices running in a single instance of java
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

alex russo wrote:
in mean time i am trying to see if there is any way to see how the list of timeServices running in a single instance of java



That will depend on the type of the timerservice. Certain types like the JBoss specific one have MBeans which you can see in the jmx-console. I haven't checked what kind of information those MBeans expose though.
 
I'd appreciate it if you pronounced my name correctly. Pinhead, with a silent "H". Petite ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic