memory-consumption

DataTable memory huge consumption

本秂侑毒 提交于 2019-12-07 05:39:58
问题 I´m loading csv data from files into a datatable for processing. The problem is, that I want to process several files and my tests with the datatable shows me huge memory consumption I tested with a 37MB csv file and the memory growed up to 240MB, which is way to much IMHO. I read, that there is overhead in the datatable and I could live with about 70MB in size , but not 240MB, which means it is six times the original size. I read here, that datatables need more memory than POCOs, but that

Java and exact reference size for objects, array and primitive types

谁说我不能喝 提交于 2019-12-06 03:56:31
问题 I would like to know exactly the real space allocated in memory for an object. I try to explain with some example: using a 64 bit JVM, pointer size should be 8 bytes, so: Object singletest = new Object(); will take 8 bytes to reference the Object plus the size of the Object Object arraytest = new Object[10]; will take 8 byte to reference the position where the array is stored plus 8*10 bytes to store the array plus the size of each Object int singleint = new int; will take just 2 bytes,

How can I know how much memory Eclipse plugins use (separately)

北城余情 提交于 2019-12-04 10:46:20
Is there a way to know how much memory is consumed by each Eclipse plugin separately? Take a heap dump and analyse it with e.g. the Eclipse Memory Analyser . For more information, see Analyzing Equinox Bundle Dependencies with Memory Analyzer I would be quite surprised if this were possible, because you would have to have an unambiguous way of determining which plugin "owned" a particular object on the heap. Eclipse 3.1 has a built-in Memory Monitor (aka Heap Status) Plugin, which is a part of org.eclipse.ui.workbench_3.1.0.jar You have to run Eclipse in debug mode for seeing the monitor in

Java and exact reference size for objects, array and primitive types

核能气质少年 提交于 2019-12-04 08:29:18
I would like to know exactly the real space allocated in memory for an object. I try to explain with some example: using a 64 bit JVM, pointer size should be 8 bytes, so: Object singletest = new Object(); will take 8 bytes to reference the Object plus the size of the Object Object arraytest = new Object[10]; will take 8 byte to reference the position where the array is stored plus 8*10 bytes to store the array plus the size of each Object int singleint = new int; will take just 2 bytes, because int is a primitive type int[] arrayint = new int[10]; will take 8 bytes to reference the position

Python memory consumption on Linux: physical and virtual memory are growing while the heap size remains the same

痴心易碎 提交于 2019-12-04 08:20:24
问题 I'm working on the some kind of a system service (actually it's just a log parser) written in Python. This program should work continuously for a long time (hopefully I mean days and weeks without failures and needs of restart). That's why I am concerned about memory consumption. I put together different information about process memory usage from different sites into one simple function: #!/usr/bin/env python from pprint import pprint from guppy import hpy from datetime import datetime

Best way to measure Memory Usage of a Java Program?

浪子不回头ぞ 提交于 2019-12-04 05:36:09
I'm currently using VisualVM , but the problem I'm having is that I can't save the graphs it generates. I need to report some data about its memory usage and running time, though running time is easy to get with System.nanoTime() . I've also tried the NetBeans profiler but it isn't what I want, since I'm not looking for specific parts that would be slowing it down or anything, so that would be overkill. The biggest problem with it is that it eats up too much processing time. Also doesn't let me capture/transfer the data easily, like VisualVM, at least as far as I can tell. Ideally the best way

Memory consumption of images in iOS Web Application

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 22:48:54
I have a iPad (magazine) web application which displays a set of medium sized (~500kb) images. They're displayed one per view (1024x768), and when swiped another one is displayed. I have three images (previous, current and next) as display:block at the same time while other images are hidden with display:none. Everything works fine on some extent. However, when application has run for some time and larger set (20+) of images has been displayed, the application crashes, mostly on iPad 1. My assumption is this has something to do with memory consumption of device. My question is: what are the

Go memory consumption management

爷,独闯天下 提交于 2019-12-03 05:40:24
问题 I am new to Go and trying to figure out how it manages memory consumption. I have trouble with memory in one of my test projects. I don't understand why Go uses more and more memory (never freeing it) when my program runs for a long time. I am running the test case provided below. After the first allocation, program uses nearly 350 MB of memory (according to ActivityMonitor). Then I try to free it and ActivityMonitor shows that memory consumption doubles. Why? I am running this code on OS X

The memory consumption of hadoop's namenode?

匆匆过客 提交于 2019-12-03 02:30:55
问题 Can anyone give a detailed analysis of memory consumption of namenode? Or is there some reference material ? Can not find material in the network.Thank you! 回答1: I suppose the memory consumption would depend on your HDFS setup, so depending on overall size of the HDFS and is relative to block size. From the Hadoop NameNode wiki: Use a good server with lots of RAM. The more RAM you have, the bigger the file system, or the smaller the block size. From https://twiki.opensciencegrid.org/bin/view

Go memory consumption management

扶醉桌前 提交于 2019-12-02 19:00:35
I am new to Go and trying to figure out how it manages memory consumption. I have trouble with memory in one of my test projects. I don't understand why Go uses more and more memory (never freeing it) when my program runs for a long time. I am running the test case provided below. After the first allocation, program uses nearly 350 MB of memory (according to ActivityMonitor). Then I try to free it and ActivityMonitor shows that memory consumption doubles. Why? I am running this code on OS X using Go 1.0.3. What is wrong with this code? And what is the right way to manage large variables in Go