Sponsored Content
Operating Systems Linux Red Hat VM becomes slow every 3-4 days Post 302883368 by solaris_1977 on Monday 13th of January 2014 02:37:16 PM
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.
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
make_combined_log.pl(1) 				      General Commands Manual					   make_combined_log.pl(1)

NAME
make_combined_log.pl - make combined logfile from SQL database SYNOPSIS
make_combined_log.pl <days> <virtual host> DESCRIPTION
This perl script extracts the httpd access data from a MySQL database and formats it properly for parsing by 3rd-party log analysis tools. The script is intended to be run out by cron. Its commandline arguments tell it how many days' worth of access records to extract, and which virtual_host you are interested in (because many people log several virthosts to one MySQL db.) This permits you to run it daily, weekly, every 9 days -- whatever you decide. NOTE
By "days" I mean "chunks of 24 hours prior to the moment this script is run." So if you run it at 4:34 p.m. on the 12th, it will go back through 4:34 p.m. on the 11th. KNOWN ISSUES
Because GET and POST are not discriminated in the MySQL log, we'll just assume that all requests are GETs. This should have negligible effect on any analysis software. This could be remedied IF you stored the full HTTP request in your database instead of just the URI, but that's going to cost you a LOT of space really quickly... Because this is somewhat of a quick hack it doesn't do the most robust error checking in the world. Run it by hand to confirm your usage before putting it in crontab. AUTHOR
Edward Rudd <eddie@omegaware.com> MAN PAGE CREATED BY
Michael A. Toth <lirul.lists@gmail.com> - based on comments of script COMMENTS
This man page was written using xml2man (1) by the same author. Manuals User make_combined_log.pl(1)
All times are GMT -4. The time now is 01:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy