> Shutting down/restarting Tomcat was not what I meant. Are you hot > re-deploying your web-application on the production server? Are you > performing any operations on one machine but not the other?
We are not yet hot-redeploying although we will be doing shortly. At the moment we are able to build by stopping the production server in question at out-of-hours times. > In the case of hot-redeploy, it is possible for the old version of > your application to remain in memory, so that it will continue to hold > a lock on the log file. I understand but we are not hot-deploying the production server. The production server also has dynamic class-reloading OFF. We do however have class-reloading on the test box ON and this still does not experience this renaming issue. > You can avoid this by calling LogManager.shutdown() when your > application is closed/recycled. See javax.servlet.ServletContextListener for more > information on > web-appplication lifecycle. Thanks, I will look into this part. > If I understand correctly, the problem occurs on the first roll over? You > can > accelerate the pace of rollover to be as fast as 1 minute. Use > DatePattern=".yyyy-MM-dd-HH-mm" It seems to be occurring as soon as a rename is required. For example, last night the production server webapp was rebuilt and restarted. The initial log files were created no problem, e.g performance.log, however this morning I came in and found no performance-2004_05_20.log exists. Instead performance.log only exists and the logging inside it are from 2004/05/21, so all the 20th logging has been lost. The stdout log contains the renaming error. So I suppose yes the error is occurring at the first attempt to rename but perhaps at all subsequent renames. I would need to add the DatePattern to see. > You are saying that it is well a lock issue. Correct? Not exactly. I am saying that I used the handle tool to list all handles that the tomcat.exe process has on files. The log files appeared as entries in this twice. I believe that this is because Log4J tried to rename the file, failed, but still created a new reference to the file. It would appear this way anyway. > What is "IS"? Sorry, Information Systems / Information Tech / Sys Admin. I meant I think it is application level rather than anything to do with Windows or security on the file system. I will add a DatePattern at an interval of 15 mins or so and see what that does and come back to the list.. Thanks for taking the time to discuss this, I appreciate it a lot. ADC. <FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> ------------------------------------------------------- QAS Ltd. Developers of QuickAddress Software <a href="http://www.qas.com">www.qas.com</a> Registered in England: No 2582055 Registered in Australia: No 082 851 474 ------------------------------------------------------- </FONT> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
