Huh? The Sun 1.3, 1.4, and 5.0 JVMs use all 32 of
the CPUs on our
systems quite nicely. What may be going on is that
some administrator
has set Windows' CPU affinity to restrict all
threads of a given
process to a single CPU.
- Chuck
We have a recent and up2date Linux Redhat
Chris,
When running top you can toggle displaying
individual threads by hitting
H.
Also, you can see threads using ps with the -m
switch.
Jim T.
OK thanks, that is useful for visibility into threads
vs processes. But I would think that if the CPU usage
in top is 50% when one tomcat
1.What can he do to enable Tomcat to make use of
all 4 processors?
I dont know of an answer to that one. I think it is
impossible unless you have a JVM that will use 4
procs... Sun doesnt seem to do this.
2.If a single instance of Tomcat can't make use of
multiple
processors,
currently looking
into memory-leak issues with j2ee/servlet-engine
We have about a dozen apps on 2 tomcats that have
800MB each in linux (5.0.25), and they are not huge
apps, but after a few manager reloads the tomcat is
out of memory. Is this related? You said undeploy,
but maybe reloading
Servlet Streaming file to client: Can't override
file name
123049 by: Mark Leone
Its an HTTP header you are looking for, try this:
response.setHeader(Content-Disposition, attachment;
filename= + theFile.getName());
Chris
If you use custom tags, then when the custom tag that
generates /html is done, then you are done. We use
this approach, and also return SKIP_PAGE from the tag
so you know it is done. Maybe there is an easier way
though. :)
Can we know when the Response is finished? or other
solution.
Hello,
This works in Tomcat 4, but not 5 (5.0.25)
response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
RequestDispatcher dispatcher =
request.getRequestDispatcher(somePage);
dispatcher.forward(request, response);
I would like to set a 500 error code, and call
different pages in