You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Allistair Crossley <Al...@QAS.com> on 2004/05/20 17:46:57 UTC

RE: log4j:ERROR Failed to rename [../logs/performance.log] to [../logs/performance.log.2004-05-04].

Brilliant. However, for this particular issue it does nothing but tell me the Java process owns it which I suspected ;) 

It would appear that log files appear more than once for the 1 java process though which could be the problem.

:(

----------------------------------------
java.exe pid: 1612 NT AUTHORITY\SYSTEM

  8ac: File          D:\jakarta-tomcat-5.0.19\logs\publishing.log
  8c8: File          D:\jakarta-tomcat-5.0.19\logs\admin.log
  8cc: File          D:\jakarta-tomcat-5.0.19\logs\email.log
  8d0: File          D:\jakarta-tomcat-5.0.19\logs\holidayform.log
  8d4: File          D:\jakarta-tomcat-5.0.19\logs\performance.log
  8d8: File          D:\jakarta-tomcat-5.0.19\logs\content-access.log
  8dc: File          D:\jakarta-tomcat-5.0.19\logs\rar.log
  8e0: File          D:\jakarta-tomcat-5.0.19\logs\application.log
  8e4: File          D:\jakarta-tomcat-5.0.19\logs\authentication.log
  8e8: File          D:\jakarta-tomcat-5.0.19\logs\search.log
  8ec: File          D:\jakarta-tomcat-5.0.19\logs\search-access.log
  8f0: File          D:\jakarta-tomcat-5.0.19\logs\action.log
  968: File          D:\jakarta-tomcat-5.0.19\logs\publishing.log
  96c: File          D:\jakarta-tomcat-5.0.19\logs\admin.log
  970: File          D:\jakarta-tomcat-5.0.19\logs\email.log
  974: File          D:\jakarta-tomcat-5.0.19\logs\holidayform.log
  978: File          D:\jakarta-tomcat-5.0.19\logs\performance.log
  97c: File          D:\jakarta-tomcat-5.0.19\logs\content-access.log
  980: File          D:\jakarta-tomcat-5.0.19\logs\rar.log
  984: File          D:\jakarta-tomcat-5.0.19\logs\application.log
  988: File          D:\jakarta-tomcat-5.0.19\logs\authentication.log
  98c: File          D:\jakarta-tomcat-5.0.19\logs\search.log
  990: File          D:\jakarta-tomcat-5.0.19\logs\search-access.log
  994: File          D:\jakarta-tomcat-5.0.19\logs\action.log
  e48: File          D:\jakarta-tomcat-5.0.19\logs\localhost_log.2004-05-20.txt
  ea8: File          D:\jakarta-tomcat-5.0.19\webapps\iq\WEB-INF\lib\mail.jar
  ed8: File          D:\jakarta-tomcat-5.0.19\logs\authentication.log
 1024: File          D:\jakarta-tomcat-5.0.19\logs\email.log
 1034: File          D:\jakarta-tomcat-5.0.19\logs\application.log
 103c: File          D:\jakarta-tomcat-5.0.19\logs\search.log
 1050: File          D:\jakarta-tomcat-5.0.19\logs\holidayform.log
 105c: File          D:\jakarta-tomcat-5.0.19\logs\action.log
 1060: File          D:\jakarta-tomcat-5.0.19\logs\performance.log
 106c: File          D:\jakarta-tomcat-5.0.19\logs\publishing.log
 1074: File          D:\jakarta-tomcat-5.0.19\logs\content-access.log
 1088: File          D:\jakarta-tomcat-5.0.19\logs\search-access.log
 108c: File          D:\jakarta-tomcat-5.0.19\logs\admin.log
 1090: File          D:\jakarta-tomcat-5.0.19\logs\rar.log

-----Original Message-----
From: Ferenc Toth [mailto:ftoth@eu.infobal.com]
Sent: 20 May 2004 16:27
To: Log4J Users List
Subject: RE: log4j:ERROR Failed to rename [../logs/performance.log] to
[../logs/performance.log.2004-05-04].


> From: Allistair Crossley [mailto:Allistair.Crossley@QAS.com] 
> 
> Hello,
> 
> Yes we are Windows 2000 (not my fault ;), I would rather 
> Linux) however be impressed that I have convinced the 
> internet ASP team to switch to J2EE.
> 
> I don't suppose you know of how to look for what process 
> could be holding the files? This is nice and easy in UNIX of 
> course ;) I have tried restarts of Tomcat but the locks are 
> not released, nor can I even think why locks would be on 
> these files .. it happens on all 9 logs.

http://www.sysinternals.com/ntw2k/freeware/handle.shtml

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org



<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: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


RE: log4j:ERROR Failed to rename [../logs/performance.log] to [../logs/performance.log.2004-05-04].

Posted by Ceki Gülcü <ce...@qos.ch>.
When your web-application is recycled or shutdown make sure to call the 
o.a.log4j.LogManager.shutdown method.

At 05:46 PM 5/20/2004, you wrote:
>Brilliant. However, for this particular issue it does nothing but tell me 
>the Java process owns it which I suspected ;)
>
>It would appear that log files appear more than once for the 1 java 
>process though which could be the problem.
>
>:(
>
>----------------------------------------
>java.exe pid: 1612 NT AUTHORITY\SYSTEM
>
>   8ac: File          D:\jakarta-tomcat-5.0.19\logs\publishing.log
>   8c8: File          D:\jakarta-tomcat-5.0.19\logs\admin.log
>   8cc: File          D:\jakarta-tomcat-5.0.19\logs\email.log
>   8d0: File          D:\jakarta-tomcat-5.0.19\logs\holidayform.log
>   8d4: File          D:\jakarta-tomcat-5.0.19\logs\performance.log
>   8d8: File          D:\jakarta-tomcat-5.0.19\logs\content-access.log
>   8dc: File          D:\jakarta-tomcat-5.0.19\logs\rar.log
>   8e0: File          D:\jakarta-tomcat-5.0.19\logs\application.log
>   8e4: File          D:\jakarta-tomcat-5.0.19\logs\authentication.log
>   8e8: File          D:\jakarta-tomcat-5.0.19\logs\search.log
>   8ec: File          D:\jakarta-tomcat-5.0.19\logs\search-access.log
>   8f0: File          D:\jakarta-tomcat-5.0.19\logs\action.log
>   968: File          D:\jakarta-tomcat-5.0.19\logs\publishing.log
>   96c: File          D:\jakarta-tomcat-5.0.19\logs\admin.log
>   970: File          D:\jakarta-tomcat-5.0.19\logs\email.log
>   974: File          D:\jakarta-tomcat-5.0.19\logs\holidayform.log
>   978: File          D:\jakarta-tomcat-5.0.19\logs\performance.log
>   97c: File          D:\jakarta-tomcat-5.0.19\logs\content-access.log
>   980: File          D:\jakarta-tomcat-5.0.19\logs\rar.log
>   984: File          D:\jakarta-tomcat-5.0.19\logs\application.log
>   988: File          D:\jakarta-tomcat-5.0.19\logs\authentication.log
>   98c: File          D:\jakarta-tomcat-5.0.19\logs\search.log
>   990: File          D:\jakarta-tomcat-5.0.19\logs\search-access.log
>   994: File          D:\jakarta-tomcat-5.0.19\logs\action.log
>   e48: 
> File          D:\jakarta-tomcat-5.0.19\logs\localhost_log.2004-05-20.txt
>   ea8: File          D:\jakarta-tomcat-5.0.19\webapps\iq\WEB-INF\lib\mail.jar
>   ed8: File          D:\jakarta-tomcat-5.0.19\logs\authentication.log
>  1024: File          D:\jakarta-tomcat-5.0.19\logs\email.log
>  1034: File          D:\jakarta-tomcat-5.0.19\logs\application.log
>  103c: File          D:\jakarta-tomcat-5.0.19\logs\search.log
>  1050: File          D:\jakarta-tomcat-5.0.19\logs\holidayform.log
>  105c: File          D:\jakarta-tomcat-5.0.19\logs\action.log
>  1060: File          D:\jakarta-tomcat-5.0.19\logs\performance.log
>  106c: File          D:\jakarta-tomcat-5.0.19\logs\publishing.log
>  1074: File          D:\jakarta-tomcat-5.0.19\logs\content-access.log
>  1088: File          D:\jakarta-tomcat-5.0.19\logs\search-access.log
>  108c: File          D:\jakarta-tomcat-5.0.19\logs\admin.log
>  1090: File          D:\jakarta-tomcat-5.0.19\logs\rar.log
>
>-----Original Message-----
>From: Ferenc Toth [mailto:ftoth@eu.infobal.com]
>Sent: 20 May 2004 16:27
>To: Log4J Users List
>Subject: RE: log4j:ERROR Failed to rename [../logs/performance.log] to
>[../logs/performance.log.2004-05-04].
>
>
> > From: Allistair Crossley [mailto:Allistair.Crossley@QAS.com]
> >
> > Hello,
> >
> > Yes we are Windows 2000 (not my fault ;), I would rather
> > Linux) however be impressed that I have convinced the
> > internet ASP team to switch to J2EE.
> >
> > I don't suppose you know of how to look for what process
> > could be holding the files? This is nice and easy in UNIX of
> > course ;) I have tried restarts of Tomcat but the locks are
> > not released, nor can I even think why locks would be on
> > these files .. it happens on all 9 logs.
>
>http://www.sysinternals.com/ntw2k/freeware/handle.shtml
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
>
><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: log4j-user-unsubscribe@logging.apache.org
>For additional commands, e-mail: log4j-user-help@logging.apache.org

-- 
Ceki Gülcü

      For log4j documentation consider "The complete log4j manual"
      ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp  



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org