Operating System - HP-UX
1834793 Members
2522 Online
110070 Solutions
New Discussion

Re: Unneccessary files in /tmp (11.22)

 
Arunvijai.S
Frequent Advisor

Unneccessary files in /tmp (11.22)

Hi All,

I am getting lots of unwanted files in my /tmp folder(11.22). These files are in the name of

from_ogld_2359.1
from_ogld_2361.1
from_ogld_2363.1
..........................
..........................

Rate of growth is around 2 files/sec. It is extremely annoying and not able to get any results thro' web.
My Platform details are given below,

Server : rx2600
OS : HPUX 11.22

Any help would be really appreciated.

Thanks,
Arun
8 REPLIES 8
T G Manikandan
Honored Contributor

Re: Unneccessary files in /tmp (11.22)

Get lsof from

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.70/

and check the source process for those files.
Printaporn_1
Esteemed Contributor

Re: Unneccessary files in /tmp (11.22)

Hi Arun,

Does it come from application , what is owner of those files ?
enjoy any little thing in my life
Arunvijai.S
Frequent Advisor

Re: Unneccessary files in /tmp (11.22)

Hi,

It is a X Server process that creates the Files. I am not sure which patch will solve my problem ??

Arun
Steven E. Protter
Exalted Contributor

Re: Unneccessary files in /tmp (11.22)

Don't get frustated and decide /tmp can be wiped out.

We do run a program nightly that wipes out files that have not been updated in 7 days.

But one of our databases keeps its lock files on /tmp and if you wipe those out or /tmp gets to full a pile of database users are very bounced.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Elmar P. Kolkman
Honored Contributor

Re: Unneccessary files in /tmp (11.22)

It looks like the numbers before the dot are a process number. If so, it might be easy to find the process that creates these files...

ls -tr /tmp/from_ogld* | tail -5 |sed 's|from_ogld_\([0-9]*\).1|\1|' | xargs ps -fp

This should show the process that created the last 5 files, if still running.
Every problem has at least one solution. Only some solutions are harder to find.
Arunvijai.S
Frequent Advisor

Re: Unneccessary files in /tmp (11.22)

yes, But it is very annoying. It keeps on increasing at a rate of 2 files per second.

Arun
Arunvijai.S
Frequent Advisor

Re: Unneccessary files in /tmp (11.22)

Hi Elmar,

Output is given below

=============
# ls -tr /tmp/from_ogld* | tail -5 |sed 's|from_ogld_\([0-9]*\).1|\1|' | xargs ps -fp
ps: wrong PID number /tmp/2034
UID PID PPID C STIME TTY TIME COMMAND

===============

I got a reply from HPUX Admin list that it is because of X server process. When i kill X server, file stops grow.Are there any patches or configuration that i need to change..?

Arun
Robert-Jan Goossens
Honored Contributor

Re: Unneccessary files in /tmp (11.22)