I have seen a few hprof
dumps of puppetdb
indicating crashes. While I investigate that is there a way to configure that dump location to be somewhere else.
While I do have space constraints on /var/log - I don't want to just increase the /var/log partition.
Asked
Active
Viewed 186 times
1

bhantol
- 113
- 4
-
1I'm not sure about how puppet specifically handles it's dumps, but is it possible to just create a sym link at /var/log/puppetdb to point somewhere else? – Daniel Widrick Oct 17 '14 at 17:02
-
Than you for your idea. I searched through the puppetlab but could not find something to configure hence posted it here if any knew. Sym link is one option (+1) that i might have to resort to but does not answer my question. – bhantol Oct 17 '14 at 17:08
1 Answers
0
The dump location is configured with the JAVA_ARGS variable provided in either /etc/default/puppetdb
or /etc/sysconfig/puppetdb
depending on your distro (Debian or RedHat respectively).
Ordinarily this will be set to something like this:
JAVA_ARGS=-Xmx192m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/puppetdb/puppetdb-oom.hprof -Djava.security.egd=file:/dev/urandom
You just need to reconfigure that -XX:HeapDumpPath setting to point wherever you prefer.

Ken Barber
- 378
- 1
- 2
- 8
-
FWIW, if you wanted to chat about the heap OOM problems that spawned this question, I can help also. – Ken Barber Oct 17 '14 at 19:51
-
Thank you @Ken Barber I should have guessed this was running on Java with the dump name containing "hprof" – bhantol Oct 17 '14 at 20:33