Solved

logon system and memory problem

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Solaris folders to exclude from AV scan 11 111
Need help setting up kerberos 2 40
CentOS 6.7 User Audit 3 102
can you prevent users from being able to access a command prompt? 10 108
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
Fine Tune your automatic Updates for Ubuntu / Debian
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

740 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