memory

PHP (or MySQL) crash when retrieving a big database record (~5MB)

给你一囗甜甜゛ 提交于 2020-01-03 18:35:15
问题 It doesnt display any errors, just a blank page. I tried die('test') before I call my function to retrieve a record and it does it, but when I place die('test') after my retrieve row function all I get is an empty page (on chrome it says this: Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.) .. I have tried (with 128M, -1, 64M, etc) ini_set('memory_limit', -1); With no luck. I am using mysqli to retrieve the record and a simple query like

Efficient memory storage and retrieval of categorized string literals in C++

心不动则不痛 提交于 2020-01-03 17:22:14
问题 Note: This is a follow up to this question. I have a "legacy" program which does hundreds of string matches against big chunks of HTML. For example if the HTML matches 1 of 20+ strings, do something. If it matches 1 of 4 other strings, do something else. There are 50-100 groups of these strings to match against these chunks of HTML (usually whole pages). I'm taking a whack at refactoring this mess of code and trying to come up with a good approach to do all these matches. The performance

How to release an object and clear memory in VBA

核能气质少年 提交于 2020-01-03 17:08:38
问题 thats the first time i post plus im an amateur programmer, so let me know if you need any additional information. i have the following problem: with excel VBA i connect to another programm (namely Aspen EDR). For that purpose I have an according Add-In installed. to access Aspen EDR i need to add an object. after im done i want to release the object to save some memory. first thing i tried is this: Dim ObjEDR As BJACApp Dim Path As String Path = 'assume this is the correct path to the file i

Android - view.Surface OutOfResourcesException

笑着哭i 提交于 2020-01-03 17:03:39
问题 My Android app seems to not be releasing its views when I move around inside of it with ListView navigation and with the standard Menu key. After a hundred or so different (of the 10 or so unique views) loads, it starts lagging and black screening. Error log: 07-01 09:54:42.913: INFO/ActivityManager(1279): Starting: Intent { cmp=com.site.android.conferencecompanion/.Search } from pid 31290 07-01 09:54:43.013: ERROR/msm7x30.gralloc(1279): /dev/pmem: no more pmem available 07-01 09:54:43.013:

Using a mix of AppFabric local cache and server cache

寵の児 提交于 2020-01-03 16:49:03
问题 I'm just starting out using AppFabric... My application is in healthcare - we have about 15000 users of the system and they access patient information in bursts (e.g. think of a team of nurses/doctors accessing a patient when they are hospitalized). What I'd like to do is cache certain items (e.g. patient demographics info) in memory and other items (e.g. labs, medications, diagnostic imaging, reports) on the cache host server. The underlying data comes from various 3rd party systems, some of

Using a mix of AppFabric local cache and server cache

前提是你 提交于 2020-01-03 16:48:50
问题 I'm just starting out using AppFabric... My application is in healthcare - we have about 15000 users of the system and they access patient information in bursts (e.g. think of a team of nurses/doctors accessing a patient when they are hospitalized). What I'd like to do is cache certain items (e.g. patient demographics info) in memory and other items (e.g. labs, medications, diagnostic imaging, reports) on the cache host server. The underlying data comes from various 3rd party systems, some of

MemoryError when loading a JSON file

女生的网名这么多〃 提交于 2020-01-03 16:45:07
问题 Python (and spyder) return a MemoryError when I load a JSON file which is 500Mo large. But my computer have a 32Go RAM and the "memory" displayed by spyder go from 15% to 19% when I try to load it! It seems that I sould have much more space... Something I didn't think of? 回答1: 500MB of JSON data does not result in 500MB of memory usage. It will result in a multiple of that. Exactly by what factor depends on the data, but a factor of 10 - 25 is not uncommon. For example, the following simple

What's the memory footprint of the DLR?

百般思念 提交于 2020-01-03 15:20:10
问题 I'm considering making limited use of C#'s dynamic keyword. My initial time trials were astonishing - a performance hit of less than a second for 100,000 iterations (likely due to DLR caching). I don't have access to a memory profiler, though, and Eric Lippert wrote: Then it starts up the DLR [...] The DLR then starts up a special version of the C# compiler... What's the memory footprint of this, and is it unloaded when the dynamic code is garbage-collected? 回答1: is it unloaded when the

memory address literal

夙愿已清 提交于 2020-01-03 13:09:35
问题 Given a literal memory address in hexadecimal format, how can I create a pointer in C that addresses this memory location? Memory addresses on my platform (IBM iSeries) are 128bits. C type long long is also 128bits. Imagine I have a memory address to a string (char array) that is: C622D0129B0129F0 I assume the correct C syntax to directly address this memory location: const char* const p = (const char* const)0xC622D0129B0129F0ULL I use ULL suffix indicate unsigned long long literal. Whether

C - why I cannot mmap a small (256UL or smaller) size of memory?

谁说胖子不能爱 提交于 2020-01-03 12:34:15
问题 Please tell me, why my simple application cannot mmap a small size of memory? And, why such a specific boundary - 257UL? // #define MAP_SIZE 256UL or below - fail // #define MAP_SIZE 257UL - ok #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <errno.h> #include <signal.h> #include <fcntl.h> #include <ctype.h> #include <termios.h> #include <sys/types.h> #include <sys/mman.h> #define FATAL do { fprintf(stderr, "Error at line %d, file %s (%d) [%s]\n", \ _