Re: Running Tomcat on multiple processors on Windows 2003

2005-04-19 Thread Chris Hyzer
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

RE: Running Tomcat on multiple processors on Windows 2003

2005-04-19 Thread Chris Hyzer
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

Re: Running Tomcat on multiple processors on Windows 2003

2005-04-18 Thread Chris Hyzer
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,

Re: Releasing memory on undeploy

2005-03-18 Thread Chris Hyzer
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

Re: Servlet Streaming file to client: Can't override file name

2005-03-13 Thread Chris Hyzer
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

Re: Can we know when the Response is finished? or other solution.

2005-03-03 Thread Chris Hyzer
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.

Programmatically call the error page for a 500 error

2005-02-18 Thread Chris Hyzer
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