out-of-memory

Multiprocessing - using the Managers Namespace to save memory

匆匆过客 提交于 2019-12-08 03:57:58
问题 I have several processes each completing tasks which require a single large numpy array, this is only being read (the threads are searching it for appropriate values). If each process loads the data I receive a memory error. I am therefore trying to minimise the memory usage by using a Manager to share the same array between the processes. However I still receive a memory error. I can load the array once in the main process however the moment I try to make it an attribute of the manager

GC too frequency under heavy load with Mule3.2

非 Y 不嫁゛ 提交于 2019-12-08 03:57:54
问题 Under heavy load with Mule 3.2(100 threads send requests concurrently), through jprofiler, I could see that lots of object instances are created(about 500mb every second), and occupied over 90% space of the young area of the heap, which caused the jvm to trigger gc every 2 seconds. why? Does this normal? Or is it a bug in jvm arguments: -Xms=2048m -Xmx=2048m -Xmn=768m -XX:PermSize=256m -XX:MaxPermSize=512m -Xss256k -XX:+UseConcMarkSweepGC thanks 回答1: For every request that Mule receives,

OutOfMemoryError in android application

本小妞迷上赌 提交于 2019-12-08 03:56:34
问题 I have asked for help about OutOfMemoryError problem in my android app before. Since I have not had a solution yet i need to ask you again to advice me a solution. I tested my app in several real android devices. But in Samsung Galaxy S3 android 4.0.4 I have OutOfMemoryError problem. Logcat messages are below. Thank you. 07-13 10:42:23.820: E/AndroidRuntime(2065): FATAL EXCEPTION: main 07-13 10:42:23.820: E/AndroidRuntime(2065): java.lang.OutOfMemoryError 07-13 10:42:23.820: E/AndroidRuntime

Memory issue with my Android app

穿精又带淫゛_ 提交于 2019-12-08 03:31:21
问题 Hi my Android application is working fine on my Lenovo a319 device , in this device it consuming 40 MB of RAM meanwhile on the Galaxy s5 Device , it consuming 300 Mb for the same build(apk). And I am getting lot of errors such as memory issue on Galaxy s5 device. For Instance Out of memory exception and android.view.InflateException: Binary XML file line errors. I have found this Question where it is answered that high pixel resolution will cause memory exception , I am not able to get any

Camel Sql Consumer Performance for Large DataSets

青春壹個敷衍的年華 提交于 2019-12-08 03:31:15
问题 I am trying to cache some static data in Ignite cache in order to query faster so I need to read the data from DataBase in order to insert them into cache cluster. But number of rows is like 3 million and it causes OutOfMemory error normally because SqlComponent is trying to process all the data as one and it tries to collect them once and for all. Is there any way to split them when reading result set (for ex 1000 items per Exchange)? 回答1: You can add a limit in the SQL query depending on

ImageAdapter and ListView (java.lang.OutOfMemoryError: bitmap size exceeds VM budget)

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 03:17:07
问题 I'm using ListView to display images which I provide through an ImageAdapter class. it works great on my device (and on many other devices which I tested it on), but somehow when I'm using the emulator and I'm long-pressing the up/down button - I'm getting an outOfMemory error after 10-15 seconds. I tried clearing cache, canceling cache, etc. - nothing helped. I know this crash is pretty rare (i couldn't reproduced it on any "real" device), but I can see on DDMS that "GC freed" are getting

Error in paste(v, collapse = “\\n”) : result would exceed 2^31-1 bytes

[亡魂溺海] 提交于 2019-12-08 03:13:38
I am trying to concatenate a large character vector (2.8 Gb) with the following code: x <- paste(v, collapse = "\n") Error message: Error in paste(v, collapse = "\n") : result would exceed 2^31-1 bytes As I understand it, this is caused by a limit R imposes on individual objects. However, I have also read that R can support long vectors since R 3.0.0, but cannot figure out how. I have tried increasing the environment variable R_MAX_VSIZE=32000000000 (32 GB) without success. I am running Microsoft R Open 3.5.1 with 64 GB RAM. My full sessionInfo(): R version 3.5.1 (2018-07-02) Platform: x86_64

How to do thread dump on Out Of Memory Error [duplicate]

我的梦境 提交于 2019-12-08 02:41:15
问题 This question already has answers here : how to generate thread dump java on out of memory error (6 answers) Closed 6 years ago . I know that -XX:+HeapDumpOnOutOfMemoryError will enable heap dump on OutOfMemoryError. Is there anything similar for thread dump? I need this in case when error happens on server - I don't have access to process itself when it happens 回答1: The exact point of execution where an OutOfMemoryError is raised is very much random (unless you have a single threaded

How to handle OUT OF MEMORY error for multiple threads in a Java Web Crawler

最后都变了- 提交于 2019-12-08 02:36:10
问题 I'm fairly new to programming and am working for my dissertation on a web crawler. I've been provided by a web crawler but i found it to be too slow since it is single threaded. It took 30 mins to crawl 1000 webpages. I tried to create multiple threads for execution and with 20 threads simultaneously running the 1000 webpages took only 2 minutes. But now I'm encountering "Heap Out of Memory" errors. I'm sure what i did was wrong which was create a for loop for 20 threads. What would be the

Monitor Spark execution and storage memory utilization

蹲街弑〆低调 提交于 2019-12-08 02:25:36
问题 I know there are several ways to monitor storage memory utilization of a Spark application but does anyone know a way to monitor execution memory utilization. I am also looking for a way to monitor the "user memory", that is memory that is not used for execution nor storage memory. Going by Spark's documentation on memory management https://spark.apache.org/docs/latest/tuning.html the memory that is not allocated to M or spark.memory.fraction. 来源: https://stackoverflow.com/questions/48670247