Solved

Java alerts bloating memory

Posted on 2012-03-22
2
308 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 500 total points
ID: 37754241
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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 how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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 …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

830 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