Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6376539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:45:31+00:00 2026-05-25T01:45:31+00:00

I have a Confluence 3.5 site set up on a Windows 2008 R2 box.

  • 0

I have a Confluence 3.5 site set up on a Windows 2008 R2 box. It uses Tomcat 6 and I’ve configured it to do access logging of a particular space using log4j. The logging works fine, but now I want to write a Windows service in .NET to do some specific parsing of the log data on a daily basis. In my service I read the entire file using File.ReadAllText (the file itself is not large, nor is it XML). But when it tries to do that, I get an IO exception that says the file is in use by another process.

I’ve tried various things to get around this, but so far I can’t seem to read the log file from code. I can log into the server and make a copy of it using Windows Explorer. But if I try to do that in the service, I get the same error. I’ve looked around the web for ways of reading the log file, or maybe changing the logger to not have the file open exclusively, but I haven’t found anything. I’m not sure if it’s Confluence, Tomcat, or log4j that opens the file in the first place.

Any suggestions on how to read from the access log using a custom program?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T01:45:32+00:00Added an answer on May 25, 2026 at 1:45 am

    The logger is probably holding a lock on the file for performance reasons (e.g. so it doesn’t have to constantly open the file). To confirm this, log into the server and check for any open handles on the file using either Unlocker and Process Explorer.

    You should be able to configure the logger so that it does not hold the lock. I haven’t used log4j before however check the manual/website – there will be something you can do.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using this table-plus macro with Confluence : http://confluence.atlassian.com/display/CONFEXT/Table-plus+macro Can I have cell
Hello I have a confluence installation running on tomcat. In front of tomcat I
I am using confluence 3.0.1 and have the problem that some images are not
I have written a confluence macro. It uses velocity to generate html table. How
I have a theme using Adaptavist Theme Builder for Confluence, and I've encountered an
I have a 3rd website (Confluence) which references images which are secured by a
i see they have a version of resharper for vs 2010 http://www.jetbrains.net/confluence/display/ReSharper/ReSharper+5.0+Nightly+Builds can i
I have the following in Confluence: {panel} Hello World 1 {panel} {sql-query:datasource=DS|output=wiki|table=false|macros=true} select '\{panel\}\\'
I've installed Confluence as a wiki on my local network. The network doesn't have
I would like to display top 10 contributors to a space in Confluence in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.