| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
09-20-2009, 04:27 AM
|
#1
|
|
LQ Newbie
Registered: Sep 2009
Posts: 11
Rep:
|
? high server load + sites being unaccessible so many times in the day
I have a server with 8GIG of ram and a quad-core q9550 CPU and 500GIG of hard-disk space, and 100Mbps net connection.
I have separated it into 3 parts of 2 Gigs of ram each, by virtualization, so there are 3 VPSes.
The problem is that the one of the VPSes (created) with centos and WHM/cpanel would go down very often, as many as 60 times per day!
I asked one of my friends to have a look at it, and he told me that Tomcat was the reason.
Things got a little better (ask me what I changed about Tomcat?!) and after that the server would go down only about 20 to 30 times per day.
I asked the friend again, and he told me that the CPanel integrated antivirus would cause the high load periodically.
(Ask me again, what did I change?) And after that the server would go down only about 4 to 10 times per day.
Now, as far as I can tell, there is nothing more that would/should cause the server to go down.
About 30 minutes ago, before writing this post, the hosted sites were unavailable again, for about 30 seconds.
I checked the load through ssh and I saw that the load is 3, so I went to the main server and checked the VPS ram and noticed that only 10% of the cpu is used and only 307Mb of available RAM is used.
Everything shows that the server should be functioning OK, but it still seems to get unavailable far too often.
I used the top command and noticed that there is nothing using the cpu and the ram and all of them are 0.
I used the mysqladmin proc command and again nothing noticeably weird seemed obvious at this time. I also checked the other VPSes and they were also in relatively low-resource-consumption states
(I don't understand this part):
Also sometimes I use the top command when the load goes high I see that all of the users, even the non visitors users site use cpu seems forexample a refreshing things or updating thing updates all of the accounts forexample mysql or so
Please help me to figure out what other things might be causing these service/server high loads and unavailability.
Thanks in advance!
(NOTE: This post was edited by GrapefruiTgirl in an attempt to clarify some grammar/spelling to make it more understandable)
Last edited by GrapefruiTgirl; 09-20-2009 at 09:42 PM.
Reason: Clarity.
|
|
|
|
09-20-2009, 11:59 PM
|
#2
|
|
Senior Member
Registered: Feb 2004
Location: Chicago
Distribution: CentOS
Posts: 1,180
Rep:
|
What is the VM software here? Virtuozzo? Xen?
|
|
|
|
09-21-2009, 03:34 AM
|
#3
|
|
LQ Newbie
Registered: Sep 2009
Posts: 11
Original Poster
Rep:
|
it is
VMware Infrastructure Web Access
|
|
|
|
09-21-2009, 06:57 AM
|
#4
|
|
Senior Member
Registered: Feb 2004
Location: Chicago
Distribution: CentOS
Posts: 1,180
Rep:
|
Quote:
Originally Posted by woshka
it is
VMware Infrastructure Web Access
|
Haven't used that one, sorry.
|
|
|
|
09-21-2009, 07:27 AM
|
#5
|
|
LQ Newbie
Registered: Sep 2009
Posts: 11
Original Poster
Rep:
|
I think it is
Virtuozzo
|
|
|
|
09-21-2009, 07:31 AM
|
#6
|
|
Member
Registered: Dec 2008
Location: Germany/Poland
Distribution: CentOS / Debian / Solaris / RedHat
Posts: 236
Rep:
|
What is mean "go down" ?
Not reachable by any service (ssh, www, mysql, ftp ) ?
|
|
|
|
09-21-2009, 07:35 AM
|
#7
|
|
LQ Newbie
Registered: Sep 2009
Posts: 11
Original Poster
Rep:
|
the main server is rechable
but the vps on it wont be accessible by ssh http
and after 1 min or 2 that the load become alitle lower as I login to ssh I would see that the load is 17 or so
the last time was 10 miniuts ago that this happened
in the vmware I saw that this vps inspite of having high load , the cpu usage was 20% and the ram was only 700MB of 2 gig
|
|
|
|
09-21-2009, 07:40 AM
|
#8
|
|
Member
Registered: Dec 2008
Location: Germany/Poland
Distribution: CentOS / Debian / Solaris / RedHat
Posts: 236
Rep:
|
First, check if Your system doesnt use too much SWAP.
I suggest to use htop instead of top. Top is old fashion, not readable something...
http://htop.sourceforge.net/
What kind of services You have running on the guest server with centos ?
What kind of service You have running on the host ?
|
|
|
|
09-21-2009, 08:01 AM
|
#9
|
|
Senior Member
Registered: Feb 2004
Location: Chicago
Distribution: CentOS
Posts: 1,180
Rep:
|
Quote:
Originally Posted by dlugasx
First, check if Your system doesnt use too much SWAP.
I suggest to use htop instead of top. Top is old fashion, not readable something...
http://htop.sourceforge.net/
What kind of services You have running on the guest server with centos ?
What kind of service You have running on the host ?
|
If he has 8 gigs of ram and only 3 vps servers he probably isn't using any swap.
|
|
|
|
09-21-2009, 08:01 AM
|
#10
|
|
LQ Newbie
Registered: Sep 2009
Posts: 11
Original Poster
Rep:
|
I have installed the htop yesterday
apche mysql and what needs to be run on a hosting server with WHM cpanel
the load is in normal state at the moment
it is 0.52
but in a time it go to mor than 10 and not accessible
|
|
|
|
09-21-2009, 08:02 AM
|
#11
|
|
Senior Member
Registered: Feb 2004
Location: Chicago
Distribution: CentOS
Posts: 1,180
Rep:
|
Quote:
Originally Posted by woshka
I think it is
Virtuozzo
|
Run this and check the failed column:
Code:
cat /proc/user_beancounters
|
|
|
|
09-21-2009, 08:19 AM
|
#12
|
|
LQ Newbie
Registered: Sep 2009
Posts: 11
Original Poster
Rep:
|
[root@nd11225 ~]# cat /proc/user_beancounters
cat: /proc/user_beancounters: No such file or directory
[root@nd11225 ~]#
|
|
|
|
09-21-2009, 08:23 AM
|
#13
|
|
Senior Member
Registered: Feb 2004
Location: Chicago
Distribution: CentOS
Posts: 1,180
Rep:
|
Quote:
Originally Posted by woshka
[root@nd11225 ~]# cat /proc/user_beancounters
cat: /proc/user_beancounters: No such file or directory
[root@nd11225 ~]#
|
If you don't have that file, it must not be Virtuozzo.
|
|
|
|
09-21-2009, 09:28 AM
|
#14
|
|
Member
Registered: Dec 2008
Location: Germany/Poland
Distribution: CentOS / Debian / Solaris / RedHat
Posts: 236
Rep:
|
Put this script to Your root directory in the VPS Centos.
http://amos.freeshell.org/userbeans.sh
next execute it using this command (root):
userbeans.sh +a
and please past here result of that script.
Dont worry it will show only reserved resources for CentOS.
|
|
|
|
09-21-2009, 09:35 AM
|
#15
|
|
LQ Newbie
Registered: Sep 2009
Posts: 11
Original Poster
Rep:
|
root@linux [~]# wget http://amos.freeshell.org/userbeans.sh
--09:39:44-- http://amos.freeshell.org/userbeans.sh
Resolving amos.freeshell.org... 192.94.73.30
Connecting to amos.freeshell.org|192.94.73.30|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11681 (11K) [application/x-sh]
Saving to: `userbeans.sh'
100%[==================================================================================================== ================>] 11,681 10.5K/s in 1.1s
09:39:45 (10.5 KB/s) - `userbeans.sh' saved [11681/11681]
root@linux [~]# userbeans.sh +a
-bash: userbeans.sh: command not found
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:29 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|