|
I've been running into a peculiar issue with certain Java applications in the HP-UX environment.
The heap is set to -mx512, yet, looking at the memory regions for this java process using gpm, it shows it using upwards of 1.6GBs of RSS memory, with 1.1...
Started by zxcv on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
In general, only the data in Java objects is stored on the Java heap, all other memory required contiguous chunk allocated....
By the Java VM is allocated from the "native" or "C" heap (in fact, the Java heap itself is just one.
|
|
I know there is no "right" heap size, but which heap size do you use in your applications (application type, jdk, os)?
Started by bwalliser on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
Major collection with a large heap size can take >10 mintues (on unoptimized GC applications).....
A native application can usually use as much heap as it wants, until it runs out of virtual address space large heap sizes.
|
|
Hi
Is it possible to view the heap and stack during debugging?
Started by pkolodziej on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
For native C++, the Autos window displays function return values as well.
And for the Heap and the preceding line of code.
You can view the function or procedure calls that are currently on the stack .
|
Ask your Facebook Friends
|
I have a .NET/native C++ application. Currently, the C++ code allocates memory on the default heap which persists for the life of the application. Basically, functions/commands are executed in the C++ which results in allocation/modification of the current...
Started by STingRaySC on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
A heap is created by lower-level system....
It is a user-level memory manager.
Heap is a sort of big chunk of memory.
Just an idea!
From MSDN's Heap to the system.
It was a while ago), and you might be able to take advantage of it .
|
|
We have weird memory leak problem with a Java process running in linux has an ever growing swap usage. So naturally we looked at the heap dump and also used a profiler to monitor it over a period of time. We found that
1) The number of threads does not...
Started by erotsppa on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Doesn't the case where 1) the process's heap space does not change but 2) the swap usage does if a Java process's own heap usage does not change but the swap usage does, that would seem could be leaking something in native memory,....
|
|
Is there a way in the .NET API to iterate on the managed objects present in the managed heap?
We would like to add a routine at some points in our program which checks the presence of some objects in the managed heap.
Started by sthiers on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Type "!traverseheap –xml heap.xml" to dump the heap of your process to heap.xml the heap to a file can take....
You’ll be using WinDbg.EXE, the native Windows debugger, and SOS.DLL of Strike offers.
Devtools/debugging/default.mspx
b.
|
|
I need to detect whether the file I am attaching to an email is exceeding the server limit. I am not allowed to increase the JVM heap size to do this since it is going to affect the application performance.
If I don’t increase the JVM heap size, I will...
Started by JavaDoe on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
You can do this by calling map.
However that sounds a painful way without actually reading / allocating space in the heap.
You could allocate the memory natively via native code and JNI.
|
|
Are there any heap data structure implementations out there, fibonacci, binary, or binomial?
Reference: These are data structures used to implement priority queues, not the ones used to allocate dynamic memory. See http://en.wikipedia.org/wiki/Heap_(data...
Started by Dave Moore on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
I found two implementations of binary heap ( link 1 , link 2 ) and one implementation of binomial heap in f# ( link.
This link might help you
I don't know of any native framework implementation.
|
|
Is the a VS2005 C++ compiler flag like the Xmx???M java flag so I can limit the heap size of my application running on Windows.
I need to limit the heap size so I can fill the memory to find out the current free memory. (The code also runs on an embedded...
Started by mrlinx on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You can set....
Alternatively block.
The heap size-provided malloc() or new operator) you can artificially limit the heap size that way.
It can do a lot of other interesting things with the heap of native applications.
|
|
Hi all members of stackoverflow, I have a question
What happend when I declare a variable inside a method, for example.
void myMethod() { Ship myShip = new Ship(); }
Where is allocated myShip reference, in stack or in the heap ?
I think in stack but I...
Started by iberck on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
When you create a new object are allocated on the heap.....
However, the implementation of allocable memory isn't quite like the way the heap is implemented in the C/C++ model.
For the object is allocated in what passes for the heap.
|