memory

Largest Heap used in a managed environment? (.net/java)

What is the largest heap you have personally used in a managed environment such as Java or .NET? What were some of the performance issues you ran into, and did you end up getting a diminishing returns the larger the heap was? ...

How can I debug heap errors in a C# class library?

I'm getting a heap corruption error in a C# library module I'm calling through COM in a C++ app. The specific error is: HEAP: Free Heap block 4b61bb8 modified at 4b61be8 after it was freed ... This may be due to a corruption of the heap, and indicates a bug in [app].exe or any of the DLLs it has loaded. The top of the cal...

Weird SQL Server memory errors after upgrading to 64-bit

We've just "upgraded" our production database server from 32-bit to 64-bit. It's running SQL Server 2005 Standard on Windows Server 2003. During the night after the upgrade the server was unavailable for nearly an hour - client requests were timing out. The problem then seemed to fix itself. The only clue I have as to the problem is what...

Windows swapping redundantly?

This may not be strictly programming related but more OS-structure related. Running Vista 32 bit on a brand new laptop with 3GB of memory, Running idle the system consumes about 40% of its memory. Other then the fact that this is outrageous on its own right, the OS should be able to fit all of the processes nicely into memory and not ne...

Configuring python

Hi, I am new to python and struggling to find how to control the amount of memory a python process can take? I am running python on a Cento OS machine with more than 2 GB of main memory size. Python is taking up only 128mb of this and I want to allocate it more. I tried to search all over the internet on this for last half an hour and f...

What are the advantages of memory-mapped files?

I've been researching memory mapped files for a project and would appreciate any thoughts from people who have either used them before, or decided against using them, and why? In particular, I am concerned about the following, in order of importance: concurrency random access performance ease of use portability ...

Why is Erlang crashing on large sequences?

I have just started learning Erlang and am trying out some Project Euler problems to get started. However, I seem to be able to do any operations on large sequences without crashing the erlang shell. Ie.,even this: list:seq(1,64000000). crashes erlang, with the error: eheap_alloc: Cannot allocate 467078560 bytes of memory (of type ...

Set Windows process (or user) memory limit

Is there any way to set a system wide memory limit a process can use in Windows XP? I have a couple of unstable apps which do work ok for most of the time but can hit a bug which results in eating whole memory in a matter of seconds (or at least I suppose that's it). This results in a hard reset as Windows becomes totally unresponsive an...

How to do memory profiling on remote java web application

I know we can use tools like JProfiler etc. Is there any tutorial on how to configure it to display the memory usage just by remote monitoring? Any idea? ...

How do I discover what is in the permanent generation

Given a heapdump or a running VM, how do I discover what the contents of the permanent generation is ? I know about 'jmap -permstat' but that's not available on Windows. ...

How to detect possible / potential stack overflow problems in a c / c++ program?

Is there a standard way to see how much stack space your app has and what the highest watermark for stack usage is during a run? Also in the dreaded case of actual overflow what happens? Does it crash, trigger an exception or signal? Is there a standard or is it different on all systems and compilers? I'm looking specifically for Win...

Is there a memory limit for a single .NET process

We are currently thinking of building a cache-system to hold data pulled out of an SQL database and make it available to a couple of other applications (website, webservice, etc). We imagine the cache to be running as a windows service and basically consist of a smart dictionary which holds the cache entries. My question is, is there a l...

When does a Windows process run out of memory?

Under Windows Server 2003, Enterprise Edition, SP2 (/3GB switch not enabled) As I understand it, and I may be wrong, the maximum addressable memory for a process is 4GB. Is that 2GB of private bytes and 2GB of virtual bytes? Do you get "out of memory" errors when the private byte limit or virtual byte limit is reached? ...

Memory in SWF (Flash Player)

Are there any limitations on the amount of memory that the flash player can use? If you have a swf that over time gets a lot of data from the server, then more and more data will be kept in memory... Is there a limitation on this? Thx, Lieven Cardoen ...

Why use boolean instead of char?

Hi, This is a silly question but why does a Boolean take up 4 bytes and a char take up 2 in the .NET framework? It makes me wonder if I should start using chars like a boolean to save memory in large apps. ...

Exact state of committed memory in java

Im curious what the exact meaning of "committed" memory is when the value is queried from the MemoryUsage class. That class explains it as "committed represents the amount of memory (in bytes) that is guaranteed to be available for use by the Java virtual machine." Does this mean that the memory is in use by the jvm process and NOT ava...

How to read from a memory mapped I/O port in .Net?

Can standard pointers in .Net do this? Or does one need to resort to P/invoke? Note that I'm not talking about object references; I'm talking about actual C# pointers in unsafe code. ...

From what Linux kernel/libc version is Java Runtime.exec() safe with regards to memory?

At work one of our target platforms is a resource constrained mini-server running Linux (kernel 2.6.13, custom distribution based on an old Fedora Core). The application is written in Java (Sun JDK 1.6_04). The Linux OOM killer is configured to kill processes when memory usage exceeds 160MB. Even during high load our application never go...

How can you tell whether a file is being cached in memory in linux?

Essentially my question is, does anyone know of a utility for inspecting the buffer cache in linux? ...

What can perform Cheat-Engine like tasks in Linux?

In short, how can I search, view, and modify in-memory values in linux, preferably as easily/simply as possible. Like this. ...