memory

java.lang.out of memory error

We are cbse 12th grade ip students.. we are facing this exception and we do not know how to rectify this exception. run: Exception in thread "Image Fetcher 1" java.lang.OutOfMemoryError: Java heap space at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:41) at java.awt.image.Raster.createPackedRaster(Raster.java:...

How to monitor memory for java thread stacks

Hi, While running a JEE application on a 32 bit jvm on Solaris x86 I get an OutOfMemoryError:Cant create native thread (or something like that). This is because the jvm does not have enough memory for the stack of the new thread as far as I understand it. I use both JConsole and VisualVM 1.3 to monitor the application but I do not know ...

Is it possible to get the pointer the continous memory fragment in a std::vector<char> in C++?

I moved my code to use std::vector<char> instead of char *mem = malloc(...) but now I am facing a problem that I can only access the vector data through operator [] but not via a pointer. I can't write stuff like: std::vector<char> data; fill_data(data); char *ptr = data; Before I could do this: char *data = malloc(100); fill_data2(...

howto capture stack corruption on 64bit app?

my 64bit app (Windows) is having a crash. I have not been able to make anything by either code examination or by examining the state in debugger. (VS2008) with some instrumented code that performs periodic checks of the values object instance . This object that appears to be in an inconsistent state and generates an access violation whe...

Can I release an object which was added to a NSMutableArray or does this affect a crash?

Hi, i've got one question about the memory management of the NSMutableArray. I create an object of my custom class and add this object to a NSMutableArray. Is this automatically retained, so that I can release my created object? Thanks! ...

How to avoid java.lang.OutOfMemoryError: PermGen space in Netbeans

Hey, I am developing on Web Application in Netbeans6.8 and Using Jboss server to Deploy my application. I am able to run the project properly but after some time i get tgis error java.lang.OutOfMemoryError: PermGen space : after that i have to restart my JBoss server. Some time i need to restart my Netbeans IDE Can any one tell me t...

Does it matter when super is called in dealloc?

- (void)dealloc { [super dealloc]; [receivedData release]; receivedData = nil; } or - (void)dealloc { [receivedData release]; receivedData = nil; [super dealloc]; } ...

[searchbar becomeFirstResponder] Memory heavy ?

While I was tracking down memory usage I noticed that [searchbar becomeFirstResponder]; uses up to 4mb ram. Now Im asking why? Is that normal? Im kinda confused about this. When commenting that line of code the memory usage of my App is, yes, - 3-4 mb. ...

How Do I Find the Protection on a Given Memory Page?

I am trying to make some memory executable (on Mac OS 10.6), and I suspect that mprotect() is failing silently. Given the address of a page of memory, how can I check that it is in fact marked executable? ...

What to consider with regards to alignment when designing a memory pool?

I'm working on a memory pool for a small game engine. The main use will be as a segregated storage; a pool contains object of a specific type and size. Currently the pools can be used to store anything, but allocations will be done in blocks of a specific size. Most of the memory need will be allocated at once, but "overgrowth" can be e...

How to programtically monitor Windows swap space usage in real time?

I can write a program by using wmi to monitor the space usage of a hard drive. What should I do about swap memory usage? ...

Is it ok to autorelease UIViewControllers?

I have some view controllers: StockTwitsTVViewController* stvViewController = [[[StockTwitsTVViewController alloc] initWithNibName:@"StockTwitsTVViewController" bundle:nil]autorelease]; UINavigationController *stvNavController = [[UINavigationController alloc] initWithRootViewController:stvViewController]; stvNavController.tabBa...

JVM and Memory Usage - JRun server not using full PSPermGen allocation?

Hi there I'm trying to understand why out ColdFusion 9 (JRun) server is throwing the following error: java.lang.OutOfMemoryError: requested 32756 bytes for ChunkPool::allocate. Out of swap space? The JVM arguments are as follows: -server -Dsun.io.useCanonCaches=false -XX:MaxPermSize=192m -XX:+UseParallelGC - I had jconsole runni...

Learning New Skills and Keeping Up to Date: Advice on Memory Retention

I'm having a difficult time retaining the programming skills I'm actively trying to learn in an effort to apply for a junior developer position. What I'm finding is that I can easily master isolated topics (for example, details about how Java's Container classes work and the different ways to sort a given container), but I find that whe...

App crashes when I rotate phone for the first time

App only crashes the first time i rotate my phone (EXC_BAD_ACCESS). Anytime after its all gravy. It only crashes on device too. Simulator everything is good. #import "ImageViewController.h" #define degreesToRadian(x) (M_PI * (x) / 180.0) #define ZOOM_VIEW_TAG 100 #define ZOOM_STEP 1.5 @interface ImageViewController (UtilityMethods) - (...

PHP Memory exhausted

Any ideas why I'm getting .... Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 9792 bytes) in /home/frich/public_html/creation/systemc/sMain/upload_image.php on line 77 on the following line $oldImage = imagecreatefromjpeg($img); The php grabs an image from a HTML form and resizes it. Wor...

Android OpenGL memory usage profiling?

I'm struggling with some issues which I believer are memory related with my Android app, yet I can't seem to figure out how to get information on how much memory my app is using. I have a suspicion that some textures I am loading are not getting cleared by the garbage collector, but I want to be able to test before I start blindly makin...

Is the Apple NSURLConnection Documentation Wrong?

// Create the request. NSURLRequest *theRequest=[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.apple.com/"] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:60.0]; // create the connection with the request // and start loading the data NSURLConnection *theConnectio...

Find highest free virtual memory with POSIX API

As the title says, how can I find a free block to be allocated at the highest virtual address using only the POSIX API? ...

How to diagnose EXC_CRASH?

A tester sent this crash file: Not sure what an EXC_CRASH is. UPDATE: I can randomly replicate it on device (never in simulator) when rotating my phone. Here is my rotation code: // Override to allow orientations other than the default portrait orientation. - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfac...