Logging events of /tmp full


 
Thread Tools Search this Thread
Operating Systems Solaris Logging events of /tmp full
# 1  
Old 10-27-2016
Logging events of /tmp full

Hi everybody,
few days ago we had a big issue with one of our solaris10 server.
Suddenly while my colleague was working on it for some troubleshooting he realized that the performance started to degrade.
At the end it reached the point that was not even possible to login usng the local console from the ilom.
as soon as it as supposed to ask for the password it stays there forever doing nothing.
It was also impossible to execute an ssh. In other words even if we cold ping it end the cluster resources from the other node seemed to be online we could not execute any command. Everything we sent to that server just hanged with no response.
At the end the only solution was to power off from the ilom.

I have the feeling that the /tmp folder was full but of course after the restart it is now empty and the server is working properly.

I would like to ask if from your experience a full /tmp folder can experience such kind of behaviour and if someone know if I can find somewhere some log in which I could have a confirmation that the reason was the /tmp folder full.

Is it logged somewhere the space utilization of /tmp?

thanks in advance

Biagio
# 2  
Old 10-27-2016
Code:
# dmesg
...
Oct 27 22:12:51 myserver tmpfs: [ID 582450 kern.warning] WARNING: /tmp: File system full, swap space limit exceeded
...

# 3  
Old 10-27-2016
Quote:
Originally Posted by jlliagre
Code:
# dmesg
...
Oct 27 22:12:51 myserver tmpfs: [ID 582450 kern.warning] WARNING: /tmp: File system full, swap space limit exceeded
...

Will this command show me the warning even if it occurred before the server was restarted?
Should this log be present also on /var/adm/messages ? (it is not there) or only if I use dmesg command?

---------- Post updated at 08:39 PM ---------- Previous update was at 08:23 PM ----------

Eventually if it was not due to /tmp full does anybody had a similar experience in which no possibility to do any action not even loggin in from the console while the system is not crashed but just hanging forever?
# 4  
Old 10-27-2016
Quote:
Originally Posted by bdegiovanni
Will this command show me the warning even if it occurred before the server was restarted?
If the event really happened and has been logged, yes.
Quote:
Should this log be present also on /var/adm/messages ? (it is not there) or only if I use dmesg command?
The dmesg command retrieves its data from /var/adm/messages.
Quote:
Eventually if it was not due to /tmp full does anybody had a similar experience in which no possibility to do any action not even loggin in from the console while the system is not crashed but just hanging forever?
It is a very common situation. What often happens is not /tmp being filled but the virtual memory being exhausted. /tmp being full (or almost full) is a side effect. It is also perfectly possible to have a system exhibiting the symptoms you describe without virtual memory exhaustion. If you haven't enough RAM available for the active memory to be stored in it, performance will degrade. If the deficit is very high, the system might became essentially unresponsive.

Last edited by jlliagre; 10-28-2016 at 04:07 AM..
# 5  
Old 10-28-2016
Quote:
Originally Posted by jlliagre
If the event really happened and has been logged, yes.

The dmesg command retrieving its data from /var/adm/messages.

It is a very common situation. What often happens is not /tmp being filled but the virtual memory being exhausted. /tmp being full (or almost full) is a side effect. It is also perfectly possible to have a system exhibiting the symptoms you describe without virtual memory exhaustion. If you haven't enough RAM available for the active memory to be stored in it, performance will degrade. If the deficit is very high, the system might became essentially unresponsive.
Thank you very much for the explanation. If it was the case do you think it is possible to find somewhere some log that registered the event in order to discover the root cause?
Our boss is pushing a lot to know which was the root cause and I am not really sure we can Ben able to do it

Last edited by rbatte1; 10-28-2016 at 07:34 AM.. Reason: Smartened up formatting
# 6  
Old 10-28-2016
If there is no system monitoring in place (esp. vmstat output), memory thrashing leaves no logs.
# 7  
Old 10-28-2016
By default, Solaris creates /tmp in memory and therefore swap-space can be allocated if necessary. This makes everything in /tmp very quick to access until you run out of real memory and then is depends on the devices used for swap after that, usually no worse than a regular filesystem. This is usually very efficient but can lead to problems if you have a process that runs away writing a large log file or doing a huge sort with /tmp defined as the working area. You can use the -T flag or variable $TMPDIR to adjust this behaviour if this is the problem.

It is also possible to define more swap space if you have disk available and bring it online whilst you do certain operations if you are able to narrow down what triggered the problem.

This may not be much help in tracking down the cause but it may give you options in future. It might be worth watching the output from vmstat and looking for paging activity.

Can you share the output from df -k /tmp and swap -l?



Kind regards,
Robin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Emergency UNIX and Linux Support

MySql server hangs due to /tmp full

Dear community, my sql and apache server (with CMW installed) hangs due to /tmp full: root@cms:~# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 224G 27G 186G 13% / tmpfs 3.9G 0 3.9G 0% /lib/init/rw udev 3.9G ... (7 Replies)
Discussion started by: Lord Spectre
7 Replies

2. Solaris

Sol10 + OpenLDAP = excessive logging & full file system??!!

Hello all, new to this forum (member of many others). Hopefully I can find help here. SERVER: Brand new server Oracle Enterprise SPARC T4-1 Loaded Solaris SPARC 10 u10, patched to 147440-27 Loaded OpenLDAP v2.4.30 Loaded Berkley DB 4.7.25.NC Loaded OpenSSL 1.0.1c Note: All packages are... (2 Replies)
Discussion started by: Wraith_G2IC
2 Replies

3. Solaris

Solaris full /tmp - du and df different swap NOT filled

Hello all, The issue is # df -h /tmp Filesystem size used avail capacity Mounted on swap 4.0G 4.0G 8.7M 100% /tmp # du -sh /tmp/ 87M /tmp By now you probably will say that this is open file destriptor issue. Well no, nothing... (2 Replies)
Discussion started by: click
2 Replies

4. AIX

\tmp Directory is full up to 99%.

Dear All, We are on AIX OS, /tmp directory is filled up to 99% percent, Please suggest, How to get free space for "/tmp"? which files can be deleted from /tmp? and How to delete it? is there any commands..... Thanks in advance, Its very urgent, Helpful answers will be appreciated, Please... (7 Replies)
Discussion started by: kak
7 Replies

5. AIX

/tmp file system full

Hi, I would like to know if /tmp file system is full, wheather it will affect the peformance of application installed on AIX. if Memory and CPU are not heavily utilized. Regards, Manoj. (1 Reply)
Discussion started by: manoj.solaris
1 Replies

6. Cybersecurity

Full Command Logging?

I am looking for a really good command logging tool to improve the auditing of my servers. I have previously used snoopy but this is currently a bit flaky and causing serious problems for me, it doesn't look like it's been maintained since 2004, it didn't even want to compile until I added -fPIC... (1 Reply)
Discussion started by: humbletech99
1 Replies

7. AIX

/tmp full

The /tmp is 100% full, I found there are the following big files/directory: 1301500 syslog.out.58 166692 vac 158552 install.dir.2928686 158552 install.dir.2236636 110980 install.dir.2887698 /tmp/vac have some files like : .toc ... (3 Replies)
Discussion started by: rainbow_bean
3 Replies

8. Solaris

/tmp: File system full, swap space limit exceeded

Can you help. My server sunning solaris 9 on x86 platform pretty much hung for a few hours... I could not use telnet or ssh to the box - it kept refusing connection. A few hours later - I was able to log in again. The server has not rebooted but here are the first errors in the messages log... (5 Replies)
Discussion started by: frustrated1
5 Replies

9. AIX

/tmp full

good morning The /tmp filesystem is full at 99 % I have do a "rm" but the size is the same. so i think that a process is always alive, but how can i do to know it ? (because I have deleted some file in /tmp) thank you (9 Replies)
Discussion started by: pascalbout
9 Replies

10. UNIX for Dummies Questions & Answers

/tmp filesystem full

I am running AIX 3 4. When I do a df I get: Filesystem 512-blocks Free %Used Iused %Iused Mounted on /dev/hd4 32768 10232 69% 1309 16% / /dev/hd2 917504 86360 91% 19744 18% /usr /dev/hd9var 131072 67712 49% 617 ... (11 Replies)
Discussion started by: szodiac
11 Replies
Login or Register to Ask a Question