LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-13-2005, 11:51 AM   #1
bper
Member
 
Registered: Oct 2003
Posts: 64

Rep: Reputation: 15
Need Help Diagnosing a Memory Leak


Hi,

I'm running RedHat 9.0 with 512M RAM. On this box, I run Tomcat 5.019, Cocoon 2.1.4, and Java 1.4.2_04. Cocoon is a servlet running within Tomcat.

When I start my machine, about 104M of the RAM is used when I cat meminfo from /proc.

When I start Tomcat (and thus Cocoon, Java), the meminfo jumps up to about 400M and continues to rise. Eventually, it reaches my RAM limit and Tomcat reports that Cocoon reports an out of memory error.

I need to see what processes are using what amounts of memory and be able to track it over time to see who the culprit is.

What tools would best suit my needs?

Thanks.
 
Old 09-13-2005, 12:00 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
You can use top to track processor and memory usage of every process running on the system.
 
Old 09-14-2005, 06:34 AM   #3
jschrap
LQ Newbie
 
Registered: Sep 2005
Location: Netherlands
Posts: 1

Rep: Reputation: 0
I'm having a similar problem on Suse 9.2
But when I use top and search by M, I see nothing spectacular. How can I find out where all the memory went to? Which process has it?

We've got Jonas "webserver" and oracle running on the server.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory leak?! nyk Programming 10 01-24-2005 07:08 PM
what is memory leak blackzone Programming 6 11-05-2004 10:32 AM
memory leak mdk Mandriva 1 09-17-2004 10:54 AM
possible memory leak?? matt80 Linux - General 2 07-01-2004 11:07 PM
Memory Leak when using memory debugging C program on SuSE SLES8 babalina Linux - Distributions 0 10-06-2003 09:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration