Re: tomcat 6 and setenv.sh?

2007-08-03 Thread Robert Casties
Kristian Rink wrote: > > Folks, > > after switching our production environment to tomcat 6.0.13, most of > the things work fine again by now. One thing, however, is still giving > me headaches: By now, I used to have something like > > export CATALINA_OPTS="-server -Xmx512m ... " > > in CATALIN

Throttling load using semaphore in a servlet?

2007-07-28 Thread Robert Casties
Is it OK to use a semaphore in a servlet? Are there any special problems that arise? My problem is that I have an image processing servlet that uses a lot of CPU depending on certain circumstances. Therefore I want to limit the number of concurrently running servlets running heavy operations while