Strange mrf files generated in tomat temp directory

2005-07-29 Thread Holly, Michael
I am using Tomcat 4.1.29 on solaris 9. I have files uploaded to my site and then I write them to the temp dir using File.createTempFile() in anticipation of moving them elsewhere. I have noticed that somthing else is writing very larg files to this directory as well. Some of the files are 3GB.

High load on CPU from upload attempts

2004-09-09 Thread Holly, Michael
I am having a problem with high CPU utilization by my Tomcat (java) process. First some background Sun V880 Solaris 9 java.runtime.name = Java(TM) 2 Runtime Environment, Standard Edition java.vm.version = 1.4.1_06-b01 Tomcat 4.1.27 MySQL 3.23.53 Homegrown object cache (eliminates trips to

RE: High load on CPU from upload attempts

2004-09-09 Thread Holly, Michael
the behavior, you're in a tougher spot obviously. What are you using to handle the upload, commons-fileupload? Yoav Shapira Millennium Research Informatics -Original Message- From: Holly, Michael [mailto:[EMAIL PROTECTED] Sent: Thursday, September 09, 2004 11:07 AM To: [EMAIL PROTECTED] Subject

RE: High load on CPU from upload attempts

2004-09-09 Thread Holly, Michael
is check out the new J2SE 5.0 debugging tools. If you can't reproduce the behavior, you're in a tougher spot obviously. What are you using to handle the upload, commons-fileupload? Yoav Shapira Millennium Research Informatics -Original Message- From: Holly, Michael [mailto:[EMAIL PROTECTED

RE: Connection pool detecting bad connection

2004-07-16 Thread Holly, Michael
Configure your connection pool to use the 'Test On Borrow' feature. This will send a small query out to make user the connection is available before it uses the connection for the larger query. Your query could be like SELECT 'test' from dual if you are on Oracle. Hope this helps Michael

RE: cleaning up a removed webapp

2004-06-30 Thread Holly, Michael
Dave I'm not sure what your in memory db is but here is how I handled a similar problem. My application uses connection pooling. I had problems with my connection pools not being cleaned up. I added a contextListener that keeps track of the pools and then when the context is destroyed it cleans

RE: Connection pooling with two databases

2004-06-29 Thread Holly, Michael
Frans I use dbcp to pool two different databases on different servers. A mysql on localhost and an Oracle on a remote host. I have never had a problem. I define my pools in my webapp.xml so they are specifically restricted to the app that uses them. I would examine your dataSourceName and

RE: TC5 / Solaris CPU usage

2004-06-25 Thread Holly, Michael
Dave You stated that after you start you app CPU goes to 50%. Have you tried bringing up TC without starting your app? Does load go to 50% then? I would try bringing up the server without the app started and see what the load is and then using TC manager start the app and see the effect. Maybe

RE: TC5 / Solaris CPU usage

2004-06-25 Thread Holly, Michael
Looks like my answer was a bit late... ;^) So ditto to what Pete said. That's what I get for not reading all my email first before I answer. Michael -Original Message- From: Holly, Michael [mailto:[EMAIL PROTECTED] Sent: Friday, June 25, 2004 9:00 AM To: Tomcat Users List Subject: RE

RE: MySQL connection denied

2004-06-11 Thread Holly, Michael
Stella I believe you are correct. There are two places that this is usually set. One is in the /j2sdk/jre/lib/security directroy/java.policy. The other location is in /tomcat/conf/catalina.policy Permissions for the JVM/Tomcat to open sockets, read directories, etc. are controlled in these

Caching Service for clustered tomcat

2004-05-20 Thread Holly, Michael
I have written a web app that uses my own object cache, this works great as a singleton, but would like to eventually get where I can cluster my servlet container. I have just heard about jcs and jCache. Does anyone have any other resources for implementing these on a clustered tomcat 4.x? Am