Solved

logon system and memory problem

Posted on 2006-10-27
4
245 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

Congratulations! You’re Certified – Now What?

Starting a new career can be overwhelming. Becoming certified in your field of expertise is a great start, but where do you go from here?  Here are some tips to help you on your career journey.

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
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

617 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