memory

BizTalk Memory Usage per item

Hi, I recently began outbalancing our host instance memory usage because we had a lot of throttling problems. Now I used performance counters to view the memory usage of each host instance. And I also used a tool called the MsgBoxViewer to get to see which ports/locations/orchestrations run per host instance. Now I was wondering if the...

Notes field audit trail

I have a memo text type of field in a SQL 2000 database that my users really want to start seeing an audit trail on. No way am I going to store copies of this field. Some of the records they dump in it are so big they run out of space in it already. I could write it myself, but I imagine someone has already written some tool that coul...

Simulating low memory using C++

I am debugging a program that fails during a low memory situation and would like a C++ program that just consumes LOT of memory. Any pointers would help! ...

MSVC9: How do I view a location in memory?

I'm pretty sure I'm overlooking something totally obvious, but I want to view the raw contents of a point in memory under MSVC9, but I can't find a location in the UI where I can punch in a memory address. How can this be done? ...

NSInvocationOperation Memory Problems on iPhone

Hi, I've been experiencing memory problems (the app will run for a couple of iterations, then receive low memory warning and finally be terminated) while working with NSInvocationOperation in a method called repeatedly by a NSTimer. The method will be called every 1/4 of a second and I've narrowed down the source of the problem to the ...

PHP Memory Overflow?

Hi all, Im currently building a php framework... again. I have a class called config. its pretty simple, its called like so: $conf = config::get('general'); $conf is now an array full of config goodies. the class sceleton is like so: final class config { private static $configs = array(); public static function get($name) { ret...

C++ allocating dynamic memory in a function - newbie question

I'm investigating a memory leak and from what I see, the problem looks like this: int main(){ char *cp = 0; func(cp); //code delete[] cp; } void func(char *cp){ cp = new char[100]; } At the //code comment, I expected cp to point to the allocated memory, but it still is a null pointer meaning I never delete the mem...

Is it normal that my Grails application is using more than 200 MB memory at startup?

My Grails application is running in a development environment. I still didn't go into production, but in any case, is it normal that my Grails application is requiring 230 MB at startup only (with an empty bootstrap and no request handled so far)? Do you know why this is the case, how to improve memory usage in development mode and, mos...

firefox cache maximum size ? for adobe tv.

i want to know maximum cache size limit for firefox? when i do about:cache i can directly access videos seen, i usually see adobe tv, so what maximum cache limit?is it unlimited or what? ...

word alignment of 4 byte for XOR operations

Is there any advantage in doing bitwise operations on word boundaries? Any CPU or memory optimization in doing so? Actual problem: I am trying to create XOR of two structure. Lets say structure-1 and structure-2 both of same size 10000 bytes. I leave first few hundreds bytes as it is and then start XOR of 1 and 2. Lets say I start with...

Does accessing a single struct member pull the entire struct into the Cache?

I've been reading Ulrich Drepper's, "What every programmer should know about memory" and in section 3.3.2 Measurements of Cache Effects ( halfway down the page ) it gives me the impression that accessing any member of a struct causes the whole struct to get pulled into the CPU cache. Is this correct? If so, how does the hardware know a...

Objective-C: int value changing without cause

Objective-C: I need help retaining the value of an int. It's changing on me without my command. The original question was: "How do you declare and retain an int?", that was satisfied in another post here: http://stackoverflow.com/questions/1938513 Now I have a problem where an int that was 18 is changing to 2, somehow on its own. Her...

Detect memory intrusion

There are software applications, such as ArtMoney, that edit the memory of other applications. Is there a way to detect when some other application is editing the memory of my application? ...

PhoneStateListener memory leak - android

Hi, I am having issue with memory after running many times my app. java.lang.OutOfMemoryError: bitmap size exceeds VM budget I figure I was leaking memory somehow so I did a DUMP HPROF file and used the MAT tool to figure out what was wrong. It turns out that after running like 5 times the app and quiting, I find 5 instances of my Ac...

java.lang.OutOfMemoryError: bitmap size exceeds VM budget - android

Hi I developed an application that uses lots of images on android. The app runs once, fills the information on the screen (Layouts, Listviews, Textviews, ImageViews, etc) and user reads the information. There is no animation, no special effects or anything that can fill the memory. Sometimes the drawables can change. Some are android r...

How to reduce memory size of Apache CXF client stub objects?

My web service client application uses Apache CXF to generate client stubs for talking to several web services. The generated CXF web service stub objects have quite a large memory footprint (10 - 15 web service objects take more than 64 MB of memory). Is there any way to reduce the CXF object footprint? ...

WPF 3D video memory efficiency

Ill try to explain my situation as best as I can, sorry if it is not too clear... I have a Viewport3D that contains some large 3d rectangles that are like big crystals. When the user click on one of the crystals, I add a new material to the crystal in the spot the use clicked using an ImageBrush. I then iterate over a list of bitmaps (...

iPhone + stringWithUTF8String + memory leaks

Hello, I am using following code in my application to read the string value from database: objPlayer.playerName = [NSString stringWithUTF8String:(char *)sqlite3_column_text(selectstmt, 2)]; When I run the Instruments to find memory leaks it gives me NSCFString leaks at above line. What should I do, please help me. Regards, Pratik ...

Memory alignment of classes in c#?

(btw. This refers to 32 bit OS) SOME UPDATES: This is definitely an alignment issue Sometimes the alignment (for whatever reason?) is so bad that access to the double is more than 50x slower than its fastest access. Running the code on a 64 bit machine cuts down the issue, but I think it was still alternating between two timing (of wh...

-Xms : Initial heap size or minimum heap size?

-Xms is to specify initial heap size or minimum heap size? I see lot of places with lot of different answers. Some like second answer here, say that it is for initial heap and some like here say that its minimum heap size. Or is it that the minimum size itself is the initial size? ...