?
Solved

Java alerts bloating memory

Posted on 2012-03-22
2
Medium Priority
?
329 Views
Last Modified: 2012-08-13
Anybody has a way of setting a trigger for JAVA alerts on bloating the memory ?
0
Comment
Question by:leew781
2 Comments
 
LVL 47

Expert Comment

by:for_yan
ID: 37753815
You can determine the memory in Java in this way:
see this link
http://www.codebeach.com/2008/02/determine-available-memory-in-java.html

long maxMemory = runtime.maxMemory();  
long allocatedMemory = runtime.totalMemory();  
long freeMemory = runtime.freeMemory();  

So you can probably set up alerts by checking the free memory, if that is what you mean
0
 
LVL 7

Accepted Solution

by:
gudii9 earned 1500 total points
ID: 37754241
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month13 days, 17 hours left to enroll

809 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