Which tools can I use to know the life-time or run-time of a program(from the beginning until the program ends)? I also want to know how much memory that program consumes from start to end. The program is written in Java and I'm running it on Windows XP.
...
I've used the Activity Monitor and Object Allocations tools in xcode to check out my application and the sample facebook login app and what I've found is that they all of them eat about 6-10M (!) the first time the user visits the page. I assume the issue is page content being cached although I think that this code:
- (NSCachedURLRespo...
I'm using Access 2003 on a duo-core machine with 4GB of RAM, running Windows XP (Service Pack 3) [5.1.2600]
Periodically, I get an error msg "There isn't enough memory to perform this operation. Close unneeded programs and try the operation again."
A check of Task Manager indicates that there is plenty of free memory. Closing other op...
int main(){
int * a = new int[10];
int * b = new int[10];
for(int i = 0 ; i < 10; i++)
{
a[i] = 1;
b[i] = 1;
}
for(int i = 0 ; i < 10; i++)
{
a[i] = b[i]; //each a[i] is allocated 4 bytes on heap
//when we copy b[i] into a[i] do we loose
//the reference...
I want to write a small amount of memory inside of a specific address range of my process.
Example
amount of memory to allocate: 5 bytes
lower bound for address: 0x 00 40 00 00
upper bound for address: 0x 00 A0 00 00
The range in which I want to write is already allocated by the process. Therefore, I can't simply allocate new mem wi...
This is a homework problem that I have. I have been doing some research and couldn't find much. I did find a powerpoint but could not make much sense of it due to lack of text.
http://xen.org/files/xensummit_tokyo/19_KoichiOnoue_en.pdf
(Specifically, what is gPa and hPa?)
I was wondering if anyone could point me in the correct directi...
My integers in Ruby (MRI) refuse to overflow. I've noticed the class change from fixnum to bignum but I'm wondering how this is modeled and what sort of process ruby uses to perform arithmetic on these massive integers. I've seen this behaviour in SCHEME as well as other environments.
I ask because I'd like to implement something simil...
When dealing with large collections, which of the following approaches is better?
Class SimpleObject with only fields/properties and class SimpleObjectController that contains all the method implementations required by SimpleObject. At runtime, I build a collection of SimpleObjects, instantiate one SimpleObjectController and call it's m...
Can accessing (for read only) memory freed cause an access violation, and, if so, under what circumstances?
...
One of the following pieces of code generates a memory leak, any idea which part?
1)
private Deque<Snapshot> snapshots = new LinkedList<Snapshot>();
Iterator<Snapshot> i = world.getSnapshots().descendingIterator();
while (i.hasNext()) {
Snapshot s = i.next();
if (curTime - s.getTimestamp() > 60000) {
i.remove();
...
Hi,
while using Eclipse on a Mac (2GB RAM) i have encountered the following problem:
whenever i try to create an array which exceeds 8384896 bytes, i get segmentation faults. The following program would execute:
#include <stdio.h>
main()
{
double x[1048112];
printf("sizeof(x) = %li", sizeof(x));
}
and the output would be (as...
Why do computers have byte-addressable memory, and not 4-byte-addressable memory (or 8-byte-addressable memory for 64bit)? Yeah, I see how it could be useful sometimes, it just seems inelegant and excessive. Are the advantages substantial, or is it really just because of legacy?
...
Yesterday, I try to start eclipse 3.4 by click eclipse.exe (in eclipse folder), and run normally.
Then yesterday night, I do windows update. Today, when I try to run eclipse 3.4, it has error. The error message you can find at here SCREENSHOT
I use windows xp sp2, and java 1.5 update 14.
I don't know how to fix that, so I uninstalled ...
I'm developing a VC++ NT service that is meant to operate continuously for many months. It uses VC++ runtime heap intensively. Clearly heap fragmentation can at some point cause it malfunctioning (thinking it's out of memory).
What tests can I run on my service to estimate the degree it is prone to heap fragmentation?
...
This code...
NSString * s = [[NSString alloc] initWithString:@"Hello, World"];
s = s.lowercaseString;
NSLog(@"%@", s);
...allows the use of dot notation but is strongly typed.
This code...
id s = [[NSString alloc] initWithString:@"Hello, World"];
s = [s lowercaseString];
NSLog(@"%@", s);
... is weakly typed and requires use of sq...
I want to pass a big char* from cpp to .Net (preferably using COM).
What is the best way (in terms of memory)?
If I use CComBSTR it takes a lot of memory both when creating the BSTR in CPP and especially when moving it to .Net inside the COM call.
...
Heap fragmentation can cause a server application that is expected to run continuously for many months to suddenly start malfunctioning thinking that it's out of memory.
Let's assume that I've done my best to minimize runtime heap fragmentation in my VC++ server application but still it builds up and causes problems. I could for example...
The situation is that I can import a file successfully. But when i add data to different tables thru functions I get this error. Are their ways to solve this problem. Since Ive seen in other forums that it is a performance/memory issue. But the server has almost 8GB of ram.
what can be the solution to this?
...
I have BlazeDS running in an instance of Coldfusion 8. A flex chat app that acts as both a producer and consumer with 70 long polling requests allowed, moving to client polling with a polling interval of 2 seconds. jRun metrics logging is enabled. The server is set up with a max heap size of 1200mb, 210 max jrun threads and 150 max simul...
Hi
I'm developing a new application for the iphone.
I want to understand something - does the memory that my application uses shared with other applications?
What if an application causes memory leaks, does it effect the device performances after the user closes the application?
thanks.
...