This is the mail archive of the
mailing list for the Cygwin project.
RE: GREP: Memory Exhausted
I get this error all the time from simple recursive greps on large
source directory trees. E.g.
$ grep -r zap *
Binary file SDE/BUILD_DBG/dist/ship.tar matches
Binary file SDE/BUILD_DBG/ship/lib/servlet-api.jar matches
grep: memory exhausted
$ grep --version
GNU grep 2.5.3
Copyright (C) 1988, 1992-2002, 2004, 2005 Free Software Foundation,
This is free software; see the source for copying conditions. There is
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
The same grep on Linux or Solaris usually works, but I think only
because virtual memory is handled differently.
If you watch memory consumption on windows while grep is running, it
remains flat for about 30 seconds and then starts growing in sizeable
chunks until it fails.
And BTW, there was an earlier version of grep that worked but I have
since lost the version number.
> -----Original Message-----
> From: firstname.lastname@example.org [mailto:email@example.com] On
> Of Christopher Faylor
> Sent: Tuesday, April 14, 2009 8:15 AM
> To: firstname.lastname@example.org
> Subject: Re: GREP: Memory Exhausted
> On Tue, Apr 14, 2009 at 10:45:44AM -0400, Ralph Hempel wrote:
> > Dave Korn wrote:
> >> Shailesh Dadure wrote:
> >>> Hello All,
> >>> I am a support engineer from Microsoft trying to help my Customer
> >>> Samadzadeh. We have been notified by Maziyar that when they
> >>> Query
> >>> on a bigger database using GREP we get the following error
> >> Would you like to use one of your two free phone support
> >> this
> >> request, or will you be paying by credit or debit card for a paid
> >> ticket?
> > Geez Dave. I was going to suggest rebooting the machine to see if
> > changed anything, and then upgrading to Windows 7. But then I
> > that it might be taken the wrong way...
> > And why would anyone query a database using GREP?
> And a followup question: Is it really Cygwin's grep? The error
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Problem reports: http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html