Diskspace utilization is high in CTS server

Tagged: ,

This topic has 7 replies, 3 voices, and was last updated 5 years, 5 months ago by priya.c.

  • Author
    Posts
  • #17203
     priya.c
    Participant

    Hi All,

    We have CTS server installed and the diskspace utilization of the file server.out seems to be very high and it has exceeded the threshold.

    How to cleanup the file?

    will CTS service restart help out?

    Thanks
    Priya

    #17205
     Gentjan Kocaqi
    Participant

    Hi Priya,

    You better start looking of the reason of why server.out is so high. Just to make sure to prevent future situations like this. One of the reasons should be that the debug logging is enabled. OpenDJ directory server can generate a high volume of debug output.

    Regarding your question, yes, you can stop CTS, remove the server.out file and start CTS will help. It will recreate a brand new server.out file. In alternative you can just empty the contents of the server.out without restarting the CTS server.

    Hope this helps.

    Gentjan

    #17207
     priya.c
    Participant

    Hi Gentjan,

    Thanks for your reply. Will try it out and get back to you.

    #17208
     priya.c
    Participant

    Hi Gentjan,

    Below are the log snippet from server.out

    Error occurred while flushing writer buffer for logger cn=File-Based Access Logger,cn=Loggers,cn=config: Read-only file system (FileOutputStream.java:-2 FileOutputStream.java:326 MeteredStream.java:92 StreamEncoder.java:221 StreamEncoder.java:282 StreamEncoder.java:125 OutputStreamWriter.java:207 BufferedWriter.java:129 BufferedWriter.java:253 MultifileTextWriter.java:620 AsynchronousTextWriter.java:189 AsynchronousTextWriter.java:132)
    Error occurred while flushing writer buffer for logger cn=File-Based Access Logger,cn=Loggers,cn=config: Read-only file system (FileOutputStream.java:-2 FileOutputStream.java:326 MeteredStream.java:92 StreamEncoder.java:221 StreamEncoder.java:282 StreamEncoder.java:125 OutputStreamWriter.java:207 BufferedWriter.java:129 BufferedWriter.java:253 MultifileTextWriter.java:620 AsynchronousTextWriter.java:189 AsynchronousTextWriter.java:132)
    Error occurred while flushing writer buffer for logger cn=File-Based Access Logger,cn=Loggers,cn=config: Read-only file system (FileOutputStream.java:-2 FileOutputStream.java:326 MeteredStream.java:92 StreamEncoder.java:221 StreamEncoder.java:282 StreamEncoder.java:125 OutputStreamWriter.java:207 BufferedWriter.java:129 BufferedWriter.java:253 MultifileTextWriter.java:620 AsynchronousTextWriter.java:189 AsynchronousTextWriter.java:132)
    Error occurred while flushing writer buffer for logger cn=File-Based Access Logger,cn=Loggers,cn=config: Read-only file system (FileOutputStream.java:-2 FileOutputStream.java:326 MeteredStream.java:92 StreamEncoder.java:221 StreamEncoder.java:282 StreamEncoder.java:125 OutputStreamWriter.java:207 BufferedWriter.java:129 BufferedWriter.java:253 MultifileTextWriter.java:620 AsynchronousTextWriter.java:189 AsynchronousTextWriter.java:132)

    What’s the issue here?

    #17209
     Chris Ridd
    Participant

    It looks like your filesystem is read-only, which may be due to it being full.

    If you are running as a CTS server then you will almost certainly need to tune OpenDJ to account for the very high number of writes performed by OpenAM. Reducing the size of the changelog by changing the replication purge delay is a simple option, but you will need to thoroughly read the OpenAM tuning documentation.

    #17211
     priya.c
    Participant

    Hi Chris,

    Thanks. Can you please let me know if any documentation link available.

    Regards
    Priya

    #17219
     Chris Ridd
    Participant

    Start with the link right at the top of this page called “Docs & Learning”.

    #17242
     priya.c
    Participant

    Hi Chris,

    One of the log folder mounted filesystem was in read-only mode which was causing the issue. We changed that to read-write which has resolved the issue.

    Thanks a lot for your valuable support.

    Regards
    Priya C

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

©2022 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?