Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I think this forum rocks it has saved my bacon many many times..."

Geography

Where in the world do Tek-Tips members come from?

Creating a new thread from a servlet class

varocho (Programmer)
18 May 12 11:18
Hello, everyone. I'm currently maintaining a Java Web application that allows the user to search across a number of different wikis. There is a requirement to perform a wiki availability check within a servlet (*) every so often, say every 30 minutes, and this check is being done by a class that extends the 'Thread' class. The Web application runs under Tomcat 6, and a co-worker suggested finding out about the following items:

1) Does the spawned thread have a time limit imposed by Tomcat?
2) Does it take up worker thread space from other Tomcat threads?

I'm guessing the answers are 'no' and 'yes', respectively, but if someone could give me definitive answers on these questions, or at least point me in the right direction, I'd greatly appreciate it.

(* This would be the servlet responsible for performing the search, as well as getting the next set of search results to display)
Diancecht (Programmer)
21 May 12 2:43
Hare you have some info about threads in Tomcat, and some hints:

1.- According to J2EE pure specification, an application shouldn't open threads
2.- You can define max idle time for a thread
3.- A thread consume resources so it affects other threads. Of course, each one has its own separate space

Cheers,
Dian

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close