On 2/14/07, Lee Butler <[EMAIL PROTECTED]> wrote:
I have noticed that about every user in the system has a
username/.dt/tmp/core file that is over 100M in size.  Is it possible to
delete this file without impacting the users system?

Yes, it's safe to delete them.  But it would be better if you first find
out which program left the core file behind.  Run the 'file' command
against the core file and it should tell you the name of the program
that crashed and left the core.  You can also use 'pstack core' to
see what the program was doing when it crashed.  That's not
hugely interesting unless you have the source but it can give you
some search terms to look for in Sun's Sunsolve database if you
want to see whether the core is caused by a known -- and
perhaps already fixed and patched -- bug.

What is the file doing actually ...

It's a snapshot of the memory of a process that crashed.  The
system collects it so that a programmer can do a post-mortem exam
to figure out what happened.  You can examine the core by using
commands like 'file' and 'pstack' or you can read the core file into a
debugger and explore it just as you might use the debugger on a
still-running program.

... and why doesn't it purge out when the user logs off (which I expect
since it is in a tmp directory)?

tmp directories aren't always volatile.  /tmp traditionally is purged
during a reboot (although not on Linux) but /var/tmp isn't and this
one isn't either.  If you're specifically worried about core files
clogging your disks then, as another poster mentioned, you can
use 'coreadm' to have the system place the core files someplace
where they're more easily managed.  You can even configure
the system to not collect core files at all, but that robs you of any
chance of investigating the cause of the crash.  By default the
core file is left in what was the current working directory of the
process that crashed, if the process has permission to write a file
into that directory.  That could be anywhere.

Does anyone have a general clean up
routine that runs to delete things like internet caches and etc.?

If you find one then make sure that it doesn't try to "tidy up"
/tmp/SUNWut.  Sun Ray keeps a lot of files in /tmp/SUNWut, some
with artificially old  timestamps, and if those files suddenly
disappear then bad things will happen.

OttoM.
__
ottomeister

Disclaimer: These are my opinions.  I do not speak for my employer.
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to