Grep Causing High Memory Consumption When Ran Against Large Binary Files

(Doc ID 2213749.1)

Last updated on DECEMBER 16, 2016

Applies to:

Linux OS - Version Oracle Linux 6.0 and later
Linux x86-64

Symptoms

High memory consumption while running grep against large binary files like /var/log/lastlog on a Oracle Linux 6 server that resulted in the application/database becoming un-responsive. While in Oracle Linux 5 it will give message "grep: line too long" instead of consuming memory. But this is expected behavior of grep in OL6 and OL5 respectively.

OL6:

-----

Changes

 No changes

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms