Oracle Solaris System Administration (MOSC)

MOSC Banner

sort: MISSING NEWLINE & sort: insufficient memory

edited Mar 31, 2014 9:08AM in Oracle Solaris System Administration (MOSC) 12 commentsAnswered ✓

Job that runs every Friday had failed the last two weeks and can reproduce from command line but cannot produce with same file on another server.

> du -sh 20140315_iwfs_b_group_attributes.dat

482M 20140315_iwfs_b_group_attributes.dat

> sort -u 20140315_iwfs_b_group_attributes.dat > sorted/20140315_iwfs_b_group_attributes.dat

sort: missing NEWLINE added at end of input file 20140315_iwfs_b_group_attributes.dat

sort: insufficient memory; use -S option to increase allocation

Even after explicitly setting -S option in sort command, it failed due to insufficient memory.

Notes:

server has enough physical memory and swap space to run the sort command, but still it failed 2 weeks. This job has been failing since the server was rebooted on 03/04

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

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

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center