[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

Cannot locate server memory bog problem

Asked by the_hero in Linux, Apache Tomcat Application Server, Apache Web Server

Tags: apache, tomcat, linux

Our server keeps running out of memory.  We cannot find the source of the memory hog.  We have to reboot mulitple times a day.  Often the images or different peices of the sites on the server don't display or timeout before displaying.

This is what I get if I enter    free -m    in my SSH client.

             total       used       free     shared    buffers     cached
Mem:          7949       7894         55          0         86       2093
-/+ buffers/cache:       5714       2235
Swap:        12284       3474       8809

This is what I get if I enter     df -h     in my SSH client.

Filesystem            Size  Used Avail Use% Mounted on
/dev/vzfs              10G  3.0G  7.1G  30% /


I have 10 gig of hard drive space on a virtual dedicated server.
My Base Bandwidth is 500 gb
I have 512 MB of RAM Guaranteed, 2GB Bursted
Operating Sytem is: Linux - CentOS 5
Bandwidth Usage: Allowed 500GB, Used 1GB

this is what I get if I enter     top    in my SSH client.

top - 14:49:03 up 12 min,  1 user,  load average: 0.00, 0.02, 0.02
Tasks:  39 total,   2 running,  37 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.1% us,  0.1% sy,  0.0% ni, 98.3% id,  1.5% wa,  0.0% hi,  0.0% si
Mem:   8140592k total,  8103408k used,    37184k free,    71136k buffers
Swap: 12578884k total,  3557504k used,  9021380k free,  1904244k cached

I need help locating the cause of my memory issues.  I have one large Java application that sits on the tomcat.  Outside of that I have several PHP scripts such as wordpress blogs and such that access the same database as the java ap does.

I should have plenty of memory for this type of server, but it bogs down easily and runs out of memory.

Let me know if you need any more information.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
Below is a bit some information that my programming consultant sent me in regards to the same problem.
 
I was able to get some interesting information about the server's memory conditions immediately before the "freezing" took 
place and immediately after the server was booted (before Tomcat was even started).  I have attached it as a txt file because 
if I just copy and paste the info, it doesn't line-up in the correct columns.  If you take a look, our memory state is almost 
exactly the same before and after.  The issues with the server are memory related, but it doesn't look like they have anything 
to do with the web application.
 
 
Seconds before the server started denying malloc requests:
 
[]# free -m
             total       used       free     shared    buffers     cached
Mem:          7949       7913         36          0         72       1926
-/+ buffers/cache:       5914       2035
Swap:        12284       2945       9338
 
[]# top
top - 11:07:14 up  1:02,  1 user,  load average: 0.05, 0.02, 0.00
Tasks:  45 total,   1 running,  44 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.0% us,  0.0% sy,  0.0% ni, 100.0% id,  0.0% wa,  0.0% hi,  0.0% si
Mem:   8140592k total,  8117700k used,    22892k free,    74380k buffers
Swap: 12578884k total,  3015980k used,  9562904k free,  1914280k cached
 
 
 
Seconds after the server came back up from a power cycle (before Tomcat was running):
 
[ ~]$ free -m
             total       used       free     shared    buffers     cached
Mem:          7949       7920         29          0         78       2211
-/+ buffers/cache:       5630       2319
Swap:        12284       2945       9338
 
[ ~]$ top
top - 11:26:00 up 1 min,  1 user,  load average: 0.03, 0.01, 0.00
Tasks:  33 total,   1 running,  32 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.0% us,  0.0% sy,  0.0% ni, 100.0% id,  0.0% wa,  0.0% hi,  0.0% si
Mem:   8140592k total,  8118076k used,    22516k free,    80788k buffers
Swap: 12578884k total,  3015948k used,  9562936k free,  2277184k cached
[+][-]12/09/08 02:05 PM, ID: 23134294Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12/09/08 03:35 PM, ID: 23134964Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12/09/08 03:46 PM, ID: 23135040Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12/09/08 03:51 PM, ID: 23135077Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Linux, Apache Tomcat Application Server, Apache Web Server
Tags: apache, tomcat, linux
Sign Up Now!
Solution Provided By: objects
Participating Experts: 2
Solution Grade: A
 
[+][-]12/09/08 04:42 PM, ID: 23135365Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12/10/08 02:33 AM, ID: 23137639Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12/10/08 08:04 AM, ID: 23140067Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12/10/08 12:16 PM, ID: 23142513Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12/10/08 09:04 PM, ID: 23145883Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12/10/08 10:31 PM, ID: 23146217Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12/11/08 12:33 AM, ID: 23146574Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12/12/08 09:43 AM, ID: 23159287Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12/12/08 11:20 AM, ID: 23160133Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12/12/08 11:28 AM, ID: 23160210Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12/13/08 03:00 AM, ID: 23163478Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]12/15/08 12:18 PM, ID: 23177328Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625