VM becomes slow every 3-4 days

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat VM becomes slow every 3-4 days
# 1  
Old 01-13-2014
VM becomes slow every 3-4 days

Hi,
I have RHEL 6.1 on VM, where Big data is installed. Every 3-4 days, its web interface become very slow and I had to reboot this VM. I was checking with "top" and that shows that free memory is less. Can this be a reason for slowness ? No big load on CPU.
Code:
[root@server-01 ~]# free -m
             total       used       free     shared    buffers     cached
Mem:          7873       7753        120          0          2        276
-/+ buffers/cache:       7474        399
Swap:        10063       4403       5660
[root@server-01 ~]# vmstat 1 2
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 3  0 4509316 120036   2644 283144   24   15    34    51   24    6  2  1 96  1  0
 4  0 4509296 119912   2644 283304   32    0    32     0 1686 6463  2  0 98  0  0
[root@server-01 ~]#
[root@server-01 ~]# ps aux | awk '{print $2, $4, $11}' | sort -k2r | head -n 10
PID %MEM COMMAND
1913 3.3 /usr/java/jdk1.6.0_31/bin/java
4232 3.3 /usr/java/jdk1.6.0_31/bin/java
2333 2.0 java
3397 1.8 /usr/java/jdk1.6.0_31/bin/java
1784 1.6 postgres:
4230 1.5 /usr/java/jdk1.6.0_31/bin/java
22477 1.3 /usr/java/jdk1.6.0_31/bin/java
3058 1.3 /usr/java/jdk1.6.0_31/bin/java
3995 1.3 /usr/java/jdk1.6.0_31/bin/java
[root@server-01 ~]# top
top - 11:33:32 up 3 days, 23:49,  2 users,  load average: 1.59, 0.51, 0.59
Tasks: 218 total,   1 running, 217 sleeping,   0 stopped,   0 zombie
Cpu(s):  4.5%us,  1.0%sy,  0.0%ni, 24.6%id, 69.7%wa,  0.0%hi,  0.2%si,  0.0%st
Mem:   8062732k total,  7956004k used,   106728k free,     1860k buffers
Swap: 10305528k total,  4508972k used,  5796556k free,   259976k cached

Not sure, if I need to limit heap size or edit sysctl file. Please suggest.
# 2  
Old 01-20-2014
Any suggestions on this issue ?
# 3  
Old 01-20-2014
Not unexpectedly, Java appears to be the culprit. Has this only started recently?
# 4  
Old 01-20-2014
You provided VERY little information when you asked this question. So, it isn't surprising that there weren't any responses. Bumping up the post with no new information doesn't help.

You haven't shown us anything that indicates that anything is running slowly; only that the amount of memory used by your top 10 memory consumers is less than 20% of your system's memory.
# 5  
Old 01-20-2014
VM becomes slow every 3-4 days

Don, only thing I can see that its web interface is very slow. Free memory left is low. From OS side, what else should I check ?
Yes this is new vm which was spinned off one month back.
# 6  
Old 01-20-2014
What processes are eating up CPU?

How much net traffic is there? Are packets being dropped or retried?

You have one active task and 217 sleeping tasks? What are they waiting for?

Do you have zombies filling up your process table?

If this is a Big data server, how do the disk queues look? Are you getting I/O errors?

Is anything else going on every 3-4 days? Does it happen at the same time-of-day? Do you immediately reboot when it starts to get slow? Once it starts getting slow, does it stay consistently slow? Does it get increasingly slower?

Are other VMs on this machine seeing any increased activity or slower response times too?
# 7  
Old 01-20-2014
Free memory looks low in the free -m output. If memory use is steadily increasing over those 3-4 days then you would need to look at that Java application. Is the heap size controlled, or is it allowed to just keep growing? Is VMStat showing high paging / swapping activity (there is some paging out in the output you posted)? If so, I would give the VM more memory.

Last edited by Scrutinizer; 01-20-2014 at 03:02 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to find a file that's modified more than 2 days ago but less than 5 days ago?

How to find a file that's modified more than 2 days ago but was modified less than 5 days ago by use of any Linux utility ? (4 Replies)
Discussion started by: abdulbadii
4 Replies

2. Shell Programming and Scripting

Working out days of the week and processing file in 3 working days

Hi guys i need advice on the approach to this one...... I have a file say called Thisfile.20130524.txt i need to work out from the date 20130524 what day of the week that was and then process the file in 3 working days. (so not counting saturday or sunday....(will not worry about bank... (2 Replies)
Discussion started by: twinion
2 Replies

3. Shell Programming and Scripting

Cron job running for some days and is not running for some days

Hi.. i have written a shell script and made this script to run on every day night 11: 55 pm using a cron job. This cron job running for some days and is not running for some day. but i need this script to run every day night. Please help me. Here is the cron tab entries, 55 23 * * *... (1 Reply)
Discussion started by: vidhyaS
1 Replies

4. Shell Programming and Scripting

date for two days or 3 days ago

i need a script that can tell me the date 2 days ago or 3 days ago. please help (7 Replies)
Discussion started by: tomjones
7 Replies

5. SCO

Printer is slow

The syslog shows: FEB 5 17:42:07 NGXXXXX SYSLOG: SCOADM: LOCALHOST {SCO_NETWORKSPOOLER} {LPD} ERR OR SCO_OFACE_MSG_ERROR {ERROR {{SCO_OSA_ERR_PROCESSING_FAILURE {GENERAL FAILURE OCCURED IN PROCESSING THE REQUEST.}} {SCO_PRINTER_OSA_ERR_RLP_NOT_INSTALLED {THE TCP/IP RLP REMOTE PRINTING PACKAGE... (2 Replies)
Discussion started by: gagan8877
2 Replies

6. Solaris

ssh very slow

I'm facing a problem when trying to ssh to SUN servers with solaris OS,it takes a long time until prompted for password ..after connecting to the server everything work fine..how can I solve this issue??? (11 Replies)
Discussion started by: mm00123
11 Replies

7. Shell Programming and Scripting

ls latest 4 days or specify days of files in the directory

Hi, I would like to list latest 2 days, 3 days or 4 days,etc of files in the directory... how? is it using ls? (3 Replies)
Discussion started by: happyv
3 Replies

8. SCO

Slow cd response

Hi All We have one SCO Server here and it never gives us any trouble. Until Now!! Well its not earth shattering but we have one user who is complaining of a very slow response time when changing to his Home Directory. Other users who have similar profiles are OK. I have su'd to this user and I can... (0 Replies)
Discussion started by: JohnOB
0 Replies

9. Post Here to Contact Site Administrators and Moderators

Slow

The site has gone slow for quite some time... Can you do somethin abt it (2 Replies)
Discussion started by: DPAI
2 Replies
Login or Register to Ask a Question