Largefile log problems on Solaris 2.6

From: Bryan Guest, BMI Internet (bryan.guest@bmts.com)
Date: Wed May 14 2003 - 12:07:38 EDT


Hello SunManagers:

This might be slightly off topic of the list, and if so my apologies in
advance. I am stumped or I wouldn't ask here.

The short version of my question is:

Does anyone have experience making apache 1.3.x work with log files over 2.0gb
in Solaris 2.6?

The longer version is:

I am running apache-1.3.27 on an Ultra Entprise 2, with Solaris 2.6. This is
a legacy shared hosting machine.

I have one website that generates enough traffic to cause it's access log to
exceed 2.0Gb in a month. Logs are rotated monthly and are processed intact
for statistics purposes.

When the logfile exceeds 2.0Gb, Apache runs into all sorts of problems and
either dies or can't be restarted. I know the best solution would be to move
this site to a machine running 64bit solaris to avoid the problem altogether,
but this is not an option in the short term.

So in the mean time I have been trying to compile apache with gcc-2.95.3
following the direction in this document:

http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=ffaqs%2F01364&zone_32=solaris
%20maximum%20file%20size

I configure like this:

CFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" ./configure
--prefix=/local/httpd --enable-module=most --enable-shared=max

And it compiles correctly. However when I start apache it dies with this
error:

[Wed May 14 10:26:49 2003] [notice] Apache/1.3.27 (Unix) configured --
resuming normal operations
[Wed May 14 10:26:49 2003] [notice] Accept mutex: fcntl (Default: fcntl)
[Wed May 14 10:26:49 2003] [notice] child pid 10889 exit signal Segmentation
Fault (11)
[Wed May 14 10:26:49 2003] [notice] child pid 10888 exit signal Segmentation
Fault (11)
[Wed May 14 10:26:49 2003] [notice] child pid 10887 exit signal Segmentation
Fault (11)

The initial parent httpd process starts, but all subsequent children die.

So, has anyone ever black magic'ed Apache 1.3 around the 2.0Gb filesize limit
on Solaris 2.6?

My best regards to all the professionals on this great list, and sincere
thanks in advance for any and all responses, including complaints.

Bryan Guest
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:24 EDT