Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

listing of jsp programs running in tomcat

 
Muthukumar Ramanujam
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is there any way to list and then abort the jsp programs running in tomcat. This is required to identiy the programs which are running for longer duration and needs to be aborted instead of restarting the tomcat server.

Thanks

R Muthukumar
 
Tim Moores
Bartender
Posts: 2687
36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no such thing as a "JSP program" - what is it you want to terminate? Both servlets and JSPs should run for short periods of time; maybe you're asking about background tasks?
 
Muthukumar Ramanujam
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for the response, actually from jsp i am calling a java method which does some calculations and return the result to the jsp and displayed. Some times due a bug in the java code, the java program runs into a indefinite loop. I want to identify the prorams which is still running in the server.
 
Tim Moores
Bartender
Posts: 2687
36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wouldn't it be easier to debug the code before you put it in a web app? Or to rewrite it so that it checks how long it runs, and then terminates whenever a certain fixed time has elapsed?
 
Muthukumar Ramanujam
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you are right, the programs needs to be tested thoroughly, but some time it happens we end up loading a programs with bugs and are identified later. So i wanted to know is there any way to indentify. I will try to incorporate your suggestion of checking the time and terminates it if it runs beyond certain duration.

Thanks
 
J. Kevin Robbins
Bartender
Posts: 1728
19
Chrome Firefox Browser jQuery Linux MySQL Database Netbeans IDE
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this app. You can see all the threads and sessions, and restart individual apps or servlets without restarting tomcat.
 
Muthukumar Ramanujam
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much for giving the wonderful tool, this is what i was looking for.

Thanks once again.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic