Object Service Extension virtual machine filling up log files
search cancel

Object Service Extension virtual machine filling up log files

book

Article ID: 374386

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • OSE VMs are in a hung state
  • OSE VM log partition /opt/vmware/voss/log is full. 
  • CPU utilization is at 100%.

Environment

VMware Cloud Director Object Storage Extension

Cause

Archived log files and log files with DEBUG mode enabled can cause the disk space to fill up quickly.

Resolution

  • Disable DEBUG mode with the following command: 

ose args set --k logging.level.com.vmware.voss -v INFO 

ose args del --k logging.level.org.apache.http.wire

ose service restart

Note: To  re-enable: ose args set --k logging.level.org.apache.http.wire -v debug

  • Disable access log.

    ose args set --k server.undertow.accesslog.enabled --v false

    ose service restart

  • Configure automatic file cleanup using the parameters below as per the documentation . Changes to application properties require reboot of OSE service. 
    • oss.logback.rolling-policy.totalSizeCap
    • oss.logback.rolling-policy.maxFileSize
    • oss.logback.rolling-policy.maxHistory

Use ose args set command as per the documentation to configure these parameters.