/tmp/refs filling up my system - 31GB!

I have FreePBX 11 (Asterisk 11.2.1 built by root @ ibmxxxxxxx.digium.internal on a x86_64 running Linux on 2013-03-06 18:55:26 UTC)
As you can see, it’s been around for three years. Minimal issues during that time.
Now I see that /tmp/refs is at 31GB! What is this? How can I shrink it or eliminate it? There are also other items in /tmp. Can I delete these?
31G -rw-r–r-- 1 asterisk asterisk 31G Oct 4 10:52 refs
22M -rw------- 1 asterisk asterisk 59M Oct 4 10:52 core.PBXServer-2016-10-04T 10:52:00-0700
24M -rw------- 1 asterisk asterisk 76M Oct 4 10:51 core.PBXServer-2016-10-04T 10:51:30-0700
26M -rw------- 1 asterisk asterisk 68M Oct 4 10:31 core.PBXServer-2016-10-04T 10:31:33-0700
23M -rw------- 1 asterisk asterisk 73M Oct 3 08:54 core.PBXServer-2016-10-03T 08:54:50-0700
22M -rw------- 1 asterisk asterisk 60M Oct 3 08:52 core.PBXServer-2016-10-03T 08:52:56-0700
82M -rw------- 1 asterisk asterisk 182M Oct 3 08:48 core.PBXServer-2016-10-03T

Thank you!

EDIT: I am most concerned about 31G -rw-r–r-- 1 asterisk asterisk 31G Oct 4 10:52 refs. 31GM is a really large file. Can I delete this? Can I prevent it from coming back?

1 Like

What version of Asterisk are you using?

This looks very much like core dumps, ie your Asterisk is crashing, repetitively…

These are used to debug the problem and can be deleted once it has been determined (or if it’s always the same problem you could only keep one or some of them…

Good luck and have nice day!

Nick

Asterisk 11.2.1

The op specifically stated

(Asterisk 11.2.1 built by root @ ibmxxxxxxx.digium.internal on a x86_64 running Linux on 2013-03-06 18:55:26 UTC)

Core dump reasons can often be clued in /var/log/messages, look therein at about “Oct 4 10:52”