Solved

logon system and memory problem

Posted on 2006-10-27
4
243 Views
Last Modified: 2010-04-22
Hi all experts,

Please advice me some actions to monitor memory of the red hat enterprise operating system. My system consists of tomcat, struts application, some daemons, nodemonitor.
I think it has got a lot processes, I do not know what exactly they are. And I also do not know what cause out of memory error. Please help

Thank you so much
Duy Tan
0
Comment
Question by:tanphuongmy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 30

Accepted Solution

by:
Kerem ERSOY earned 250 total points
ID: 17823923
Hi,

Since you are using Tomcat, struts applications etc. we should first determine who is causing this "out of memory" error. It seems that this is a Java error and to correct it you must modify the heap size settings of your Tomcat Application container.

When you're starting tomcat it launches an application container with defaults. Specify the JVM heap size in $TOMCAT_HOME/bin/tomcat.sh. You can specify '-Xmx256m -Xms128m' as part of TOMCAT_OPTS. That'll set your max/min JVM heap size to 256/128MBs, for example.

FYI : you can see the system memory usage with one of these comands:

To see the memory please issue:
 free
or  
 cat /proc/meminfo

top and ps also displays memory usage of each process.

Cheers,
K.

 





0
 
LVL 11

Assisted Solution

by:kblack05
kblack05 earned 250 total points
ID: 17829338
You may also wish to look at the output of 'top'

top

or

top -b -n 1 | less

Also check 'lsof'

man lsof

For example to see all processes which have a port bound in memory use

lsof -i -P
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello EE, Today we will learn how to send all your network traffic through Tor which is useful to get around censorship and being tracked all together to a certain degree. This article assumes you will be using Linux, have a minimal knowledge of …
Fine Tune your automatic Updates for Ubuntu / Debian
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Suggested Courses

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question