Solved

JVM memory usage

Posted on 2009-07-11
7
497 Views
Last Modified: 2012-05-07
Hi: There!

I have tomcat and MYSQL running in same machine. My OS is Linux Ubuntu. I try to see how big memory consumption by MYSQL and JVM(tomcat). My stratergy is to use: free -m to check how big memory is used by both of them. Then I try to check tomcat JVM's conumption. After that, I also could know the memory consumption of database. But I do not know how to check JVM memory consumption. Could someone tell me some solution or are there better way?
0
Comment
Question by:JianJunShen
[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
  • 2
7 Comments
 
LVL 92

Assisted Solution

by:objects
objects earned 400 total points
ID: 24829964
top will show memory usage by all processes, the RES column is the one of interest to you.
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 100 total points
ID: 24829967
top will show you. Look for the java process
0
 
LVL 92

Assisted Solution

by:objects
objects earned 400 total points
ID: 24829993
Its most likely tomcat thats your problem.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 92

Assisted Solution

by:objects
objects earned 400 total points
ID: 24830001
and be aware that its memory usage will grow over time so check its usage at startup as well as after it has been nrunning for a decent amount of time.
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 100 total points
ID: 24830022
If you want something a little friendlier, try htop:

http://htop.sourceforge.net/
0
 
LVL 92

Accepted Solution

by:
objects earned 400 total points
ID: 24830029
this will give you the usage

ps aux | awk '{print $4"\t"$11}' | sort | uniq -c | awk '{print $2" "$1" "$3}' | grep java

0
 

Author Comment

by:JianJunShen
ID: 24830036
Thanks such excelllent answers. I highly appreciated to all.
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

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This video teaches viewers about errors in exception handling.

729 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