KahaDB log cleanup?

927 views
Skip to first unread message

Brad Spry

unread,
Dec 15, 2014, 4:20:39 PM12/15/14
to fedor...@googlegroups.com
Interested in learning more about the files in $FEDORA_HOME/data/activemq-data/localhost/KahaDB

...the directory is currently growing by 165M per day on a non-production system.  If left unmaintained, it could cause a storage problem in a calculable, predictable number of days.

I'm interested in learning more about the directory and it's contents, especially interested in safe ways to conduct maintenance on the "logs" in the directory.


Thanks Ahead Of Time,

Brad Spry
Atkins Library
UNC Charlotte


Brad Spry

unread,
Dec 15, 2014, 4:23:41 PM12/15/14
to fedor...@googlegroups.com
Maybe it is self-cleaning; file date's seem to reflect a purge after 7 or 8 days.  That would put my worries to bed.

<B

Andrew Woods

unread,
Dec 18, 2014, 9:20:55 PM12/18/14
to fedor...@googlegroups.com
Hello Brad,
The kahadb is the native database used by Fedora4's default Active-MQ message broker.

Its configuration is defined in the activemq.xml:

Andrew

On Mon, Dec 15, 2014 at 4:23 PM, Brad Spry <brad...@gmail.com> wrote:
Maybe it is self-cleaning; file date's seem to reflect a purge after 7 or 8 days.  That would put my worries to bed.

<B

--
You received this message because you are subscribed to the Google Groups "Fedora Tech" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fedora-tech...@googlegroups.com.
To post to this group, send email to fedor...@googlegroups.com.
Visit this group at http://groups.google.com/group/fedora-tech.
For more options, visit https://groups.google.com/d/optout.

Brad Spry

unread,
Dec 19, 2014, 2:28:22 PM12/19/14
to fedor...@googlegroups.com
Thank you for pointing me in the right direction!

I located two distinct copies of activemq.xml:
$FEDORA_HOME/server/fedora-internal-use/config/activemq.xml
$FEDORA_HOME/server/config/activemq.xml

Both files are identical in every way, seem to be standalone files, no evidence of a symlink between the two.

ActiveMQ's documentation refers to the existance of a "conf/log4j.properties" file, but I see no evidence of one:
http://activemq.apache.org/how-do-i-change-the-logging.html

I'm just trying to reduce fedora's software backup size, if it were to become a real problem, I'd probably just symlink the $FEDORA_HOME/data/activemq-
data/localhost/KahaDB to /var/log

Today, the directory only contains 4M of logs, so it seems to clean up after itself nicely.   Just trying to understand, thank you for helping me!


Sincerely,


Brad Spry
Atkins Library
UNC Charlotte



<B




Andrew Woods

unread,
Dec 19, 2014, 2:50:19 PM12/19/14
to fedor...@googlegroups.com
Hello Brad,
Given your directory layout (/server/fedora-internal-use) it looks like you are using Fedora3.x. Is that correct? Although the kahadb link I sent is still relevant, the context of my reply was Fedora4.
Andrew

Benjamin Armintor

unread,
Dec 19, 2014, 3:05:57 PM12/19/14
to fedor...@googlegroups.com
Brad,
  Fedora 3 uses a facade to send log4j messages to slf4j/logback, so I think you'll want to make log configuration changes as appropriate under $FEDORA_HOME/server/config/logback.xml

- Ben

Reply all
Reply to author
Forward
0 new messages