memory-usage

Prevent Recursive jQuery AJAX incrementing browser memory usage

I'm using recursive jQuery AJAX to callback values from the server every second. However, this seems to be incrementing the amount of memory usage my browser has. I'm using FireFox and I have FireBug installed which I believe to be the culprit as this logs every callback in its Console. My first question is, am I right in saying this i...

Dynamically Allocate Cache Size to Alleviate HeapSpace Error

We have a collection of objects which grows quite large over time. We have implemented a caching strategy to help alleviate this, however we are still running out of Heap Space at run time - if enough memory isn't allocated at startup. Is there a standard mechanism to reduce the size of this cache at runtime to remove these OutOFMemory...

Which implementation of List to use?

In my program I often use collections to store lists of objects. Currently I use ArrayList to store objects. My question is: is this a best choice? May be its better to use LinkedList? Or something else? Criteria to consider are: Memory usage Productivity Operations which I need are: Add element to collection Iterate through the...

In Linux, how to tell how much memory processes are using?

I think I may have a memory leak in my LAMP application (memory gets used up, swap starts getting used, etc.). If I could see how much memory the various processes are using, it might help me resolve my problem. Is there a way for me to see this information in *nix? ...

Did anyone else get a deeper understanding about pointers when learning linked lists?

I'm a student at the University and I'm taking the Data Structures class. When learning linked lists and doubly linked lists, did you guys feel you learned a deeper understanding of pointers, dynamic memory allocation, and memory usage? I just created my first linked list(it was actually a doubly linked list) and it seemed to me like a ...

[WP7] How to keep RAM usage below 90MB? (Specially scaling images)

Hi: I'm developing an app for WP7 (VS2010 Express for Windows Phone RTM and WP Emulator), but now im facing a big problem related to memory usage. The app itself has like 12 views, and some of them are reused with different data. It's a newsreader, so the views are mostly listboxes (image thumbnail, stackpanels and textblocks). The fir...

Lua runs out of memory

I've written a complicated lua script which uses the lua sockets library. It reads a list of files from disk, sorts them by date and sends them to a HTTP process. The number of files on disk is around 65K.The memory usage in taskmanager doesn't exceed 200Mb. After quite a while the script returns: lua: not enough memory I print out t...

Performance tuning a client-side heavy webapp & analyzing browser memory usage effectively?

I have a site - http://www.tubeloop.com/ -- that creates YouTube playlists in a loop. The codebase utilizes 3 jQuery plugins i've created - a youtube api wrapper, a youtube player wrapper and a radial menu. The site is a mashup and its extremely heavy on the client-side, as all requests made to YouTube, Facebook and Meebo are all made th...

Install Oracle 11g Database (or 10g) on an old laptop

I'm trying to use an old laptop (Win2000 P3 1.1Ghz 256MB ram) as an oracle database server for a small group project of 3/6 people on my college. I don't need much, just some databases with 2 accounts, 10/15 tables, some views and triggers, however even the simplest database requires 1GB of physical ram (2GB of swap) and the installer re...

Determining HTML5 database memory usage

I'm adding sqlite support to a my Google Chrome extension, to store historical data. When creating the database, it is required to set the maximum size (I used 5MB, as suggested in many examples) I'd like to know how much memory I'm really using (for example after adding 1000 records), to have an idea of when the 5MB limit will be reac...

Process RAM Usage in Visual C++

Guys, I am using GetProcessMemoryInfo function to get the details of a current process in Visual Studio 2008 running on Windows 7. The output is populated in PROCESS_MEMORY_COUNTERS structure with a list of following members. cb PageFaultCount PeakWorkingSetSize WorkingSetSize QuotaPeakPagedPoolUsage QuotaPagedPoolUsage QuotaPeakNonPag...

Java/.NET - reusing values

Do we reduce memory consumption when storing a String value that we use very frequent ? As far as I know, every time we do a "some string" declaration, a new string is constructed, instead of using the address of an existing one with the same value. Am I correct ? (I am not talking here about improving the code maintainability) ...

Memory usage and time for execution for another process using C#?

I need the memory usage and processing time for an application loaded through another application. I am using C#. Currently I am using Process.WorkingSet to get memory usage similarly Process.TotalProcessTime to get time for execution, but it doesn't give any value. So have you make any suggestions? ...

Java Object memory usage - ibm jvm 1.4.2

Is it possible to find memory usage of object in java within application? I want to have object memory usage to be part of debug output when application runs. I don't want to connect using external application to VM. I have a problem that few classes eats up huge amount of memory and causes memory problems, my app gets crash. I need to...

How much processing and memory use does casting take in Java?

Hi all, I am considering whether it is better to have two pointers, one for each object sub class and super, or whether I should just use casting. How much system resources does this use: objectName.functionOne(); ((SubClass) objectName).functionOther(); Is it better than: SuperClass objectA = (SuperClass) getSameInstance(); SubCl...

FileStream and memory usage

I've written the following program which purpose is to create a file of a give size with some random data in it. The program works fine and does what it's suppose to do. However, I don't understand why it consumes 5GB of RAM (see screenshot of my Task Manager). While I am writing the file with random data, I am not creating new objects. ...

How to get make stats in constant memory

I have a function, which creates some random numerical results. I know, that the result will be an integer in a (small, a - b approx 50) range a, b. I want to create a function which execute the above function let's say 1000000 times and calculates, how often the each result appears. (The function takes a random generator to produce the ...

Received memory warning

I am working on an app with xml parser, uiwebview, navigationcontroller, displaying a lot of images on the main controller, that remains in the memory throughout the whole life of the app. I store my data using core data. I tried to figure out the memory footprint of the application since I am getting the following warnings: Received me...

How to determine the actual memory usage of a data structure

In data structures, I know that the size of the structure depends on the internal links from one section to another. Is there a way, aside from JProfiler to tell exactly how much memory is tied up in a particular structure? For example, the class project this semester has to do with applying various structures to a song database. The ...

Getting max resident/working set size of Windows program from CLI, and user & system run times?

On Linux and Mac OS X, I can run a command from the CLI using the "time" command (not the bash shell built-in command time) and get not only the elapsed run time from start to finish, but many other statistics as well. For example on Mac OS X: % /usr/bin/time -lp /usr/bin/wc PS1-01.m4v 6166365 46283357 1532034853 PS1-01.m4v real ...