Skip to content
Advertisement

Tag: heap-memory

UsageMemory threashold in JConsole

I am looking into how to use JConsole to detect memory leaks. I see that in Memory Pool in my MBeans I can define UsageThreashold for my Tenured Generation. So if my application exceeds this threashold the heap memory becomes red in the Memory tab. Question: How does this help? I mean how am I supposed to use this setting

Java Heap and Pass By Value

I am a little confused as to how my Java program is allocating memory. Below is a typical situation in my program. I have an object created on the Heap inside of a class which I pass to other functions inside of other classes. My question(s) are about how the memory is used. When A’s list gets passed to B.bar(),

Would writing a server in 64bit Java be stunted by JVM heapsize / memory?

It looks like 32 bit java program can only use between 1-2 gigs of ram? http://publib.boulder.ibm.com/infocenter/javasdk/tools/index.jsp?topic=%2Fcom.ibm.java.doc.igaa%2F_1vg00014884d287-11c3fb28dae-7ff6_1001.html Could I expect a java program running in 64bit OS to not have this limitation? Answer Could I expect a java program running in 64bit OS to not have this limitation? Yes, it should be fine. However, it makes sense to check on the

Difference between sampling and profiling in jVisualVM

VisualVM has two separate tabs for sampling and profiling. What is the difference between sampling and profiling in VisualVM? Answer Sampling means taking lots of thread dumps and analyzing stack traces. This is usually faster, does not require runtime changes in your bytecode (which may break it), but is also less accurate. Profiling means instrumenting your classes and methods, so

Launching Processing.org App on Linux with Java Xmx

I have an application created with Processing.org and am trying to run it on Linux. Shortly into the app I get a Heap Size error. I am trying to run the app from the command shell with the line java -Xmx512m myAppNameHere but when I do this, I get a message that says “Exception in thread “main” java.lang.NoClassDefFoundError: myAppNameHere/exec” Then

How to manage Heap Space in Java

I’m trying to recursively traverse through my Drive to search some files. The code is working fine when there are limited folders/files but when I target my search to C drive where in I have lots of files it throws Out of Heap memory. Exception in thread “Thread-4” java.lang.OutOfMemoryError: Java heap space Please suggest me some good memory management tricks

Advertisement