Swapping


 
Thread Tools Search this Thread
Operating Systems Solaris Swapping
# 1  
Old 05-10-2017
Swapping

Hi Guys

I am using SPARC-T4 (chipid 0, clock 2998 MHz), SunOS 5.10 Generic_150400-38 sun4v.

How do I see if the server was doing some swapping like yesterday?

I had a java application error with java.lang.OutOfMemoryError, now I want to check if the server was not doing some swapping at that time.

Thanks in advance
# 2  
Old 05-10-2017
You need some kind of monitoring in place to go back in time and see what happens... For example something like sar.

Collecting System Activity Data Automatically (sar) - Oracle Solaris Administration: Common Tasks
# 3  
Old 05-10-2017
Quote:
Originally Posted by Phuti
How do I see if the server was doing some swapping like yesterday?

I had a java application error with java.lang.OutOfMemoryError, now I want to check if the server was not doing some swapping at that time.
You might have a look in the sar output if your system uses sar - which may or may not be the case.

Otherwise, you might have some performance monitoring tool running and might find information in its output.

Otherwise, i suppose you are out of luck: you can see the current swapping - quite detailedly so - in the vmstat output, but the figures from yesterday are not there (and to my knowledge anywhere saved). In this case you might set up something - log vmstat to a file, start sar, etc.. - and wait until the problem occurs again.

I hope this helps.

bakunin
# 4  
Old 05-10-2017
Also, check out system logs.

If the memory pressure was extra high, you should messages from various services like :
[some service] : Unable to fork, not enough space ....

Are you running your java program inside application servers (websphere, glashfish, tomcat etc.) or from command line ?
Perhaps a JVM -xmx increase could help in either case ?
What is your app / program doing ?

I doubt you ran out of memory on t4 bare metal, you run out of memory inside your JVM.
# 5  
Old 05-10-2017
You can quickly monitor it in a terminal with the vmstat command
Code:
vmstat 2

pi and po columns are page-in and page-out, that is nearly identical with swapping
Code:
vmstat -S 2

displays the exact figures in si and so columns (swap-in and swap-out).
Note that the first line in the vmstat output is the average since system boot.
Every subsequent line is the current activity (average of the 2 seconds interval).
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Swapping lines

Hi there, I have a text that I'm trying to format into something more readable. However, I'm stuck in the last step. I've searched and tried things over the internet with no avail. OS: Mac After parsing the original text that I won't put here, I managed to get something like this, but this... (8 Replies)
Discussion started by: Kibou
8 Replies

2. Shell Programming and Scripting

Swapping fields

Hallo Team, This is the command that i am running : grep ",Call Forward Not Reachable" *2013* this is the output that i am getting (i did a head -10 but the files can be more than 1000) ... (8 Replies)
Discussion started by: kekanap
8 Replies

3. Shell Programming and Scripting

Swapping of fields in file

Hi Friends , I have file1.txt 1|b|46|123|47673|348738 2|c|63|124|7346|4783 3|y|45|125|5555|78789 output should swap the 4th field to the first field. output 123|1|b|46|47673|348738 124|2|c|63|7346|4783 125|3|y|45|5555|78789 (3 Replies)
Discussion started by: i150371485
3 Replies

4. Shell Programming and Scripting

swapping the values of variable!

Hi All, newbie here, i'm just wondering how can i swap the two values of variables without using the third variable. Please advise, Thanks, (5 Replies)
Discussion started by: nikki1200
5 Replies

5. Shell Programming and Scripting

Swapping three lines

I have some text: <date>some_date</date> <text>some_text</text> <name>some_name<name> and I want to transform it to smthng like that: some_name on some_date: some_text I've tried sed: sed 's/<text>\(.*\)<\/text> <name>\(.*\)<\/name>/\2 - \1/' but it says unterminated... (13 Replies)
Discussion started by: dsjkvf
13 Replies

6. UNIX for Dummies Questions & Answers

Swapping in VI editor

Hi, I am attempting to replace several similar words with another word in vi. Here is what I have written for the script: 3dTcat -prefix SuperBrik_4WAY_HRF ../JULY10_2007A/results2TENT/stats.JULY10_2007A+tlrc ../JULY10_2007G/results2TENT/stats.JULY10_2007G+tlrc... (1 Reply)
Discussion started by: Jahn
1 Replies

7. SuSE

Swapping

Hello! Why does my SuSE GNU/Linux machine swap? I have a Gig of ram, currently 14MBs of free RAM, 724MB - buffers and caches... That is 685MB of cached RAM, then kernel really should'nt have to swap, It should release cached memory in my thinkin... It has only swaped 3MB's but still,... (3 Replies)
Discussion started by: Esaia
3 Replies

8. UNIX for Dummies Questions & Answers

how to get swapping info

Hi How can I determine if swapping is occuring on a server. Thanks, Leo (2 Replies)
Discussion started by: leo
2 Replies

9. Filesystems, Disks and Memory

Paging and Swapping

Hi Guys: Would like to know how to check system swapping and paging and some theory on how they function. I am an oracle dba and my environment is 8171 on AIX 433. We have a 1GB of RAM on the box and I am educating myself to see how much more SGA can be accommodated on the box and what are the... (2 Replies)
Discussion started by: ST2000
2 Replies

10. UNIX for Dummies Questions & Answers

Swapping questions

How can you tell how much a Solaris box is swapping? At what point do page in and page out become a problem? Here is a vmstat output. > vmstat procs memory page disk faults cpu r b w swap free re mf pi po fr de sr m0 m1 m2 m3 in sy cs us sy id... (1 Reply)
Discussion started by: 98_1LE
1 Replies
Login or Register to Ask a Question