LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-30-2003, 05:59 AM   #1
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
2.1 Gb size limit??


Hi all.

Ive had my apache logs grown to 2.1 Gb size and apache hangs.
Yesterday i had the same problem with gzip. It was creating a file and stopped at 2.1 Gb.

Is this an apache/gzip problem, or is it a kernel problem???
 
Old 08-30-2003, 09:32 AM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
Is /var on it's own partition?? if so, how large is the partition set to??
if not, Why not?? If /var grows too big it will make your OS hang!!
/var should be on it own partition so it won't interfere with /etc, /usr, or the rest of your system!!
 
Old 08-30-2003, 12:16 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,750

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
It could be the kernel if you do not have large file support included. Do quota limits apply to logs?

Check ulimit -f to find out.

Anyway... you should setup the logs to rotate and delete the old stuff.
 
Old 08-30-2003, 12:42 PM   #4
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Original Poster
Rep: Reputation: 30
I am rotating the logs weekly, the problem is that it just recieves a lot of hits
For the kernel i always use a standard rpm. So it stays easy to upgrade.
 
Old 08-30-2003, 12:51 PM   #5
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Original Poster
Rep: Reputation: 30
by the way, /var is on an own partition, but i put all my access_logs in a users home dir so they can view them. Disk space is not the problem here.
 
Old 08-30-2003, 02:40 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,750

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
Here is my swag... the kernel probably has large file support but apache might not be compiled to use it.

So the easist method would be to set the logrotate to limit the file size to less than 2 gb. I don't know the best method but you could probably find something by searching the web.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
limit file size ust Linux - General 2 02-24-2005 07:33 AM
c++: array size limit? bigfatdud Programming 14 01-27-2005 11:19 AM
Size limit for folder gubak Linux - Newbie 3 11-11-2004 09:09 AM
~/ size limit bm1 Slackware 5 09-23-2004 07:10 AM
Size limit? pyropenguin Linux - Networking 1 12-18-2002 12:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration