You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oodt.apache.org by "Stough, Timothy M (388F)" <ti...@jpl.nasa.gov> on 2013/02/13 00:47:47 UTC
Issue with CAS log buildup...
Hello all,
I had a long running setup with File Manager and ~6 crawlers. After a few months, the logs were on the order of TBs and filled up our RAID. Where can I adjust the log granularity and is there a log roll over feature that rotates and compresses the logs in a /var/logs way?
Thanks
Tim.
-----------------------------------------------------------------
Tim Stough
NASA/Caltech Jet Propulsion Lab
Senior System Architect
Data Understanding Group (Section 388)
818-393-5347 (office)
626-644-6574 (cell)
-----------------------------------------------------------------
Re: Issue with CAS log buildup...
Posted by "Ramirez, Paul M (388J)" <pa...@jpl.nasa.gov>.
Hey Tim,
Update the logging.properties to include:
# The following limits the size of output log file in bytes:
java.util.logging.FileHandler.limit=50000
# Number of output files to cycle through.
# Appends integer to end of base file name
java.util.logging.FileHandler.count=10
Thanks,
Paul
From: <Stough>, "Timothy M (388F)" <ti...@jpl.nasa.gov>>
Reply-To: "user@oodt.apache.org<ma...@oodt.apache.org>" <us...@oodt.apache.org>>
Date: Wednesday, February 13, 2013 10:52 AM
To: "<us...@oodt.apache.org>>" <us...@oodt.apache.org>>
Subject: Re: Issue with CAS log buildup...
I'll check out Chris' pointers. But, to be clear, I was referring to the log-rolling method used by /var/logs logs, not actually putting our crawler logs there. I want to have the logs occasionally rolled log -> log.0, log.0 -> log.0.gz etc... log.9.gz -> [deleted]...
Cheers,
Tim.
On Feb 12, 2013, at 10:32 PM, "Verma, Rishi (388J)" <Ri...@jpl.nasa.gov>> wrote:
You have CAS FM and Crawler writing to /var/logs? By default they write to filemgr/logs or crawler/logs. In either case though, you can adjust the logging granularity within filemgr/etc/logging.properties or crawler/etc/logging.properties.
You'll see in that file which Java classes log more verbosely (FINE, FINER, FINEST etc) than others and you can adjust accordingly. As for rolling the log messages over to new files, I believe this is determined by the logging property fields: "java.util.logging.FileHandler.pattern" and "java.util.logging.FileHandler.limit" - both of which are defined within logging.properties.
Hope that helps!
Rishi
On Feb 12, 2013, at 3:47 PM, Stough, Timothy M (388F) wrote:
Hello all,
I had a long running setup with File Manager and ~6 crawlers. After a few months, the logs were on the order of TBs and filled up our RAID. Where can I adjust the log granularity and is there a log roll over feature that rotates and compresses the logs in a /var/logs way?
Thanks
Tim.
-----------------------------------------------------------------
Tim Stough
NASA/Caltech Jet Propulsion Lab
Senior System Architect
Data Understanding Group (Section 388)
818-393-5347 (office)
626-644-6574 (cell)
-----------------------------------------------------------------
-----------------------------------------------------------------
Tim Stough
NASA/Caltech Jet Propulsion Lab
Senior System Architect
Data Understanding Group (Section 388)
818-393-5347 (office)
626-644-6574 (cell)
-----------------------------------------------------------------
Re: Issue with CAS log buildup...
Posted by "Ramirez, Paul M (388J)" <pa...@jpl.nasa.gov>.
Hey Tim,
Update the logging.properties to include:
# The following limits the size of output log file in bytes:
java.util.logging.FileHandler.limit=50000
# Number of output files to cycle through.
# Appends integer to end of base file name
java.util.logging.FileHandler.count=10
Thanks,
Paul
From: <Stough>, "Timothy M (388F)" <ti...@jpl.nasa.gov>>
Reply-To: "user@oodt.apache.org<ma...@oodt.apache.org>" <us...@oodt.apache.org>>
Date: Wednesday, February 13, 2013 10:52 AM
To: "<us...@oodt.apache.org>>" <us...@oodt.apache.org>>
Subject: Re: Issue with CAS log buildup...
I'll check out Chris' pointers. But, to be clear, I was referring to the log-rolling method used by /var/logs logs, not actually putting our crawler logs there. I want to have the logs occasionally rolled log -> log.0, log.0 -> log.0.gz etc... log.9.gz -> [deleted]...
Cheers,
Tim.
On Feb 12, 2013, at 10:32 PM, "Verma, Rishi (388J)" <Ri...@jpl.nasa.gov>> wrote:
You have CAS FM and Crawler writing to /var/logs? By default they write to filemgr/logs or crawler/logs. In either case though, you can adjust the logging granularity within filemgr/etc/logging.properties or crawler/etc/logging.properties.
You'll see in that file which Java classes log more verbosely (FINE, FINER, FINEST etc) than others and you can adjust accordingly. As for rolling the log messages over to new files, I believe this is determined by the logging property fields: "java.util.logging.FileHandler.pattern" and "java.util.logging.FileHandler.limit" - both of which are defined within logging.properties.
Hope that helps!
Rishi
On Feb 12, 2013, at 3:47 PM, Stough, Timothy M (388F) wrote:
Hello all,
I had a long running setup with File Manager and ~6 crawlers. After a few months, the logs were on the order of TBs and filled up our RAID. Where can I adjust the log granularity and is there a log roll over feature that rotates and compresses the logs in a /var/logs way?
Thanks
Tim.
-----------------------------------------------------------------
Tim Stough
NASA/Caltech Jet Propulsion Lab
Senior System Architect
Data Understanding Group (Section 388)
818-393-5347 (office)
626-644-6574 (cell)
-----------------------------------------------------------------
-----------------------------------------------------------------
Tim Stough
NASA/Caltech Jet Propulsion Lab
Senior System Architect
Data Understanding Group (Section 388)
818-393-5347 (office)
626-644-6574 (cell)
-----------------------------------------------------------------
Re: Issue with CAS log buildup...
Posted by "Stough, Timothy M (388F)" <ti...@jpl.nasa.gov>.
I'll check out Chris' pointers. But, to be clear, I was referring to the log-rolling method used by /var/logs logs, not actually putting our crawler logs there. I want to have the logs occasionally rolled log -> log.0, log.0 -> log.0.gz etc... log.9.gz -> [deleted]...
Cheers,
Tim.
On Feb 12, 2013, at 10:32 PM, "Verma, Rishi (388J)" <Ri...@jpl.nasa.gov>> wrote:
You have CAS FM and Crawler writing to /var/logs? By default they write to filemgr/logs or crawler/logs. In either case though, you can adjust the logging granularity within filemgr/etc/logging.properties or crawler/etc/logging.properties.
You'll see in that file which Java classes log more verbosely (FINE, FINER, FINEST etc) than others and you can adjust accordingly. As for rolling the log messages over to new files, I believe this is determined by the logging property fields: "java.util.logging.FileHandler.pattern" and "java.util.logging.FileHandler.limit" - both of which are defined within logging.properties.
Hope that helps!
Rishi
On Feb 12, 2013, at 3:47 PM, Stough, Timothy M (388F) wrote:
Hello all,
I had a long running setup with File Manager and ~6 crawlers. After a few months, the logs were on the order of TBs and filled up our RAID. Where can I adjust the log granularity and is there a log roll over feature that rotates and compresses the logs in a /var/logs way?
Thanks
Tim.
-----------------------------------------------------------------
Tim Stough
NASA/Caltech Jet Propulsion Lab
Senior System Architect
Data Understanding Group (Section 388)
818-393-5347 (office)
626-644-6574 (cell)
-----------------------------------------------------------------
-----------------------------------------------------------------
Tim Stough
NASA/Caltech Jet Propulsion Lab
Senior System Architect
Data Understanding Group (Section 388)
818-393-5347 (office)
626-644-6574 (cell)
-----------------------------------------------------------------
Re: Issue with CAS log buildup...
Posted by "Stough, Timothy M (388F)" <ti...@jpl.nasa.gov>.
I'll check out Chris' pointers. But, to be clear, I was referring to the log-rolling method used by /var/logs logs, not actually putting our crawler logs there. I want to have the logs occasionally rolled log -> log.0, log.0 -> log.0.gz etc... log.9.gz -> [deleted]...
Cheers,
Tim.
On Feb 12, 2013, at 10:32 PM, "Verma, Rishi (388J)" <Ri...@jpl.nasa.gov>> wrote:
You have CAS FM and Crawler writing to /var/logs? By default they write to filemgr/logs or crawler/logs. In either case though, you can adjust the logging granularity within filemgr/etc/logging.properties or crawler/etc/logging.properties.
You'll see in that file which Java classes log more verbosely (FINE, FINER, FINEST etc) than others and you can adjust accordingly. As for rolling the log messages over to new files, I believe this is determined by the logging property fields: "java.util.logging.FileHandler.pattern" and "java.util.logging.FileHandler.limit" - both of which are defined within logging.properties.
Hope that helps!
Rishi
On Feb 12, 2013, at 3:47 PM, Stough, Timothy M (388F) wrote:
Hello all,
I had a long running setup with File Manager and ~6 crawlers. After a few months, the logs were on the order of TBs and filled up our RAID. Where can I adjust the log granularity and is there a log roll over feature that rotates and compresses the logs in a /var/logs way?
Thanks
Tim.
-----------------------------------------------------------------
Tim Stough
NASA/Caltech Jet Propulsion Lab
Senior System Architect
Data Understanding Group (Section 388)
818-393-5347 (office)
626-644-6574 (cell)
-----------------------------------------------------------------
-----------------------------------------------------------------
Tim Stough
NASA/Caltech Jet Propulsion Lab
Senior System Architect
Data Understanding Group (Section 388)
818-393-5347 (office)
626-644-6574 (cell)
-----------------------------------------------------------------
Re: Issue with CAS log buildup...
Posted by "Verma, Rishi (388J)" <Ri...@jpl.nasa.gov>.
Hi Tim,
You have CAS FM and Crawler writing to /var/logs? By default they write to filemgr/logs or crawler/logs. In either case though, you can adjust the logging granularity within filemgr/etc/logging.properties or crawler/etc/logging.properties.
You'll see in that file which Java classes log more verbosely (FINE, FINER, FINEST etc) than others and you can adjust accordingly. As for rolling the log messages over to new files, I believe this is determined by the logging property fields: "java.util.logging.FileHandler.pattern" and "java.util.logging.FileHandler.limit" - both of which are defined within logging.properties.
Hope that helps!
Rishi
On Feb 12, 2013, at 3:47 PM, Stough, Timothy M (388F) wrote:
Hello all,
I had a long running setup with File Manager and ~6 crawlers. After a few months, the logs were on the order of TBs and filled up our RAID. Where can I adjust the log granularity and is there a log roll over feature that rotates and compresses the logs in a /var/logs way?
Thanks
Tim.
-----------------------------------------------------------------
Tim Stough
NASA/Caltech Jet Propulsion Lab
Senior System Architect
Data Understanding Group (Section 388)
818-393-5347 (office)
626-644-6574 (cell)
-----------------------------------------------------------------
Re: Issue with CAS log buildup...
Posted by "Verma, Rishi (388J)" <Ri...@jpl.nasa.gov>.
Hi Tim,
You have CAS FM and Crawler writing to /var/logs? By default they write to filemgr/logs or crawler/logs. In either case though, you can adjust the logging granularity within filemgr/etc/logging.properties or crawler/etc/logging.properties.
You'll see in that file which Java classes log more verbosely (FINE, FINER, FINEST etc) than others and you can adjust accordingly. As for rolling the log messages over to new files, I believe this is determined by the logging property fields: "java.util.logging.FileHandler.pattern" and "java.util.logging.FileHandler.limit" - both of which are defined within logging.properties.
Hope that helps!
Rishi
On Feb 12, 2013, at 3:47 PM, Stough, Timothy M (388F) wrote:
Hello all,
I had a long running setup with File Manager and ~6 crawlers. After a few months, the logs were on the order of TBs and filled up our RAID. Where can I adjust the log granularity and is there a log roll over feature that rotates and compresses the logs in a /var/logs way?
Thanks
Tim.
-----------------------------------------------------------------
Tim Stough
NASA/Caltech Jet Propulsion Lab
Senior System Architect
Data Understanding Group (Section 388)
818-393-5347 (office)
626-644-6574 (cell)
-----------------------------------------------------------------
Re: Issue with CAS log buildup...
Posted by "Mattmann, Chris A (388J)" <ch...@jpl.nasa.gov>.
Hey Tim,
NP, check out the etc/logging.properties files inside of the crawler dir, and the filemgr dir. You have full access to the java logging.properties facility there.
Here are the best tutorials out there that should help:
http://docs.oracle.com/javase/1.4.2/docs/guide/util/logging/overview.html#1.8 (yes 1.4.2 but still very relevant)
http://tutorials.jenkov.com/java-logging/configuration.html
http://docs.oracle.com/javase/1.4.2/docs/api/java/util/logging/FileHandler.html
Cheers,
Chris
From: <Stough>, "Timothy M (388F)" <ti...@jpl.nasa.gov>>
Reply-To: "user@oodt.apache.org<ma...@oodt.apache.org>" <us...@oodt.apache.org>>
Date: Tuesday, February 12, 2013 3:47 PM
To: "<us...@oodt.apache.org>>" <us...@oodt.apache.org>>
Subject: Issue with CAS log buildup...
Hello all,
I had a long running setup with File Manager and ~6 crawlers. After a few months, the logs were on the order of TBs and filled up our RAID. Where can I adjust the log granularity and is there a log roll over feature that rotates and compresses the logs in a /var/logs way?
Thanks
Tim.
-----------------------------------------------------------------
Tim Stough
NASA/Caltech Jet Propulsion Lab
Senior System Architect
Data Understanding Group (Section 388)
818-393-5347 (office)
626-644-6574 (cell)
-----------------------------------------------------------------
Re: Issue with CAS log buildup...
Posted by "Mattmann, Chris A (388J)" <ch...@jpl.nasa.gov>.
Hey Tim,
NP, check out the etc/logging.properties files inside of the crawler dir, and the filemgr dir. You have full access to the java logging.properties facility there.
Here are the best tutorials out there that should help:
http://docs.oracle.com/javase/1.4.2/docs/guide/util/logging/overview.html#1.8 (yes 1.4.2 but still very relevant)
http://tutorials.jenkov.com/java-logging/configuration.html
http://docs.oracle.com/javase/1.4.2/docs/api/java/util/logging/FileHandler.html
Cheers,
Chris
From: <Stough>, "Timothy M (388F)" <ti...@jpl.nasa.gov>>
Reply-To: "user@oodt.apache.org<ma...@oodt.apache.org>" <us...@oodt.apache.org>>
Date: Tuesday, February 12, 2013 3:47 PM
To: "<us...@oodt.apache.org>>" <us...@oodt.apache.org>>
Subject: Issue with CAS log buildup...
Hello all,
I had a long running setup with File Manager and ~6 crawlers. After a few months, the logs were on the order of TBs and filled up our RAID. Where can I adjust the log granularity and is there a log roll over feature that rotates and compresses the logs in a /var/logs way?
Thanks
Tim.
-----------------------------------------------------------------
Tim Stough
NASA/Caltech Jet Propulsion Lab
Senior System Architect
Data Understanding Group (Section 388)
818-393-5347 (office)
626-644-6574 (cell)
-----------------------------------------------------------------