• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

URGENT : Thread Problems

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How many threads can be started simaltaneously in a servlet engine .for eg I am using Tomcat3.2.1 My servlet hangs if i start more than 75 threads.
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That is highly dependent on your JVM; see the Volano report for some comparative figures, esp. the network scalability figure (which is largely governed by threading behaviour). A highly tuned server JVM like JRockit might help you.
Are you implying that you have one servlet which starts up 75 threads? Or are you hitting the servlet engine with 75 simultaneous requests? They are two different things. In the former case, I would wonder whether this is really necessary and/or productive. In the latter case, I would ask what exactly you are doing in your servlet.
- Peter
 
j krishnan
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My servlet ping to the devices for a particular poling interval and calculates threshold failures etc etc , for this i am staring a timer Object for pinging and stoping it.

Originally posted by Peter den Haan:
That is highly dependent on your JVM; see the Volano report for some comparative figures, esp. the network scalability figure (which is largely governed by threading behaviour). A highly tuned server JVM like JRockit might help you.
Are you implying that you have one servlet which starts up 75 threads? Or are you hitting the servlet engine with 75 simultaneous requests? They are two different things. In the former case, I would wonder whether this is really necessary and/or productive. In the latter case, I would ask what exactly you are doing in your servlet.
- Peter


 
Peter den Haan
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds like a job for a Timer and one or more TimerTasks, perhaps at the core of a scheduler servlet or application-scoped scheduler object. Where do the other 74 threads come in?
- Peter
 
I guess I've been abducted by space aliens. So unprofessional. They tried to probe me with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic